## Amazon interview Experience | Set 412 (SDE II)

Overall process time : 2 months(Sep’17 to Nov17) Overall 60+ people Total Rounds : 6 Overall Difficulty : 2.5 – 3 Round 1: (3 codes… Read More »

- Count distinct elements in an array
- Print the nodes of binary tree as they become the leaf node
- Rearrange Odd and Even values in Alternate Fashion in Ascending Order
- In-Place Merge Sort
- Sort the array of strings according to alphabetical order defined by another string
- Merge K sorted arrays | Set 3 ( Using Divide and Conquer Approach )
- Ternary Search
- Number of pairs whose sum is a power of 2
- Amazon Internship Interview Experience
- k-th missing element in an unsorted array
- Nagarro Interview Experience Off-campus
- Merge K sorted arrays of different sizes | ( Divide and Conquer Approach )
- Check if array can be sorted with one swap
- Smallest subarray containing minimum and maximum values
- Find closest value for every element in array
- Sort the array in a given index range
- Maximum sum by picking elements from two arrays in order
- Sort an array of string of dates in ascending order
- Python | Sort list of list by specified index
- Array element with minimum sum of absolute differences
- Split the array elements into strictly increasing and decreasing sequence
- Comparison among Bubble Sort, Selection Sort and Insertion Sort
- Average of remaining elements after removing K largest and K smallest elements from array
- Find the minimum number of rectangles left after inserting one into another
- Delete odd and even numbers at alternate step such that sum of remaining elements is minimized
- Iterative selection sort for linked list
- Minimum operations to make frequency of all characters equal K
- Check if words are sorted according to new order of alphabets
- Minimum operations of given type to make all elements of a matrix equal
- Make palindromic string non-palindromic by rearranging its letters

Overall process time : 2 months(Sep’17 to Nov17) Overall 60+ people Total Rounds : 6 Overall Difficulty : 2.5 – 3 Round 1: (3 codes… Read More »

Given an unsorted array of distinct elements. Task is to count number of cross lines formed in an array elements after sorting the array elements.… Read More »

A median in an array with the length of n is an element which occupies position number (n+1)/2 after we sort the elements in the… Read More »

Quickselect is a selection algorithm to find the k-th smallest element in an unordered list. It is related to the quick sort sorting algorithm. Examples:… Read More »

We are given N jobs numbered 1 to N. For each activity, let Ti denotes the number of days required to complete the job. For… Read More »

Given a string, sort it in descending order. Examples: Input : alkasingh Output : snlkihgaa Input : nupursingh Output : uusrpnnihg Input : geeksforgeeks Output… Read More »

Given an n x n matrix containing all the numbers in the range 0 to n2-1. The problem is to calculate the total energy required… Read More »

Given an array of positive and negative numbers, arrange them such that all negative integers appear before all the positive integers in the array without… Read More »

Given an array of n integers. We are allowed to add k additional integer in the array and then find the median of the resultant… Read More »

We are given two arrays. We need to sort one array according to another. Examples: Input : 2 1 5 4 9 3 6 7… Read More »

Given an array of n positive integers. We are required to write a program to print the minimum product of k integers of the given… Read More »

Given an array of N integers. You are allowed to rearrange the element of the array. The task is to find the maximum value of… Read More »

Given an array of n integers, We need to find all pairs with difference less than k Examples : Input : a[] = {1, 10,… Read More »

You are given a rotated sorted array and your aim is to restore its original sort in place. Expected to use O(1) extra space and… Read More »

Circle sort algorithm can be visualized by drawing concentric circles on an array of integers. The elements of the array lying on the same circle… Read More »