Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.38 KB | None | 0 0
  1. Iterative:
  2.  
  3. (4, 36)
  4.  
  5.  
  6. Recursive:
  7.  
  8. target:  asdfkevinasdfaisudhfasdfoalskfjweahfkevinsadfgt
  9. key:  kevin
  10. found:  4
  11. locs:  []
  12. keyLength:  5
  13. start:  0
  14.  
  15.  
  16. target:  asdfaisudhfasdfoalskfjweahfkevinsadfgt
  17. key:  kevin
  18. found:  27
  19. locs:  [4]
  20. keyLength:  5
  21. start:  9
  22.  
  23.  
  24. target:
  25. key:  kevin
  26. found:  -1
  27. locs:  [4, 36]
  28. keyLength:  5
  29. start:  41
  30.  
  31.  
  32. Returning locs: [4, 36]
  33. None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement