## Sort 3 Integers without using if condition or using only max() function

Given three integers, print them in sorted order without using if condition. Examples : Input : a = 3, b = 2, c = 9… Read More »

- Amazon Internship Interview Experience
- k-th missing element in an unsorted array
- Sort an array without changing position of negative numbers
- Find the longest string that can be made up of other strings from the array
- Comparison among Bubble Sort, Selection Sort and Insertion Sort
- Count the triplets such that A[i] < B[j] < C[k]
- Two nodes of a BST are swapped, correct the BST | Set-2
- Nagarro Interview Experience Off-campus
- Bubble Sort for Linked List by Swapping nodes
- Greatest contiguous sub-array of size K
- Maximum water that can be stored between two buildings
- Merge two BSTs with constant extra space
- Keep track of previous indexes after sorting a vector in C++ STL
- Find a triplet in an array whose sum is closest to a given number
- Range Queries to Find number of sub-arrays with a given xor
- Find maximum meetings in one room
- Split the array elements into strictly increasing and decreasing sequence
- Pair with largest sum which is less than K in the array
- Iterative selection sort for linked list
- Count pairs with given sum | Set 2
- Find the number of elements greater than k in a sorted array
- Program to print an array in Pendulum Arrangement with constant space
- Maximum Length Chain of Pairs | Set-2
- IntroSort or Introspective sort
- Sort an array of strings based on the frequency of good words in them
- Remove elements to make array sorted
- Divide array into two parts with equal sum according to the given constraints
- Find minimum changes required in an array for it to contain k distinct elements
- Check whether an array can be made strictly decreasing by modifying at most one element
- Unbounded Fractional Knapsack

Given three integers, print them in sorted order without using if condition. Examples : Input : a = 3, b = 2, c = 9… Read More »

Given an array of numbers where every number is represented as string. The numbers may be very large (may not fit in long long int),… Read More »

Given a array of n positive integers where each integer can have digits upto 106, print the array elements in ascending order. Input: arr[] =… Read More »

I have applied for Graphics Software Engineer position through LinkedIn. I was called for interview after 2 weeks of applying. Interview took place in Bangalore… Read More »

Given two given arrays of equal length, the task is to find if given arrays are equal or not. Two arrays are said to be… Read More »

Given an array of n elements. Consider array as circular array i.e element after an is a1. The task is to find maximum sum of… Read More »

Insertion sort is a simple sorting algorithm that works the way we sort playing cards in our hands. Below is an iterative algorithm for insertion… Read More »

Given an array of integers (both odd and even), sort them in such a way that the first part of the array contains odd numbers… Read More »

Given a array of both positive and negative integers ‘arr[]’ which are sorted. Task is to sort square of the numbers of the Array. Examples:… Read More »

Given a sorted array of positive integers, rearrange the array alternately i.e first element should be the maximum value, second minimum value, third-second max, fourth-second… Read More »

Given a square matrix of order N*N having distinct elements, the task is to sort given matrix in such a way that its rows, columns… Read More »

Question : How much time Insertion sort takes to sort an array of size n in below form? arr[] = 2, 1, 4, 3, 6,… Read More »