ProDeveloperTutorialonJanuary 19, 2025 Design a stack that returns the minimum element in constant time. Problem Statement: You need to design a stack that returns the minimum element from the stack in constant time. Solution For solving this… Discover More
ProDeveloperTutorialonJanuary 19, 2025 Convert Postfix to Infix Problem Statement: Given an infix expression, convert into postfix expression. Infix expression: a op b Postfix expression: a b op Solution In… Discover More
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… Discover More
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