## Make the list non-decreasing by changing only one digit of the elements

Given an array arr[] of N integers where every element is from the range [1000, 9999]. The task is to make the array non-decreasing by… Read More »

- Data Structures and Algorithms Online Courses : Free and Paid
- Why companies like Amazon, Microsoft, Google focuses on Data Structures and Algorithms : Answered
- Insertion and Deletion in Heaps
- Find the longest string that can be made up of other strings from the array
- Introduction to Data Structures | 10 most commonly used Data Structures
- Minimum number of times A has to be repeated such that B is a substring of it
- Two nodes of a BST are swapped, correct the BST | Set-2
- Iterative Postorder traversal | Set 3
- Find maximum in stack in O(1) without using additional stack
- LCA in a tree using Binary Lifting Technique
- Merge two BSTs with constant extra space
- Spanning Tree With Maximum Degree (Using Kruskal's Algorithm)
- Find the number of pair of Ideal nodes in a given tree
- Program to count Number of connected components in an undirected graph
- Print all leaf nodes of a binary tree from right to left
- Reverse a Linked List in groups of given size (Iterative Approach)
- Equal Sum and XOR of three Numbers
- Sum of all the levels in a Binary Search Tree
- Pair with a given sum in BST | Set 2
- Maximum sum of K consecutive nodes in the given Linked List
- Maximum sub-tree sum in a Binary Tree such that the sub-tree is also a BST
- Find the weight of the minimum spanning tree
- Reverse alternate K nodes in a Singly Linked List - Iterative Solution
- Find the longest sub-string which is prefix, suffix and also present inside the string
- Find missing element in a sorted array of consecutive numbers
- Number of pairs with a given sum in a Binary Search Tree
- Program to unfold a folded linked list
- Print a given matrix in spiral form using direction tracking method
- Minimum value to add to arr[i] so that an array can be split at index i with equal sum
- Count number of ways to reach destination in a Maze using BFS

Given an array arr[] of N integers where every element is from the range [1000, 9999]. The task is to make the array non-decreasing by… Read More »

Given an array arr[] of N positive elements. The task is to find the maximum bitwise OR value of a pair from the given array.… Read More »

Given an array arr[] containing N numbers. The task is to check whether the bitwise-AND of the given N numbers is even or odd. Examples:… Read More »

Given a string str containing only lowercase characters. The task is to print the characters having an even frequency in the order of their occurrence.… Read More »

Given an array of integers arr[] of N elements, the task is to generate another array having (Bitwise) AND of previous and next elements with… Read More »

Given an array arr[] and an integer K, the task is to find the total number of subsequences from the array where each element is… Read More »

Given two strings that can contain lower and uppercase alphabets, numbers and special characters like dots, blank spaces, commas, etc. Compare both strings considering only… Read More »

Given a binary number as a string str of length L. The task is to find the minimum number of operations needed so that the… Read More »

Given two integers N and K, the task is to find an N x N square matrix such that sum of every row and column… Read More »

Given an array arr[] of N integers representing the heights of the sticks. The task is to find the area of the largest square that… Read More »

Given an array arr[] of N elements where N ≥ 2, the task is to check the type of array whether it is: Increasing. Decreasing.… Read More »

Given a weighted tree with N nodes starting from 1 to N. The distance between any two nodes is given by the edge weight. Node… Read More »

Given a string str, and two integers L and R, the task is to reverse the string in the range [L, R] i.e. str[L…R]. Examples:… Read More »

Given two integers N and K. The task is to print the lexicographically smallest string of length N consisting of lower-case English alphabates such that… Read More »

Given two strings str1 and str2, the task is to count the characters in str1 such that after removing any one of them str1 becomes… Read More »