AlexLintu
  • Home
  • JavaScript
  • HackerRank
  • Concepts
Sign in Subscribe

Strings

A collection of 1 post
HackerRank Repeated String | JS Solution
HackerRank

HackerRank Repeated String | JS Solution

Problem HackerRank detailed problem description can be found here [https://www.hackerrank.com/challenges/repeated-string/problem]. Inputs & Outputs /* param {string} s param {number} n returns {number} Number of `a` occurances */ Test Cases repeatedString('aba', 10); repeatedString('a', 1000000); Pseudo Code 1. Let's figure out how many times the string s
Jun 6, 2021 1 min read
Page 1 of 1
AlexLintu © 2023
  • GitHub
Powered by Ghost