ProDeveloperTutorialonJanuary 20, 2025 Searching and Sorting: Find the majority element in the array Problem Statement: You are given an arrya of repeating elements. You need to find and print the majority element. An element that appears more…
ProDeveloperTutorialonJanuary 20, 2025 Arrays: Find numbers with even number of digits Problem Statement: You are given an array of integers. You need to return the count of the numbers that has even number of digits. Example…
ProDeveloperTutorialonJanuary 20, 2025 Arrays: Find unique numbers that sum upto zero Problem Statement: You are given an integer n. You need to return the integers that sum upto 0. Example Input: n = 5 Output: {-5, -1, 1, 2, 3}…
ProDeveloperTutorialonJanuary 20, 2025 Arrays: Check if 3 consecutive odds exist Problem Statement: You are given an array, you need to check if there are 3 consecutive odds exist. If exist then return true else false.…
ProDeveloperTutorialonJanuary 20, 2025 Strings: Check if Word Equals Summation of Two Words Problem Statement: You are given 3 words. You need to check if the summation of the letters lead up to third word. Example Input: s1 =…
ProDeveloperTutorialonJanuary 20, 2025 Strings: Longer Contiguous Segments of Ones than Zeros Problem Statement: You are given a binary string, you need to return true if the longest contiguous sequence of 1s is greater than the longest…
ProDeveloperTutorialonJanuary 20, 2025 Strings: Minimum Number of Swaps to Make the Binary String Alternating Problem Statement: You are given a binary string of 0s and 1s. You need to get the minimum steps to make the string alternating. Example…
ProDeveloperTutorialonJanuary 20, 2025 Strings: Longest Substring Of All Vowels in Order Problem Statement: You are given a string, that contains only vowels and you need to get the longest substring that has all vowels…
ProDeveloperTutorialonJanuary 20, 2025 Strings: Number of Different Integers in a String Problem Statement: You are given a string that has numbers. Now you will replace the characters with space. Now count the number of distinct…