ProDeveloperTutorialonJanuary 19, 2025 Searching and Sorting: Find the smallest and second smallest elements in an array Problem Statement: You are given an unsorted array. You need to find the first and second smallest element in that unsorted array. You need to… Discover More
ProDeveloperTutorialonJanuary 19, 2025 Matrix: Find pair with maximum sum in the matrix. Problem Statement: You are given a matrix arr[n][n]. You need to find the sum of pair with max sum. Example Input : mat[N][M] = {{1, 2, 3, 4},… Discover More
ProDeveloperTutorialonJanuary 19, 2025 Strings: Second most repeated word in a sequence Problem Statement: You are given a strings, your task is to find the second most repeated string in the given sequence. Example Input :… Discover More
ProDeveloperTutorialonJanuary 19, 2025 Strings: Given a string convert into its equivalent ASCII form Problem Statement: Given a string convert into its equivalent ASCII format. Example Input : hello, world! Output :… Discover More
ProDeveloperTutorialonJanuary 19, 2025 Strings: Remove all consecutive duplicates from the string Problem Statement: Given a string, remove all the consecutive duplicates Example Input : aaaaabbbbbb Output : ab Solution Solution is very… Discover More
ProDeveloperTutorialonJanuary 19, 2025 Arrays: Program to check if an Array is Palindrome or not Problem Statement: Given an unsorted array, check if it is palindrome array or not. Example: arr[] = {1, 2, 0, 2, 1} Output: Palindrome… Discover More
ProDeveloperTutorialonJanuary 19, 2025 Arrays: Find triplet with minimum sum Problem Statement: Given an unsorted array, you need to find 3 elements whose sum is the minimum. Example: arr = {-1, 2, 3, -2}; Output: -1… Discover More
ProDeveloperTutorialonJanuary 19, 2025 Arrays: Merge sorted array inplace Problem Statement: You are given with 2 sorted arrays, you need to merge the array in-place. You may assume that the first array will have… Discover More
ProDeveloperTutorialonJanuary 19, 2025 Power Set Problem Statement: You are given a set, you need to find all the subsets of that set. Example set = {a, b, c} Power set = {{}, {a}, {b}, {c},… Discover More
ProDeveloperTutorialonJanuary 19, 2025 Copy set bits in a range Problem Statement: You are given 2 numbers x and y and a range [i,r] 1 <= l, r <= 32. You need to set bits of y in range [l, r] that are… Discover More