## Schedule elevator to reduce the total time taken

Given an integer k and an array arr[] representing the destination floors for N people waiting currently at the ground floor and k is the… Read More »

- Minimum number of swaps required to sort an array | Set 2
- Count number of triplets with product equal to given number with duplicates allowed
- Find the largest number that can be formed with the given digits
- Maximize the value of A by replacing some of its digits with digits of B
- C program to store Student records as Structures and Sort them by Name
- Array Manipulation and Sum
- Find the Second Largest Element in a Linked List
- Salesforce Interview Experience | On-Campus for FTE
- Check if array can be sorted with one swap
- Find Sum of pair from two arrays with maximum sum
- Sort only non-prime numbers of an array in increasing order
- Longest subsequence whose average is less than K
- Sort the array in a given index range
- Java 8 | Arrays parallelSort() method with Examples
- Possible number of Rectangle and Squares with the given set of elements
- Cut all the rods with some length such that the sum of cut-off length is maximized
- Make palindromic string non-palindromic by rearranging its letters
- Sort an array of string of dates in ascending order
- Size of the smallest subset with maximum Bitwise OR
- Rearrange all elements of array which are multiples of x in decreasing order
- How to sort an ArrayList in Ascending Order in Java
- Check if Queue Elements are pairwise consecutive | Set-2
- Find the k-th smallest divisor of a natural number N
- Jump in rank of a student after updating marks
- Minimize the sum of squares of sum of N/2 paired formed by N numbers
- How to sort an ArrayList in Descending Order in Java
- Sort elements of array whose modulo with K yields P
- Sorting integer data from file and calculate execution time
- Number of possible pairs of Hypotenuse and Area to form right angled triangle
- String with frequency of characters in Lucas Sequence

Given an integer k and an array arr[] representing the destination floors for N people waiting currently at the ground floor and k is the… Read More »

Given two arrays A1 and A2 of N numbers. There are two people A and B who select numbers out of N. If A selects… Read More »

Given N numbers(N is an even number). Divide the N numbers into N/2 pairs in such a way that the sum of squares of the… Read More »

Given an array arr[] of N integers and an integer S. The task is to find an element K in the array such that if… Read More »

Given two string A and B which represents two integers, the task is to print the maximized value of A after replacing 0 or more… Read More »

Given a string str containing lowercase alphabets (a – z). The task is to print the string after rearranging some characters such that the string… Read More »

Salesforce recently visited our campus BITS Pilani for the first time for Associate Member of Technical Staff role in Hyderabad. Round 1: Online Round (Hosted on… Read More »

Given student’s records with each record containing id, name and age of a student. Write a C program to read these records and display them… Read More »

Given three arrays names[], marks[] and updates[] where: names[] contains the names of students. marks[] contains the marks of the same students. updates[] contains the… Read More »

Given an array arr[] of N integers and an index range [a, b]. The task is to sort the array in this given index range… Read More »

Given an array of strings dates[], the task is to sort these dates in ascending order. Note: Each date is of the form dd mmm… Read More »

Given an array of integers arr[] and an integer x, the task is to sort all the elements of the array which are multiples of… Read More »

Given an array of positive integers. The task is to find the size of the smallest subset such that the Bitwise OR of that set… Read More »

Given an array containing N elements. Find if it is possible to sort it in non-decreasing order using atmost one swap. Examples: Input : arr[]… Read More »

Given an array of integers and a number K. The task is to sort only those elements of the array which yields remainder P upon… Read More »