## Maximum possible time that can be formed from four digits

Given an array arr[] having 4 integer digits only. The task is to return the maximum 24 hour time that can be formed using the… Read More »

- Program to find the Hidden Number
- Maximum Product Subarray | Set 3
- Minimum number of swaps required to sort an array | Set 2
- Generating numbers that are divisor of their right-rotations
- Minimum no. of operations required to make all Array Elements Zero
- Find minimum operations needed to make an Array beautiful
- Check if X can give change to every person in the Queue
- Minimum adjacent swaps to move maximum and minimum to corners
- Rearrange the string to maximize the number of palindromic substrings
- Print array elements in alternatively increasing and decreasing order
- Find the direction from given string
- Check if elements of an array can be arranged in a Circle with consecutive difference as 1
- Longest Subsequence with at least one common digit in every element
- Subarray whose absolute sum is closest to K
- Minimum number of elements to be removed so that pairwise consecutive elements are same
- Queries for number of elements on right and left
- Number of steps required to convert a binary number to one
- Length of longest consecutive ones by at most one swap in a Binary String
- Minimum changes required to make first string substring of second string
- Find Sum of pair from two arrays with maximum sum
- Balance a string after removing extra brackets
- Minimum number of moves to make all elements equal
- Number of strictly increasing Buildings from right with distinct Colors
- Intersecting rectangle when bottom-left and top-right corners of two rectangles are given
- Convert time from 24 hour clock to 12 hour clock format
- Check if a point lies on or inside a rectangle | Set-2
- Minimum Cuts can be made in the Chessboard such that it is not divided into 2 parts
- Maximum possible time that can be formed from four digits
- Replace every character of string by character whose ASCII value is K times more than it
- Minimum number of operations required to reduce N to 1

Given an array arr[] having 4 integer digits only. The task is to return the maximum 24 hour time that can be formed using the… Read More »

Given three integers A, B and X. The task is to construct a binary string str which has exactly A number of 0’s and B… Read More »

Given a Binary String of length . It is allowed to do at most one swap between any 0 and 1. The task is to… Read More »

Given an array containing N elements and an integer K. It is allowed to perform the following operation any number of times on the given… Read More »

Given a binary string consisting only of 1’s and 0’s. Find the bit (output is either 1 or 0)whose the minimum number of contiguous sequence… Read More »

Given a number N in the form of string. The task is to find the greatest number that has same set of digits as N… Read More »

Given a matrix of distinct elements. The task is to sort the rows of matrix in descending order followed by sorting the columns in ascending… Read More »

Given two integers N and K, the task is to generate a permutation of N numbers (Every number from 1 to N occurs exactly once)… Read More »

Given two integers N and M, partiton N into M integers such that the difference between the maximum and minimum integer obtained by the partition… Read More »

Given a number . The task is to check if the number is formed by concatenating the numbers 1, 14 and 144 only any number… Read More »

Given a binary array( consider it as cyclic with start and end tied together) of length N having only one’s and zero’s where . The… Read More »

Given an integer and two integer arrays H[] and C[] of size where H[] stores the height of consecutive buildings and C[] stores the color… Read More »

Given two arrays div and rem which hold the values for divisors and remainders, the task is to find the number which after being successively… Read More »

Given a square matrix of odd order N. The task is to find the side-length of the largest square formed in the matrix. A square… Read More »

Given a string str. The task is to count the minimum number of elements to be removed so that pairwise consecutive elements are same Examples:… Read More »