Sum of Mutated Array Closest to Target
LeetCode problem #1300
Sorting & Searching
Master fundamental sorting and searching algorithms and their applications.
Find K Largest Elements
Find the k largest elements from an unsorted array
Find K Smallest Elements
Find the k smallest elements from an unsorted array
Find Missing Number (1 to n)
Find the missing number in an array containing n distinct numbers taken from 1, 2, 3, ..., n+1
Group Anagrams
Group strings that are anagrams of each other together.
Intersection of Two Arrays
Find the intersection of two arrays and return the result as an array.
Kth Largest Element in Array
Find the kth largest element in an unsorted array
Longest Consecutive Sequence
Find the length of the longest consecutive elements sequence in an unsorted array.
Merge K Sorted Arrays
Merge k sorted arrays into one sorted array using heap
Merge Two Sorted Arrays
Merge two sorted arrays into a single sorted array in-place
Minimum Swaps to Sort Array
Find the minimum number of swaps required to sort an array.
Sort Linked List
Sort a linked list in O(n log n) time using constant extra space
Three Sum (Triplets that Sum to Zero)
Find all unique triplets in the array which gives the sum of zero
Valid Anagram
Determine if two strings are anagrams of each other
Vertical Order Traversal of Binary Tree
Traverse a binary tree vertically and return nodes by columns