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

A little bit more elegant solution to validating BT

Shorter solution to the rotation problem

A shorter solution to this problem

Changes made - Used array.prototype.at for fetching recent stack - Handled special case where a certain stack in stack set becomes empty when popAt is used

This commit refactors the code by removing the unnecessary second argument in the conditional statement. The condition "if (obj[str[i]] && obj[str[i]] >= 1)" has been simplified to "if (obj[str[i]])" for...

… in allUniqueChars This commit renames the function to an ES6 arrow function syntax and updates the usage of var to let in the allUniqueChars function.

Is it possible to have access to push new solutions?

---------------- VERSION 4.12.1 -------------- C/C++: - Bug fixes from Luis Nassif and Joachim Metz - Added check to stop for very large folders to prevent memory exhausion Java: - Added...