18.1 Write a function that adds two numbers. You should not use + or any arithmetic operators. ...
18.1 Write a function that adds two numbers. You should not use + or any arithmetic operators. ...
2.5 You have two numbers represented by a linked list, where each node contains a single digit. T ...
6.5 There is a building of 100 floors. If an egg drops from the Nth floor or above, it will break ...
8.4 Design a parking lot using object-oriented principles. LintCode上的原题,请参见我的另一篇博客Parking Lot ...
1.5 Implement a method to perform basic string compression using the counts of repeated character ...
9.8 Given an infinite number of quarters (25 cents), dimes (10 cents), nickels (5 cents) and penn ...
16.3 In the famous dining philosophers problem, a bunch of philosophers are sitting around a circ ...
3.6 Write a program to sort a stack in ascending order (with biggest items on top). You may use a ...
17.2 Design an algorithm to figure out if someone has won a game oftic-tac-toe. 这道题让我们判断玩家是否 ...
1.1 Implement an algorithm to determine if a string has all unique characters. What if you cannot ...