exercises - Cracking the coding interview

chapter 1 - arrays and strings
  1. Problem 1.1 - Determine whether all characters in a given string are unique
  2. Problem 1.2 - Determine whether one string is a permutation of another
  3. Problem 1.3 - URLify: Convert all spaces in a string to '%20'
  4. Problem 1.4 - Determine whether a given string is a permutation of a palindrome
  5. Problem 1.5 - Given two strings, determine whether it only takes 1 edit (replace, add, remove) to make them the same
  6. Problem 1.6 - Compress a string based on repeated characters
  7. Problem 1.7 - Rotate an N x N image matrix 90 degrees
  8. Problem 1.8 - Zero out the row and column of an M x N matrix wherever a value of 0 occurs
  9. Problem 1.9 - Determine whether a given string is a rotation of another string


Problem 1.1 - Determine whether all characters in a given string are unique

Back to Top


Problem 1.2 - Determine whether one string is a permutation of another

Back to Top


Problem 1.3 - URLify: Convert all spaces in a string to '%20'

Back to Top


Problem 1.4 - Determine whether a given string is a permutation of a palindrome

Back to Top


Problem 1.5 - Given two strings, determine whether it only takes 1 edit (replace, add, remove) to make them the same

Back to Top


Problem 1.6 - Compress a string based on repeated characters

Back to Top


Problem 1.7 - Rotate an N x N image matrix 90 degrees

Back to Top


Problem 1.8 - Zero out the row and column of an M x N matrix wherever a value of 0 occurs

Back to Top


Problem 1.9 - Determine whether a given string is a rotation of another string

Back to Top