All kinds of sorting algorithms, re-visited! Easiest Bubble Sort Bubble sort is the easiest sorting algorithm; it can be considered an inferior versio… ...more
Data Structure Graph problems rely heavily on how the data is represented. While there are three standard academic ways, LeetCode focuses primarily on… ...more
Type Definition In LeetCode problems, the binary tree node is standardly defined as: struct TreeNode { int val; TreeNode* left; TreeNode* … ...more
Recent