LeetCode All Problems Solution Index: Simulation, Math, Hash, Bit Operation and Others
Overview
I have summarized the solutions to LeetCode problems by organizing them into closely related categories ( Simulation, Math, Hash, Bit Operation and Others) and give tree index page for quick references.
LeetCode All Problems Solution Index: Simulation, Math, Hash, Bit Operation and Others
- Simulation: i.e., just follow the rules in the problem and simulate the process to get the result, usually come up with a smart way to write elegant code (tedious code should be avoided since the algorithm would usually be simple), is the key point
-
Valid Sudoku 2012-03-03 27.6% Solution -
ZigZag Conversion 2011-12-05 23.4% (Easy) Solution -
Count and Say 2012-03-05 26.8% (Easy) Solution - Simulate the Mathematical Operation like plus/multiplication:
-
Plus One 2012-04-02 31.2% (Easy) Solution -
Add Binary 2012-04-02 25.7% (Easy) Solution -
Multiply Strings 2012-03-12 20.4% (Medium) Solution -
Divide Two Integers 2012-02-18 16.1% (Medium) Solution
-
-
- Math Problem
-
Sqrt(x) 2012-04-03 22.0% (Medium) Solution -
Roman to Integer 2012-01-15 33.4% (Easy) Solution -
Integer to Roman 2012-01-15 33.0% (Medium) Solution -
Palindrome Number 2012-01-04 29.2% (Easy) Solution -
Reverse Integer 2011-12-25 40.0% (Easy) Solution
-
- Hashing
- Bit Operations:
-
Single Number II 2013-10-02 33.3% (Medium) Solution More General Version (K times Simgle Number) -
Single Number 2013-10-01 45.3% (Medium) Solution
-
- Other Types: Applications | Data Structure | String
-
Valid Palindrome 2013-01-12 22.5% (Easy) Solution -
Valid Parentheses 2012-01-30 28.0% (Easy) Solution -
Min Stack 2014-11-09 15.4% (Easy) Solution -
Evaluate Reverse Polish Notation 2013-11-27 19.7% Solution -
Reverse Words in a String 2014-03-05 13.9% Solution Furthe Reference
-
Summary
I have summarized the solutions to LeetCode problems by organizing them into closely related categories ( Simulation, Math, Hash, Bit Operation and Others) and give tree index page for quick references. I will keep updating the content as well as this index page as time goes. Please feel free to leave any comments.
Written on March 26, 2015