Topic: Arrays 1) Peak ElementEasy Question Input: n = 3, arr[] = {1, 2, 3} Output: 1 Explanation: If the index returned is 2, then the...
Topic: Strings 1) Reverse Words in StringMedium Input: s = "a good example" Output: "example good a" Explanation: You need to reduce multiple...
Topic: Strings 1) Length of last wordEasy Input: s = " fly me to the moon " Output: 4 Explanation: The last word is "moon" with length...
Topic: Arrays 1) Remove Duplicates from Sorted ArrayEasy2) Remove Duplicates from Sorted Array IIMedium Remove Duplicates from Sorted Array Input:...
Topic: Arrays 1) Remove ElementEasy Input: nums = [0,1,2,2,3,0,4,2], val = 2 Output: 5, nums = [0,1,4,0,3,_,_,_] Explanation: Your function should...
Topic: Arrays 1) Merge Sorted ArraysEasy Input: nums1 = [1,2,3,0,0,0], m = 3, nums2 = [2,5,6], n = 3 Output: [1,2,2,3,5,6] Explanation: The arrays we...