CtCI-6th-Edition-JavaScript
CtCI-6th-Edition-JavaScript copied to clipboard
Update ch1-q1?
Would it make sense to change the params for the solutions to take a string rather than an array? I was thrown off by the use of sort in the second solution until I realized the "str" variable was actually an array.
The problem in the book clearly requests an implementation of an algorithm that works on a string. I suppose this is something the candidate could/should check before hand so I can understand reasoning for leaving it in.
Hi @abohannon, sorry for replying so late, I just came across this repo!
Are you referring to this file ? (Note, this link is the isUnique.js file that was committed on Aug 5, 2019).
The latest version of this file looks like this
In both commits, the params appear to be Strings... is there something that I am missing?