LeetCode/LintCode Solutions

  • LeetCode: 159 Solved / 486 Total
  • LintCode: 246 Solved / 319 Total

Solutions for the most common coding interview questions. Indexed by LeetCode and LintCode.

Problem Name LeetCode LintCode
132 Pattern LeetCode 456 -
3Sum LeetCode 15 LintCode 57
3Sum Closest LeetCode 16 LintCode 59
3Sum Smaller LeetCode 259 -
4Sum LeetCode 18 LintCode 58
4Sum II LeetCode 454 -
A + B Problem - LintCode 1
Add and Search Word - LintCode 473
Add and Search Word - Data structure design LeetCode 211 -
Add Binary LeetCode 67 LintCode 408
Add Digits LeetCode 258 LintCode 569
Add Strings LeetCode 415 -
Add Two Numbers LeetCode 2 LintCode 167
Add Two Numbers II LeetCode 445 LintCode 221
Additive Number LeetCode 306 -
Alien Dictionary LeetCode 269 -
All O`one Data Structure LeetCode 432 -
Anagrams - LintCode 171
Android Unlock Patterns LeetCode 351 -
Animal Shelter - LintCode 230
Arithmetic Slices LeetCode 413 -
Arithmetic Slices II - Subsequence LeetCode 446 -
Arranging Coins LeetCode 441 -
Assign Cookies LeetCode 455 -
Assignment Operator Overloading (C++ Only) - LintCode 208
Backpack - LintCode 92
Backpack II - LintCode 125
Backpack VI - LintCode 564
Balanced Binary Tree LeetCode 110 LintCode 93
Base 7 LeetCode 504 -
Basic Calculator LeetCode 224 -
Basic Calculator II LeetCode 227 -
Battleships in a Board LeetCode 419 -
Beautiful Arrangement LeetCode 526 -
Best Meeting Point LeetCode 296 -
Best Time to Buy and Sell Stock LeetCode 121 LintCode 149
Best Time to Buy and Sell Stock II LeetCode 122 LintCode 150
Best Time to Buy and Sell Stock III LeetCode 123 LintCode 151
Best Time to Buy and Sell Stock IV LeetCode 188 LintCode 393
Best Time to Buy and Sell Stock with Cooldown LeetCode 309 -
Binary Representation - LintCode 180
Binary Search Tree Iterator LeetCode 173 LintCode 86
Binary Tree Inorder Traversal LeetCode 94 LintCode 67
Binary Tree Level Order Traversal LeetCode 102 LintCode 69
Binary Tree Level Order Traversal II LeetCode 107 LintCode 70
Binary Tree Longest Consecutive Sequence LeetCode 298 -
Binary Tree Maximum Node - LintCode 632
Binary Tree Maximum Path Sum LeetCode 124 LintCode 94
Binary Tree Path Sum - LintCode 376
Binary Tree Path Sum II - LintCode 246
Binary Tree Paths LeetCode 257 LintCode 480
Binary Tree Postorder Traversal LeetCode 145 LintCode 68
Binary Tree Preorder Traversal LeetCode 144 LintCode 66
Binary Tree Right Side View LeetCode 199 -
Binary Tree Serialization - LintCode 7
Binary Tree Upside Down LeetCode 156 -
Binary Tree Vertical Order Traversal LeetCode 314 -
Binary Tree Zigzag Level Order Traversal LeetCode 103 LintCode 71
Binary Watch LeetCode 401 -
Bitwise AND of Numbers Range LeetCode 201 -
Bomb Enemy LeetCode 361 -
Building Outline - LintCode 131
Bulb Switcher LeetCode 319 -
Bulls and Cows LeetCode 299 -
Burst Balloons LeetCode 312 LintCode 168
Can I Win LeetCode 464 -
Candy LeetCode 135 LintCode 412
Classical Binary Search - LintCode 457
Climbing Stairs LeetCode 70 LintCode 111
Climbing Stairs II - LintCode 272
Clone Binary Tree - LintCode 375
Clone Graph LeetCode 133 LintCode 137
Closest Binary Search Tree Value LeetCode 270 -
Closest Binary Search Tree Value II LeetCode 272 -
Coin Change LeetCode 322 -
Coins in a Line - LintCode 394
Coins in a Line II - LintCode 395
Combination Sum LeetCode 39 LintCode 135
Combination Sum II LeetCode 40 LintCode 153
Combination Sum III LeetCode 216 -
Combination Sum IV LeetCode 377 -
Combinations LeetCode 77 LintCode 152
Compare Strings - LintCode 55
Compare Version Numbers LeetCode 165 -
Concatenated Words LeetCode 472 -
Construct Binary Tree from Inorder and Postorder Traversal LeetCode 106 LintCode 72
Construct Binary Tree from Preorder and Inorder Traversal LeetCode 105 LintCode 73
Construct the Rectangle LeetCode 492 -
Container With Most Water LeetCode 11 LintCode 383
Contains Duplicate LeetCode 217 -
Contains Duplicate II LeetCode 219 -
Contains Duplicate III LeetCode 220 -
Contiguous Array LeetCode 525 -
Continuous Subarray Sum LeetCode 523 LintCode 402
Convert a Number to Hexadecimal LeetCode 405 -
Convert Binary Search Tree to Doubly Linked List - LintCode 378
Convert Binary Tree to Linked Lists by Depth - LintCode 242
Convert Expression to Reverse Polish Notation - LintCode 370
Convert Sorted Array to Binary Search Tree LeetCode 108 -
Convert Sorted Array to Binary Search Tree With Minimal Height - LintCode 177
Convert Sorted List to Balanced BST - LintCode 106
Convert Sorted List to Binary Search Tree LeetCode 109 -
Convex Polygon LeetCode 469 -
Copy Books - LintCode 437
Copy List with Random Pointer LeetCode 138 LintCode 105
Cosine Similarity - LintCode 445
Count 1 in Binary - LintCode 365
Count and Say LeetCode 38 LintCode 420
Count Complete Tree Nodes LeetCode 222 -
Count Numbers with Unique Digits LeetCode 357 -
Count of Range Sum LeetCode 327 -
Count of Smaller Number - LintCode 248
Count of Smaller Number before itself - LintCode 249
Count of Smaller Numbers After Self LeetCode 315 -
Count Primes LeetCode 204 -
Count The Repetitions LeetCode 466 -
Count Univalue Subtrees LeetCode 250 -
Counting Bits LeetCode 338 -
Course Schedule LeetCode 207 -
Course Schedule II LeetCode 210 -
Create Maximum Number LeetCode 321 LintCode 552
Data Stream as Disjoint Intervals LeetCode 352 -
Data Stream Median - LintCode 81
Decode String LeetCode 394 -
Decode Ways LeetCode 91 LintCode 512
Delete Digits - LintCode 182
Delete Node in a BST LeetCode 450 -
Delete Node in a Linked List LeetCode 237 -
Delete Node in the Middle of Singly Linked List - LintCode 372
Design Hit Counter LeetCode 362 -
Design Phone Directory LeetCode 379 -
Design Snake Game LeetCode 353 -
Design Tic-Tac-Toe LeetCode 348 -
Design Twitter LeetCode 355 -
Detect Capital LeetCode 520 -
Diagonal Traverse LeetCode 498 -
Dices Sum - LintCode 20
Different Ways to Add Parentheses LeetCode 241 -
Digit Counts - LintCode 3
Distinct Subsequences LeetCode 115 LintCode 118
Divide Two Integers LeetCode 29 LintCode 414
Drop Eggs - LintCode 254
Dungeon Game LeetCode 174 -
Edit Distance LeetCode 72 LintCode 119
Elimination Game LeetCode 390 -
Encode and Decode Strings LeetCode 271 -
Encode String with Shortest Length LeetCode 471 -
Evaluate Division LeetCode 399 -
Evaluate Reverse Polish Notation LeetCode 150 LintCode 424
Excel Sheet Column Number LeetCode 171 -
Excel Sheet Column Title LeetCode 168 -
Expression Add Operators LeetCode 282 -
Expression Evaluation - LintCode 368
Expression Tree Build - LintCode 367
Factor Combinations LeetCode 254 -
Factorial Trailing Zeroes LeetCode 172 -
Fast Power - LintCode 140
Fibonacci - LintCode 366
Find All Anagrams in a String LeetCode 438 -
Find All Duplicates in an Array LeetCode 442 -
Find All Numbers Disappeared in an Array LeetCode 448 -
Find Bottom Left Tree Value LeetCode 513 -
Find K Pairs with Smallest Sums LeetCode 373 -
Find Largest Value in Each Tree Row LeetCode 515 -
Find Leaves of Binary Tree LeetCode 366 -
Find Median from Data Stream LeetCode 295 -
Find Minimum in Rotated Sorted Array LeetCode 153 LintCode 159
Find Minimum in Rotated Sorted Array II LeetCode 154 LintCode 160
Find Mode in Binary Search Tree LeetCode 501 -
Find Peak Element LeetCode 162 LintCode 75
Find Permutation LeetCode 484 -
Find Right Interval LeetCode 436 -
Find the Celebrity LeetCode 277 -
Find the Difference LeetCode 389 -
Find the Duplicate Number LeetCode 287 -
Find the Missing Number - LintCode 196
Find the Missing Number II - LintCode 570
First Bad Version LeetCode 278 LintCode 74
First Missing Positive LeetCode 41 LintCode 189
First Position of Target - LintCode 14
First Unique Character in a String LeetCode 387 -
Fizz Buzz LeetCode 412 LintCode 9
Flatten 2D Vector LeetCode 251 -
Flatten Binary Tree to Linked List LeetCode 114 LintCode 453
Flatten List - LintCode 22
Flatten Nested List Iterator LeetCode 341 LintCode 528
Flip Bits - LintCode 181
Flip Game LeetCode 293 -
Flip Game II LeetCode 294 -
Fraction to Recurring Decimal LeetCode 166 -
Frog Jump LeetCode 403 -
Game of Life LeetCode 289 -
Gas Station LeetCode 134 LintCode 187
Generalized Abbreviation LeetCode 320 -
Generate Parentheses LeetCode 22 LintCode 427
Graph Valid Tree LeetCode 261 LintCode 178
Gray Code LeetCode 89 LintCode 411
Group Anagrams LeetCode 49 -
Group Shifted Strings LeetCode 249 -
Guess Number Higher or Lower LeetCode 374 -
Guess Number Higher or Lower II LeetCode 375 -
H-Index LeetCode 274 -
H-Index II LeetCode 275 -
Hamming Distance LeetCode 461 -
Happy Number LeetCode 202 LintCode 488
Hash Function - LintCode 128
Heapify - LintCode 130
Heaters LeetCode 475 -
House Robber LeetCode 198 LintCode 392
House Robber II LeetCode 213 LintCode 534
House Robber III LeetCode 337 LintCode 535
Identical Binary Tree - LintCode 469
Implement Queue by Two Stacks - LintCode 40
Implement Queue using Stacks LeetCode 232 -
Implement Stack using Queues LeetCode 225 -
Implement strStr() LeetCode 28 -
Implement Three Stacks by Single Array - LintCode 224
Implement Trie - LintCode 442
Implement Trie (Prefix Tree) LeetCode 208 -
Increasing Subsequences LeetCode 491 -
Increasing Triplet Subsequence LeetCode 334 -
Inorder Successor in BST LeetCode 285 -
Insert Delete GetRandom O(1) LeetCode 380 -
Insert Delete GetRandom O(1) - Duplicates allowed LeetCode 381 -
Insert Interval LeetCode 57 LintCode 30
Insert Node in a Binary Search Tree - LintCode 85
Insertion Sort List LeetCode 147 LintCode 173
Integer Break LeetCode 343 -
Integer Replacement LeetCode 397 -
Integer to English Words LeetCode 273 -
Integer to Roman LeetCode 12 LintCode 418
Interleaving Positive and Negative Numbers - LintCode 144
Interleaving String LeetCode 97 LintCode 29
Intersection of Two Arrays LeetCode 349 LintCode 547
Intersection of Two Arrays II LeetCode 350 LintCode 548
Intersection of Two Linked Lists LeetCode 160 LintCode 380
Interval Minimum Number - LintCode 205
Interval Sum - LintCode 206
Interval Sum II - LintCode 207
Invert Binary Tree LeetCode 226 LintCode 175
IPO LeetCode 502 -
Is Subsequence LeetCode 392 -
Island Perimeter LeetCode 463 -
Isomorphic Strings LeetCode 205 -
Jump Game LeetCode 55 LintCode 116
Jump Game II LeetCode 45 LintCode 117
k Sum - LintCode 89
k Sum II - LintCode 90
K-th Smallest in Lexicographical Order LeetCode 440 -
Keyboard Row LeetCode 500 -
Kth Largest Element - LintCode 5
Kth Largest Element in an Array LeetCode 215 -
Kth Smallest Element in a BST LeetCode 230 -
Kth Smallest Element in a Sorted Matrix LeetCode 378 -
Kth Smallest Number in Sorted Matrix - LintCode 401
Largest BST Subtree LeetCode 333 -
Largest Divisible Subset LeetCode 368 -
Largest Number LeetCode 179 LintCode 184
Largest Rectangle in Histogram LeetCode 84 LintCode 122
Left Pad - LintCode 524
Length of Last Word LeetCode 58 LintCode 422
Letter Combinations of a Phone Number LeetCode 17 LintCode 425
Lexicographical Numbers LeetCode 386 -
LFU Cache LeetCode 460 LintCode 24
License Key Formatting LeetCode 482 -
Line Reflection LeetCode 356 -
Linked List Cycle LeetCode 141 LintCode 102
Linked List Cycle II LeetCode 142 LintCode 103
Linked List Random Node LeetCode 382 -
Logger Rate Limiter LeetCode 359 -
Longest Absolute File Path LeetCode 388 -
Longest Common Prefix LeetCode 14 LintCode 78
Longest Common Subsequence - LintCode 77
Longest Common Substring - LintCode 79
Longest Consecutive Sequence LeetCode 128 LintCode 124
Longest Increasing Continuous Subsequence - LintCode 397
Longest Increasing Path in a Matrix LeetCode 329 -
Longest Increasing Subsequence LeetCode 300 LintCode 76
Longest Palindrome LeetCode 409 -
Longest Palindromic Subsequence LeetCode 516 -
Longest Palindromic Substring LeetCode 5 LintCode 200
Longest Repeating Character Replacement LeetCode 424 -
Longest Substring with At Least K Repeating Characters LeetCode 395 -
Longest Substring with At Most K Distinct Characters LeetCode 340 -
Longest Substring with At Most Two Distinct Characters LeetCode 159 -
Longest Substring Without Repeating Characters LeetCode 3 LintCode 384
Longest Valid Parentheses LeetCode 32 -
Longest Word in Dictionary through Deleting LeetCode 524 -
Longest Words - LintCode 133
Lowest Common Ancestor - LintCode 88
Lowest Common Ancestor of a Binary Search Tree LeetCode 235 -
Lowest Common Ancestor of a Binary Tree LeetCode 236 -
LRU Cache LeetCode 146 LintCode 134
Magical String LeetCode 481 -
Majority Element LeetCode 169 -
Majority Element II LeetCode 229 -
Majority Number - LintCode 46
Majority Number II - LintCode 47
Majority Number III - LintCode 48
Matchsticks to Square LeetCode 473 -
Matrix Zigzag Traversal - LintCode 185
Max Consecutive Ones LeetCode 485 -
Max Consecutive Ones II LeetCode 487 -
Max of 3 Numbers - LintCode 283
Max Points on a Line LeetCode 149 LintCode 186
Max Sum of Rectangle No Larger Than K LeetCode 363 -
Maximal Rectangle LeetCode 85 LintCode 510
Maximal Square LeetCode 221 LintCode 436
Maximum Average Subarray - LintCode 617
Maximum Depth of Binary Tree LeetCode 104 LintCode 97
Maximum Gap LeetCode 164 LintCode 400
Maximum Product of Word Lengths LeetCode 318 -
Maximum Product Subarray LeetCode 152 LintCode 191
Maximum Size Subarray Sum Equals k LeetCode 325 -
Maximum Subarray LeetCode 53 LintCode 41
Maximum Subarray Difference - LintCode 45
Maximum Subarray II - LintCode 42
Maximum Subarray III - LintCode 43
Maximum XOR of Two Numbers in an Array LeetCode 421 -
Median - LintCode 80
Median of Two Sorted Arrays LeetCode 4 -
Median of two Sorted Arrays - LintCode 65
Meeting Rooms LeetCode 252 -
Meeting Rooms II LeetCode 253 -
Merge Intervals LeetCode 56 LintCode 156
Merge k Sorted Lists LeetCode 23 LintCode 104
Merge Sorted Array LeetCode 88 LintCode 64
Merge Two Sorted Arrays - LintCode 6
Merge Two Sorted Lists LeetCode 21 LintCode 165
Min Stack LeetCode 155 LintCode 12
Minesweeper LeetCode 529 -
Mini Parser LeetCode 385 -
Mini Twitter - LintCode 501
Minimum Absolute Difference in BST New LeetCode 530 -
Minimum Adjustment Cost - LintCode 91
Minimum Depth of Binary Tree LeetCode 111 LintCode 155
Minimum Height Trees LeetCode 310 -
Minimum Moves to Equal Array Elements LeetCode 453 -
Minimum Moves to Equal Array Elements II LeetCode 462 -
Minimum Number of Arrows to Burst Balloons LeetCode 452 -
Minimum Path Sum LeetCode 64 LintCode 110
Minimum Size Subarray Sum LeetCode 209 LintCode 406
Minimum Subarray - LintCode 44
Minimum Unique Word Abbreviation LeetCode 411 -
Minimum Window Substring LeetCode 76 LintCode 32
Missing Integer - LintCode 237
Missing Number LeetCode 268 -
Missing Ranges LeetCode 163 -
Mock Hanoi Tower by Stacks - LintCode 227
Monochrome Screen - LintCode 238
Most Frequent Subtree Sum LeetCode 508 -
Move Zeroes LeetCode 283 LintCode 539
Moving Average from Data Stream LeetCode 346 -
Multiply Strings LeetCode 43 -
N-Queens LeetCode 51 LintCode 33
N-Queens II LeetCode 52 LintCode 34
Nested List Weight Sum LeetCode 339 -
Nested List Weight Sum II LeetCode 364 -
Next Greater Element I LeetCode 496 -
Next Greater Element II LeetCode 503 -
Next Permutation LeetCode 31 LintCode 52
Next Permutation II - LintCode 190
Next Smaller and Larger Number with the Same 1 Bits - LintCode 233
Nim Game LeetCode 292 -
Non-overlapping Intervals LeetCode 435 -
Nth Digit LeetCode 400 -
Nth to Last Node in List - LintCode 166
Null-terminated String - LintCode 210
Number Complement LeetCode 476 -
Number of 1 Bits LeetCode 191 -
Number of Airplanes in the Sky - LintCode 391
Number of Boomerangs LeetCode 447 -
Number of Connected Components in an Undirected Graph LeetCode 323 -
Number of Digit One LeetCode 233 -
Number of Islands LeetCode 200 LintCode 433
Number of Islands II LeetCode 305 -
Number of Segments in a String LeetCode 434 -
Number of Ways to Represent N Cents - LintCode 279
Nuts & Bolts Problem - LintCode 399
O(1) Check Power of 2 - LintCode 142
Odd Even Linked List LeetCode 328 -
One Edit Distance LeetCode 161 -
Ones and Zeroes LeetCode 474 -
Optimal Account Balancing LeetCode 465 -
Pacific Atlantic Water Flow LeetCode 417 -
Paint Fence LeetCode 276 LintCode 514
Paint House LeetCode 256 LintCode 515
Paint House II LeetCode 265 LintCode 516
Palindrome Linked List LeetCode 234 LintCode 223
Palindrome Number LeetCode 9 -
Palindrome Pairs LeetCode 336 -
Palindrome Partitioning LeetCode 131 LintCode 136
Palindrome Partitioning II LeetCode 132 LintCode 108
Palindrome Permutation LeetCode 266 -
Palindrome Permutation II LeetCode 267 -
Partition Array - LintCode 31
Partition Array by Odd and Even - LintCode 373
Partition Equal Subset Sum LeetCode 416 -
Partition List LeetCode 86 LintCode 96
Pascal's Triangle LeetCode 118 -
Pascal's Triangle II LeetCode 119 -
Patching Array LeetCode 330 -
Path Sum LeetCode 112 -
Path Sum II LeetCode 113 -
Path Sum III LeetCode 437 -
Peeking Iterator LeetCode 284 -
Perfect Rectangle LeetCode 391 -
Perfect Squares LeetCode 279 LintCode 513
Permutation Index - LintCode 197
Permutation Index II - LintCode 198
Permutation Sequence LeetCode 60 LintCode 388
Permutations LeetCode 46 LintCode 15
Permutations II LeetCode 47 LintCode 16
Plus One LeetCode 66 LintCode 407
Plus One Linked List LeetCode 369 -
Populating Next Right Pointers in Each Node LeetCode 116 -
Populating Next Right Pointers in Each Node II LeetCode 117 -
Pow(x, n) LeetCode 50 LintCode 428
Power of Four LeetCode 342 -
Power of Three LeetCode 326 -
Power of Two LeetCode 231 -
Predict the Winner LeetCode 486 -
Previous Permutation - LintCode 51
Print Numbers by Recursion - LintCode 371
Product of Array Except Self LeetCode 238 -
Product of Array Exclude Itself - LintCode 50
Queue Reconstruction by Height LeetCode 406 -
Random Pick Index LeetCode 398 -
Range Addition LeetCode 370 -
Range Sum Query - Immutable LeetCode 303 -
Range Sum Query - Mutable LeetCode 307 -
Range Sum Query 2D - Immutable LeetCode 304 -
Range Sum Query 2D - Mutable LeetCode 308 -
Ransom Note LeetCode 383 -
Read N Characters Given Read4 LeetCode 157 -
Read N Characters Given Read4 II - Call multiple times LeetCode 158 -
Rearrange String k Distance Apart LeetCode 358 -
Reconstruct Itinerary LeetCode 332 -
Reconstruct Original Digits from English LeetCode 423 -
Recover Binary Search Tree LeetCode 99 -
Recover Rotated Sorted Array - LintCode 39
Rectangle Area LeetCode 223 -
Regular Expression Matching LeetCode 10 LintCode 154
Rehashing - LintCode 129
Relative Ranks LeetCode 506 -
Remove Duplicate Letters LeetCode 316 -
Remove Duplicates from Sorted Array LeetCode 26 LintCode 100
Remove Duplicates from Sorted Array II LeetCode 80 LintCode 101
Remove Duplicates from Sorted List LeetCode 83 LintCode 112
Remove Duplicates from Sorted List II LeetCode 82 LintCode 113
Remove Duplicates from Unsorted List - LintCode 217
Remove Element LeetCode 27 LintCode 172
Remove Invalid Parentheses LeetCode 301 -
Remove K Digits LeetCode 402 -
Remove Linked List Elements LeetCode 203 LintCode 452
Remove Node in Binary Search Tree - LintCode 87
Remove Nth Node From End of List LeetCode 19 LintCode 174
Reorder array to construct the minimum number - LintCode 379
Reorder List LeetCode 143 LintCode 99
Repeated DNA Sequences LeetCode 187 -
Repeated Substring Pattern LeetCode 459 -
Restore IP Addresses LeetCode 93 LintCode 426
Reverse Bits LeetCode 190 -
Reverse Integer LeetCode 7 LintCode 413
Reverse Linked List LeetCode 206 LintCode 35
Reverse Linked List II LeetCode 92 LintCode 36
Reverse Nodes in k-Group LeetCode 25 LintCode 450
Reverse Pairs LeetCode 493 LintCode 532
Reverse String LeetCode 344 -
Reverse Vowels of a String LeetCode 345 -
Reverse Words in a String LeetCode 151 LintCode 53
Reverse Words in a String II LeetCode 186 -
Roman to Integer LeetCode 13 LintCode 419
Rotate Array LeetCode 189 -
Rotate Function LeetCode 396 -
Rotate Image LeetCode 48 LintCode 161
Rotate List LeetCode 61 LintCode 170
Rotate String - LintCode 8
Route Between Two Nodes in Graph - LintCode 176
Russian Doll Envelopes LeetCode 354 -
Same Tree LeetCode 100 -
Scramble String LeetCode 87 LintCode 430
Search a 2D Matrix LeetCode 74 LintCode 28
Search a 2D Matrix II LeetCode 240 LintCode 38
Search for a Range LeetCode 34 LintCode 61
Search in Rotated Sorted Array LeetCode 33 LintCode 62
Search in Rotated Sorted Array II LeetCode 81 LintCode 63
Search Insert Position LeetCode 35 LintCode 60
Search Range in Binary Search Tree - LintCode 11
Segment Tree Build - LintCode 201
Segment Tree Build II - LintCode 439
Segment Tree Modify - LintCode 203
Segment Tree Query - LintCode 202
Segment Tree Query II - LintCode 247
Self Crossing LeetCode 335 -
Sentence Screen Fitting LeetCode 418 -
Sequence Reconstruction LeetCode 444 -
Serialize and Deserialize Binary Tree LeetCode 297 -
Serialize and Deserialize BST LeetCode 449 -
Set Matrix Zeroes LeetCode 73 LintCode 162
Set of Stacks II - LintCode 226
Shortest Distance from All Buildings LeetCode 317 -
Shortest Palindrome LeetCode 214 -
Shortest Word Distance LeetCode 243 -
Shortest Word Distance II LeetCode 244 -
Shortest Word Distance III LeetCode 245 -
Shuffle an Array LeetCode 384 -
Simplify Path LeetCode 71 LintCode 421
Single Number LeetCode 136 LintCode 82
Single Number II LeetCode 137 LintCode 83
Single Number III LeetCode 260 LintCode 84
Singleton - LintCode 204
Sliding Window Maximum LeetCode 239 LintCode 362
Sliding Window Median LeetCode 480 LintCode 360
Smallest Good Base LeetCode 483 -
Smallest Rectangle Enclosing Black Pixels LeetCode 302 -
Sort Characters By Frequency LeetCode 451 -
Sort Colors LeetCode 75 LintCode 148
Sort Colors II - LintCode 143
Sort Integers - LintCode 463
Sort Integers II - LintCode 464
Sort Letters by Case - LintCode 49
Sort List LeetCode 148 LintCode 98
Sort Transformed Array LeetCode 360 -
Space Replacement - LintCode 212
Sparse Matrix Multiplication LeetCode 311 -
Spiral Matrix LeetCode 54 LintCode 374
Spiral Matrix II LeetCode 59 LintCode 381
Split Array Largest Sum LeetCode 410 -
Sqrt(x) LeetCode 69 LintCode 141
Stack Sorting - LintCode 229
String Compression - LintCode 213
String Permutation - LintCode 211
String to Integer (atoi) LeetCode 8 -
String to Integer II - LintCode 54
Strobogrammatic Number LeetCode 246 -
Strobogrammatic Number II LeetCode 247 -
Strobogrammatic Number III LeetCode 248 -
Strong Password Checker LeetCode 420 -
strStr - LintCode 13
Subarray Sum - LintCode 138
Subarray Sum Closest - LintCode 139
Submatrix Sum - LintCode 405
Subsets LeetCode 78 LintCode 17
Subsets II LeetCode 90 LintCode 18
Substring Rotation - LintCode 216
Substring with Concatenation of All Words LeetCode 30 -
Subtree - LintCode 245
Sudoku Solver LeetCode 37 -
Sum of Left Leaves LeetCode 404 -
Sum of Two Integers LeetCode 371 -
Sum Root to Leaf Numbers LeetCode 129 -
Summary Ranges LeetCode 228 -
Super Pow LeetCode 372 -
Super Ugly Number LeetCode 313 LintCode 518
Super Washing Machines LeetCode 517 -
Surrounded Regions LeetCode 130 LintCode 477
Swap Bits - LintCode 236
Swap Nodes in Pairs LeetCode 24 LintCode 451
Swap Two Nodes in Linked List - LintCode 511
Symmetric Tree LeetCode 101 -
Target Sum LeetCode 494 -
Teemo Attacking LeetCode 495 -
Ternary Expression Parser LeetCode 439 -
Text Justification LeetCode 68 -
The Maze LeetCode 490 -
The Maze II LeetCode 505 -
The Maze III LeetCode 499 -
The Skyline Problem LeetCode 218 -
The Smallest Difference - LintCode 387
Third Maximum Number LeetCode 414 -
Top K Frequent Elements LeetCode 347 -
Topological Sorting - LintCode 127
Total Hamming Distance LeetCode 477 -
Toy Factory - LintCode 496
Trailing Zeros - LintCode 2
Trapping Rain Water LeetCode 42 LintCode 363
Trapping Rain Water II LeetCode 407 -
Triangle LeetCode 120 LintCode 109
Triangle Count - LintCode 382
Two Strings Are Anagrams - LintCode 158
Two Sum LeetCode 1 LintCode 56
Two Sum II - Input array is sorted LeetCode 167 -
Two Sum III - Data structure design LeetCode 170 -
Ugly Number LeetCode 263 LintCode 517
Ugly Number II LeetCode 264 LintCode 4
Unique Binary Search Trees LeetCode 96 LintCode 163
Unique Binary Search Trees II LeetCode 95 LintCode 164
Unique Characters - LintCode 157
Unique Paths LeetCode 62 LintCode 114
Unique Paths II LeetCode 63 LintCode 115
Unique Substrings in Wraparound String LeetCode 467 -
Unique Word Abbreviation LeetCode 288 -
Update Bits - LintCode 179
UTF-8 Validation LeetCode 393 -
Valid Anagram LeetCode 242 -
Valid Number LeetCode 65 LintCode 417
Valid Palindrome LeetCode 125 LintCode 415
Valid Parentheses LeetCode 20 LintCode 423
Valid Perfect Square LeetCode 367 -
Valid Sudoku LeetCode 36 LintCode 389
Valid Word Abbreviation LeetCode 408 -
Valid Word Square LeetCode 422 -
Validate Binary Search Tree LeetCode 98 LintCode 95
Validate IP Address LeetCode 468 -
Verify Preorder Sequence in Binary Search Tree LeetCode 255 -
Verify Preorder Serialization of a Binary Tree LeetCode 331 -
Walls and Gates LeetCode 286 -
Water and Jug Problem LeetCode 365 -
Wiggle Sort LeetCode 280 LintCode 508
Wiggle Sort II LeetCode 324 LintCode 507
Wiggle Subsequence LeetCode 376 -
Wildcard Matching LeetCode 44 LintCode 192
Wood Cut - LintCode 183
Word Break LeetCode 139 LintCode 107
Word Break II LeetCode 140 -
Word Count (Map Reduce) - LintCode 499
Word Ladder LeetCode 127 LintCode 120
Word Ladder II LeetCode 126 LintCode 121
Word Pattern LeetCode 290 -
Word Pattern II LeetCode 291 -
Word Search LeetCode 79 LintCode 123
Word Search II LeetCode 212 LintCode 132
Word Squares LeetCode 425 -
ZigZag Conversion LeetCode 6 -
Zigzag Iterator LeetCode 281 -
Zuma Game LeetCode 488 -

results matching ""

    No results matching ""