Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 313 Bytes

File metadata and controls

14 lines (9 loc) · 313 Bytes

Challenge Summary

create a function that finds the first word to occur more than once in a string

Whiteboard Process

image

Approach & Efficiency

  • time: O(1)
  • space O(1)

Solution:

  • repeated_word(str): that takes an argument a str and return the first duplicate value