File tree
316 files changed
+645
-15
lines changed- Chp. 01 - Arrays and Strings
- _1_1_Is_Unique
- _1_2_Check_Permutations
- _1_3_URLify
- _1_4_Palindrome_Permutation
- _1_5_One_Away
- _1_6_String_Compression
- _1_7_Rotate_Matrix
- _1_8_Zero_Matrix
- _1_9_String_Rotation
- __Intro_ArrayList
- __Intro_StringBuffer
- Chp. 02 - Linked Lists
- _2_1_Remove_Dups
- _2_2_Return_Kth_to_Last
- _2_3_Delete_Middle_Node
- _2_4_Partition
- _2_5_Sum_Lists
- _2_6_Palindrome
- _2_7_Intersection
- _2_8_Loop_Detection
- Chp. 03 - Stacks and Queues
- _3_1_Three_in_One
- _3_2_Stack_Min
- _3_3_Stack_of_Plates
- _3_4_Queue_via_Stacks
- _3_5_Sort_Stack
- _3_6_Animal_Shelter
- __Intro_Queue
- __Intro_Stack
- Chp. 04 - Trees and Graphs
- _4_01_Route_Between_Nodes
- _4_02_Minimal_Tree
- _4_03_List_of_Depths
- _4_04_Check_Balanced
- _4_05_Validate_BST
- _4_06_Successor
- _4_07_Build_Order
- _4_08_First_Common_Ancestor
- _4_09_BST_Sequences
- _4_10_Check_Subtree
- _4_11_Random_Node
- _4_12_Paths_with_Sum
- __Intro_BFS
- __Intro_DFS
- __Intro_InOrder_Traversal
- __Intro_LevelOrder_Traversal
- __Intro_PostOrder_Traversal
- __Intro_PreOrder_Traversal
- Chp. 05 - Bit Manipulation
- _5_1_Insertion
- _5_2_Binary_to_String
- _5_3_Flip_Bit_to_Win
- _5_4_Next_Number
- _5_6_Conversion
- _5_7_Pairwise_Swap
- _5_8_Draw_Line
- Chp. 06 - Math and Logic Puzzles
- __Intro_Prime
- Chp. 07 - Object-Oriented Design
- _7_01_Deck_of_Cards
- _7_09_Circular_Array
- _7_12_Hash_Table
- Chp. 08 - Recursion and Dynamic Programming
- _8_01_Triple_Step
- _8_02_Robot_in_a_Grid
- _8_03_Magic_Index
- _8_04_Power_Set
- _8_05_Recursive_Multiply
- _8_06_Towers_of_Hanoi
- _8_07_Permutations_without_Dups
- _8_08_Permutations_with_Dups
- _8_09_Parens
- _8_10_Paint_Fill
- _8_11_Coins
- _8_12_Eight_Queens
- _8_13_Stack_of_Boxes
- _8_14_Boolean_Evaluation
- __Intro_Fibonacci
- Chp. 09 - System Design and Scalability
- Chp. 10 - Sorting and Searching
- _10_01_Sorted_Merge
- _10_02_Group_Anagrams
- _10_03_Search_in_Rotated_Array
- _10_04_Sorted_Search_No_Size
- _10_05_Sparse_Search
- _10_07_Missing_Int
- _10_08_Find_Duplicates
- _10_09_Sorted_Matrix_Search
- _10_10_Rank_from_Stream
- _10_11_Peaks_and_Valleys
- __Intro_Binary_Search
- __Intro_Sorts
- Chp. 11 - Testing
- Chp. 13 - Java
- _13_1_Private_Constructor
- _13_2_Return_From_Finally
- _13_5_TreeMap_HashMap_LinkedHashMap
- Chp. 15 - Threads and Locks
- _15_3_Dining_Philosophers
- _15_5_Call_In_Order
- __Intro_Examples
- Chp. 16 - More Problems (Moderate)
- _16_01_Number_Swapper
- _16_03_Intersection
- _16_04_Tic_Tac_Win
- _16_05_Factorial_Zeros
- _16_06_Smallest_Difference
- _16_07_Number_Max
- _16_08_English_Int
- _16_09_Operations
- _16_10_Living_People
- _16_11_Diving_Board
- _16_14_Best_Line
- _16_15_Master_Mind
- _16_16_Sub_Sort
- _16_17_Contiguous_Sequence
- _16_18_Pattern_Matching
- _16_19_Pond_Sizes
- _16_20_T9__HashMap_Solution
- _16_20_T9__Trie_Solution
- _16_21_Sum_Swap
- _16_23_Rand7_from_Rand5
- _16_24_Pairs_with_Sum
- _16_25_LRU_Cache
- _16_26_Calculator
- Chp. 17 - More Problems (Hard)
- _17_01_Add_Without_Plus
- _17_02_Shuffle
- _17_03_Random_Set
- _17_04_Missing_Number
- _17_05_Letters_and_Numbers
- _17_06_Count_of_2s
- _17_08_Circus_Tower
- _17_09_Kth_Multiple
- _17_10_Majority_Element
- _17_11_Word_Distance
- _17_12_BiNode
- _17_14_Smallest_K
- _17_15_Longest_Word
- _17_16_The_Masseuse
- _17_18_Shortest_Supersequence
- _17_20_Continuous_Median
- _17_21_Volume_of_Histogram
- _17_22_Word_Transformer
- _17_23_Max_Black_Square
- _17_24_Max_Submatrix
- Common/common
- Introduction/introduction
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
316 files changed
+645
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
0 commit comments