LEETCODETRICKS Array PIRATE KING 7/15/23 Array PIRATE KING 7/15/23 Sliding Window If the window is valid, expand right.Else, shrink left.O(n) Read More Array, String PIRATE KING 10/16/22 Array, String PIRATE KING 10/16/22 String Builder String is immutableString concatenation += is expensiveO(n) Read More Binary Tree, Traversal, Sort PIRATE KING 10/15/22 Binary Tree, Traversal, Sort PIRATE KING 10/15/22 Inorder Traversal of a BST Visits nodes in ascending orderO(n) Read More Array, Search, Sort PIRATE KING 10/14/22 Array, Search, Sort PIRATE KING 10/14/22 Quick Select Finds the kth smallest/largest elementAverage: O(n)Worst: O(n²) Read More
Array PIRATE KING 7/15/23 Array PIRATE KING 7/15/23 Sliding Window If the window is valid, expand right.Else, shrink left.O(n) Read More
Array, String PIRATE KING 10/16/22 Array, String PIRATE KING 10/16/22 String Builder String is immutableString concatenation += is expensiveO(n) Read More
Binary Tree, Traversal, Sort PIRATE KING 10/15/22 Binary Tree, Traversal, Sort PIRATE KING 10/15/22 Inorder Traversal of a BST Visits nodes in ascending orderO(n) Read More
Array, Search, Sort PIRATE KING 10/14/22 Array, Search, Sort PIRATE KING 10/14/22 Quick Select Finds the kth smallest/largest elementAverage: O(n)Worst: O(n²) Read More