Grokking the Coding Interview: Patterns for Coding Questions
Ask Author
Back to course home

0% completed

Vote For New Content
This needs a code comment on the first loop's signature.

Ada

Feb 13, 2022

This needs a code comment on the first loop's signature.

5

0

Comments
Comments
A
Ada 4 years ago

These code solutions definitely need some comments of explanation just like the previous solutions had.

A
Ada 4 years ago

This solution is definitely lacking in explanation compared to the previous solutions.

L
linochoa11690 3 years ago

incase this helps anyone

for (i = 0; i < (str.length - wordsCount * wordLength) + 1; i++) {

means only loop through the str for as many characters need ie if wordCount = 5 and word length = 3 then the length of what we are looking for is 15 but if the str we are given...

A
Alijon Karimberdiev2 years ago

asdfasdf

On this page