## Check if the array can be sorted using swaps between given indices only

Given an array arr[] of size N consisting of distinct integers from range [0, N – 1] arranged in a random order. Also given a… Read More »

- C program to store Student records as Structures and Sort them by Name
- Salesforce Interview Experience | On-Campus for FTE
- Maximize the value of A by replacing some of its digits with digits of B
- Array Manipulation and Sum
- Check if array can be sorted with one swap
- Sort the array in a given index range
- Find Sum of pair from two arrays with maximum sum
- How to sort an ArrayList in Ascending Order in Java
- Sort only non-prime numbers of an array in increasing order
- Sort an array of string of dates in ascending order
- Make palindromic string non-palindromic by rearranging its letters
- Check if the array can be sorted using swaps between given indices only
- Print Binary Tree levels in sorted order | Set 3 (Tree given as array)
- Size of the smallest subset with maximum Bitwise OR
- How to sort an ArrayList in Descending Order in Java
- Rearrange all elements of array which are multiples of x in decreasing order
- Select numbers in such way to maximize the amount of money
- Find the k-th smallest divisor of a natural number N
- Find a pair from the given array with maximum nCr value
- Jump in rank of a student after updating marks
- Minimize the sum of squares of sum of N/2 paired formed by N numbers
- Sorting integer data from file and calculate execution time
- Sort elements of array whose modulo with K yields P
- Print the lexicographically smallest DFS of the graph starting from 1
- String with frequency of characters in Lucas Sequence
- Schedule elevator to reduce the total time taken
- Distinct state codes that appear in a string as contiguous sub-strings
- Working with Array and Vectors using STL in C++

Given an array arr[] of size N consisting of distinct integers from range [0, N – 1] arranged in a random order. Also given a… Read More »

Using STL library it is very easy to perform certain basic operations on array like Sorting, searching, sum of elements, finding minimum and maximum element… Read More »

Given an array arr[] of n positive integers. The task is to find elements arr[i] and arr[j] from the array such that arr[i]Carr[j] is maximum… Read More »

Every state is represented by string of length 2. For example DL is used for Delhi, HP for Himachal Pradesh, UP for Uttar Pradesh, PB… Read More »

Given a Complete Binary Tree as an array, the task is to print all of its levels in sorted order. Examples: Input: arr[] = {7,… Read More »

Given a connected graph with N vertices and M edges. The task is to print the lexicographically smallest DFS traversal of the graph starting from… Read More »

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 »