Reverse bits of a given 32 bits unsigned integer.For example, given inpu...
Given a singly linked list, determine if it is a palindrome. Solution1: ...
Shuffle a set of numbers without duplicates.Example: Solution:
The thief has found himself a new place for his thievery again. There is...
Compare two version numbers version1 and version2. If version1 > version...
Find the nth digit of the infinite integer sequence 1, 2, 3, 4, 5, 6, 7,...
Given a linked list, remove the nth node from the end of list and return...
Given a string containing just the characters '(', ')', '{', '}', '[' an...
Given a pattern and a string str, find if str follows the same pattern. ...