Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

First repeated word

Challenge

Take in a string and return the first duplicate word found

Approach & Efficiency

BigO: Time: O(n) Space: O(N) We create a hashtable to store our words, and we must traverse the input string.

Solution