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…
ProDeveloperTutorialonJanuary 20, 2025 Heap: kth largest element in a stream Problem Statement: You are given an infinite stream of integers, you need to find the kth largest element at any point of time. Example Input:…
ProDeveloperTutorialonJanuary 20, 2025 Heap: Sum of all the elements between k1 and k2 smallest elements Problem Statement: You are given array of integers and 2 numbers k1 and k2. You need to find the sum of all the elements between the given 2…
ProDeveloperTutorialonJanuary 20, 2025 Heap: Connect ropes with minimum cost Problem Statement: You are given n ropes of different lengths. You need to connect the ropes into one rope. The cost to connect 2 ropes is…
ProDeveloperTutorialonJanuary 20, 2025 Heap: Top K Frequent Words Problem Statement: You are given an array of repeated numbers and a integer K. You need to find the top K numbers that are repeated maximum…
ProDeveloperTutorialonJanuary 20, 2025 Heap: Frequency sort Problem Statement: You are given an array with repeated elements. You need to sort such that the one that has ore frequency should come first.…
ProDeveloperTutorialonJanuary 20, 2025 Heap: Top K Frequent Elements Problem Statement: You are given an integer array and a value k, you need to return the k most frequest elements. Example Input: nums =…