## Count minimum number of subsets (or subsequences) with consecutive numbers

Given an array of distinct positive numbers, the task is to calculate the number of subsets (or subsequences) from the array such that each subset… 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
- 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
- Split the array elements into strictly increasing and decreasing sequence
- Python | Sort list of list by specified index
- Array element with minimum sum of absolute differences
- 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
- Make palindromic string non-palindromic by rearranging its letters
- 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
- Leftmost and rightmost indices of the maximum and the minimum element of an array

Given an array of distinct positive numbers, the task is to calculate the number of subsets (or subsequences) from the array such that each subset… Read More »

Given an array of integers arr[0..n-1], count all pairs (arr[i], arr[j]) in the such that i*arr[i] > j*arr[j], 0 =< i < j < n.… Read More »

Given an array of n elements, the task is to find the elements that are greater than half of elements in an array. In case… Read More »

Given two arrays which have same values but in different order, we need to make second array same as first array using minimum number of… Read More »

Given an array arr[] of non negative integers. We can perform a swap operation on any two adjacent elements in the array. Find the minimum… Read More »

Given an array of n distinct elements, find the minimum number of swaps required to sort the array. Examples: Input : {4, 3, 2, 1}… Read More »

Oracle 2 years Experienced Hyderabad location. There were 3 tech round and 1 director round. Round 1 1: If there is sudden cut off in… Read More »

Tree sort is a sorting algorithm that is based on Binary Search Tree data structure. It first creates a binary search tree from the elements… Read More »

Given a number, check whether it is even or odd. Examples : Input: 2 Output: even Input: 5 Output: odd Recommended: Please solve it on… Read More »

Given a two strings S and T, find count of distinct occurrences of T in S as a subsequence. Examples: Input : S = banana,… Read More »

there were 5 rounds of interview with 3 technical round, 1 director round and 1 HR round. Round 1 (Technical) 1st question :- https://www.geeksforgeeks.org/minimum-number-of-jumps-to-reach-end-of-a-given-array/ 2nd… Read More »

Following is a quick revision sheet that you may refer at last minute Algorithm Time Complexity Best Average Worst Selection Sort Ω(n^2) θ(n^2) O(n^2)… Read More »

Prerequisite : Structures in C Name and marks in different subjects (physics, chemistry and maths) are given for all students. The task is to compute… Read More »

Given an array of positive integers, sort the array in decreasing order of count of set bits in binary representations of array elements. For integers… Read More »

Online test: Coding : Time : 90 minutes There were three coding questions as follows: A man starts from his house with a few pan… Read More »