AlexLintu
  • Home
  • JavaScript
  • HackerRank
  • Concepts
Subscribe
Tagged

Strings

A collection of 1 post

HackerRank Repeated String | JS Solution
HackerRank

HackerRank Repeated String | JS Solution

ProblemHackerRank detailed problem description can be found here. Inputs & Outputs/* param {string} s param {number} n returns {number} Number of `a` occurances */Test CasesrepeatedString('aba', 10); repeatedString('a', 1000000);Pseudo CodeLet's figure out how many times the string s will be repeated in our algorithm without remainder and record

  • AlexLintu
AlexLintu Jun 6, 2021 • 1 min read
AlexLintu © 2022
  • GitHub
Powered by Ghost