ProDeveloperTutorialonJanuary 19, 2025 Linked List: Odd Even Linked List Problem Statement: Given a singly LL group all odd nodes together followed by the even nodes. We need the node number not the value in the…
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…
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},…
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 :…
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 :…
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…
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…
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…
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…
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},…