CtCI-6th-Edition-JavaScript icon indicating copy to clipboard operation
CtCI-6th-Edition-JavaScript copied to clipboard

Cracking the Coding Interview 6th Ed. JavaScript Solutions

Results 50 CtCI-6th-Edition-JavaScript issues
Sort by recently updated
recently updated
newest added

@profnandaa @asaph @targunpShould we update details for contributing to this repository?

Current bug: original string is not returned in instance of compressed string being same length as original string.

**DISCLAIMER**: This is my first time in a while forking and making a PR. I recently came across this repo and I am willing to contribute the best I can....

needs-update
discussion

**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...

Simple implementation using Set

Solves without using a nested loop or another data structure.

The way that string length is compared and calculated is not correct when strings have significant entropy. See my branch showing this [here](https://github.com/careercup/CtCI-6th-Edition-JavaScript/commit/6dda9cc37de4354d814aa462228719aeef1d82bc) @tankwan