Sort Colors
Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of the…
Master C, C++, Data Structures, Algorithms, Design Patterns, and More!
Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of the…
Given a character array s, reverse the order of its elements in-place.
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative…
Given an array nums and a value val, remove all instances of that value in-place and return the new length…
Given a sorted array nums, remove the duplicates in-place such that each element appears only once and returns the new…
Given a string s, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. A palindrome is…
Given an array numbers that is sorted in non-decreasing order and a target target, find...
Given an array nums of n integers, find all unique triplets in the array that sum up to zero. Each…
Given an array height of non-negative integers representing the heights of lines on a 2D plane, where the width of…
Given an array of integers arr that represents a mountain, you need to find the peak index. A peak index…