Sort 0, 1, 2 in an array – Part 2
Given an array of numbers, that consists only of three types of integers, which are 0, 1, and 2. Write … Read more
Given an array of numbers, that consists only of three types of integers, which are 0, 1, and 2. Write … Read more
Given an array of numbers that consists only of three types of integers, which are 0, 1 and 2. Write … Read more
Many times we have a list of custom objects and we need to sort these objects. In such cases we … Read more
Given two arrays of integers. Write a program to find the sum of all the overlapping elements between two arrays. … Read more
Problem: Given a building with parking slots. If a spot is free then it is marked by 1 and if … Read more
Given a row index K, write a program to print the Kth of Pascal triangle. Note: row index starts from … Read more
Many times we have an array of custom objects and we need to sort these objects. In such cases we … Read more
Given a number N, write a program to print the first N lines of the Pascal triangle. Pascal Triangle: Note: … Read more
Given an array of integers, you are allowed to swap only adjacent elements in the array. write a program to … Read more
Problem Statement: Given a playlist that contains the list of intervals with the start time, end time and program id. … Read more
You have one meeting room at your company. There are N meeting needs to take place. Every meeting has a … Read more
Given an array of integers, write a program to find the number of pairs for which the XOR is an … Read more
Objective: Given an array of integers, write a program to find the number of pairs with even sum. Example: Given … Read more
Objective: Given an array of size N which contains integers from range 0 to N-1. (No duplicates). Write a program … Read more
Problem: Given a filled sudoku, write a program to check if sudoku is valid or following all of its rules. … Read more