Courses
Tutorials
Jobs
Practice
Contests
Data Structure
Java
Python
HTML
Interview Preparation
Trending Now
DSA
Web Tech
Foundational Courses
Data Science
Practice Problem
Python
Machine Learning
JavaScript
System Design
Django
DevOps Tutorial
Java
C
C++
ReactJS
NodeJS
CP Live
Aptitude
Puzzles
Projects
GBlog
Three 90 Challenge: Bigger and Better
As we transit into the new phase, it's essential to fuel our inner drive for success. On popular demand, GeeksforGeeks is happy to announce that we are back with the Thre...
Read More
Minimum removal of K equal elements required to empty an array
Given an array arr[] consisting of N integers, the task is to count the minimum number of times at most K equal elements are required to be removed to make the array empty...
Read More
Arrays
Hash
Technical Scripter
HashTable
frequency-counting
Technical Scripter 2020
DSA
Make all array elements equal to K by repeatedly incrementing subsequences
Given an array arr[] consisting of N integers and an integer K, the task is to make all array elements equal to K by repeatedly incrementing all elements of subsequences b...
Read More
Arrays
Algorithms
Mathematical
Hash
array-rearrange
HashTable
frequency-counting
DSA
Modify array to another given array by replacing array elements with the sum of the array
Given an array input[] consisting only of 1s initially and an array target[] of size N, the task is to check if the array input[] can be converted to target[] by replacing...
Read More
Arrays
Mathematical
array-rearrange
Recursion
DSA
Lexicographically smallest permutation having maximum sum of differences between adjacent elements
Given an array arr[] of size N, the task is to find the lexicographically smallest permutation of the given array such that the sum of difference between adjacent elements...
Read More
Arrays
Misc
Sorting
Mathematical
permutation
array-rearrange
lexicographic-ordering
DSA
Minimum number of pigs required to find the poisonous bucket
Given an integer N denoting the number of buckets, and an integer M, denoting the minimum time in minutes required by a pig to die after drinking poison, the task is to fi...
Read More
Amazon
Mathematical
Technical Scripter
interview-preparation
Technical Scripter 2020
DSA
C/C++ Puzzles
Queries to check if subarrays over given range of indices is non-decreasing or not
Given an array arr[] consisting of N integers and an array Q[][2] consisting of K queries of type {L, R}, the task for each query is to check if the subarray {arr[L], .. a...
Read More
Arrays
Technical Scripter
subarray
prefix-sum
array-range-queries
Technical Scripter 2020
DSA
HashedIn Interview Experience for Intern+FTE (On-Campus)
HashedIn Technologies visited our campus in November 2020(virtually). They conducted 4 rounds of interview.Round 1 (Coding Test): This round was held on their own platform...
Read More
Interview Experiences
Internship
Hashedin
On-Campus
Experiences
Qualcomm Interview Experience for Fresher | Off-Campus 2021
Qualcomm Hyderabad conducted online recruitment on Jan 2021 as an Off-Campus.Round 1(Online Test): Online test of 1.30 hr. Was conducted which consists of 3 sections as fo...
Read More
Qualcomm
Interview Experiences
Off-Campus
Experiences
VISA Interview Experience for FTE | On-Campus 2021
Online Round:Find the longest subarray in an unsorted array that has an abs diff b/w adj Elem = 1 after being sorted. My approach: sort and find subarray count of adj elem...
Read More
Interview Experiences
Visa
CS - Placements
On-Campus
Experiences
Generate an array from given pairs of adjacent elements
Given a 2D array arr[][] consisting of N pairs of integers such that the two elements in each row indicates that they are adjacent elements in the original array. The task...
Read More
Arrays
Greedy
Searching
array-rearrange
DFS
DSA
Lexicographically largest permutation of array possible by reversing suffix subarrays
Given an array arr[] of size N, the task is to find the lexicographically largest permutation array by reversing any suffix subarrays from the array.Examples:Input: arr[] ...
Read More
Arrays
Technical Scripter
array-rearrange
Reverse
lexicographic-ordering
Suffix
Technical Scripter 2020
DSA
Queries to count points lying on or inside an isosceles Triangle with given length of equal sides
Given an array arr[][] of dimension N * 2 representing the co-ordinates of N points and an array Q[] consisting of M integers, the task for every element in the Q[i] is to...
Read More
Arrays
Mathematical
Geometric
prefix-sum
array-range-queries
DSA
Count subarrays having odd Bitwise XOR
Given an array arr[] of size N, the task is to count the number of subarrays from the given array having odd Bitwise XOR value.Examples:Input: arr[] = {1, 4, 7, 9, 10}Outp...
Read More
Arrays
Bit Magic
Technical Scripter
Bitwise-XOR
subarray
prefix
Technical Scripter 2020
DSA
Count trailing zeroes present in binary representation of a given number using XOR
Given an integer N, the task is to find the number of trailing zeroes in the binary representation of the given number.Examples:Input: N = 12Output: 2Explanation:The binar...
Read More
Bit Magic
Mathematical
binary-representation
Bitwise-XOR
DSA
Check if an integer is rotation of another given integer
Given two integers A and B, the task is to check if the integer A is rotation of the digits of the integer B or not. If found to be true, then print "Yes". Otherwise print...
Read More
Mathematical
Technical Scripter
DSA
1
...
6330
6331
6332
...
11222