Justify String - Insert spaces to make a string of words fit a specific width.
Palindrome - Determine if a string represents a palindrome.
Find a String in a Stream - Code to locate a given string within a stream.
Pancake Sort - Cool little sort utility. Imagine sorting a stack of pancakes using only a spatula.
Permutations of a String - A method to show all the permutations of a string.
Reverse a String - This implementation reverses a string or all of the words in a string.
Remove Whitespace From A String - The "don't try and mix pseudocode from 2 different languages in an interview" sample.
Find the nth Fibonacci Number - Located in a cave near Redmond, WA.
Make Change - This one really kicked my butt. Returns the different combinations possible when making change.
Output array values in a spiral - This one's not done yet, but figured I'd put it up anyway. Working on a faster version with less code.
Find all of the integers that occur in both arrays of integers. - Wow. All the discussions online said that the hashtable method was faster for large arrays. I found that's wrong. Unless my implementation stinks. If so, let me know!
|