Maximum Surpasser in the given array
The “surpasser” of an element in an array is defined as the number of elements that are to the “right” … Read more
The “surpasser” of an element in an array is defined as the number of elements that are to the “right” … Read more
Given an array of integers, write a program to find the number of pairs for which the XOR is an … Read more
Given a list of n Jobs with start time, end time and CPU load when it is active at any … Read more
Write a program to add the digits of the given number until the number becomes a single digit number. Example: … Read more
In school a student gets rewarded if he has an attendance record without being absent for more than once or … Read more
Interval is defined as [start, end]- the start of the interval to the end of the interval. Given the list … Read more
Given a sorted array of integers, write a program to remove duplicates in-place by modifying the given array such that … Read more
Given a string, write a function that returns a random character from the string. Example: Given string = algorithms @ … Read more
Given an array of numbers nums[], write ment a function to replace each element of the array with the greatest … Read more
Given an array of integers and number K, write a program to find the number of pairs which has sum … Read more
Given an array of strings, write a program to count all the similar words. Similar words: Two words are similar … Read more
Given a bench with n seats and few people sitting, You are going to sit on a vacant seat such … 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