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
Infosys Interview Experience for Power Programmer
I applied through Hackwithinfy. There were 2 coding rounds and on the basis of score in these rounds I was offered a PPI interview. Both these rounds consisted of 3 coding...
Read More
Interview Experiences
Infosys
Infosys-interview-experience
HackWithInfy
Experiences
Quadrilateral - Definition, Properties, Types, Formulas, Examples
Quadrilateral is a type of polygon that has four sides, four vertices, and four angles, along with a pair of diagonals. The sum of its interior angles is 360°. Let's learn...
Read More
Mathematics
School Learning
Class 8
Quadrilaterals
Maths-Class-8
Queries to count frequencies of a given character in a given range of indices
Given a string S of length N and an array Q[][] of queries in the form {l, r, y}. For each query, the task is to print the number of characters y present in the range [l, ...
Read More
Arrays
Strings
Algorithms
Dynamic Programming
Mathematical
Data Structures
prefix-sum
array-range-queries
frequency-counting
DSA
Count sequences of given length having non-negative prefix sums that can be generated by given values
Given two integers M and X, the task is to find the number of sequences of length M that can be generated comprising X and -X such that their respective counts are equal a...
Read More
Misc
Greedy
Pattern Searching
Mathematical
Combinatorial
catalan
Permutation and Combination
binomial coefficient
DSA
Count pairs having bitwise XOR greater than K from a given array
Given an array arr[]of size N and an integer K, the task is to count the number of pairs from the given array such that the Bitwise XOR of each pair is greater than K.Exam...
Read More
Arrays
Bit Magic
Trie
Searching
Mathematical
Advanced Data Structure
Bitwise-XOR
DSA
Minimum cost required to rearrange a given array to make it equal to another given array
Given two arrays A[] and B[] consisting of M and N integers respectively, and an integer C, the task is to find the minimum cost required to make the sequence A exactly th...
Read More
Arrays
Dynamic Programming
subsequence
LIS
LCS
array-rearrange
DSA
Reverse substrings of given string according to specified array indices
Given string str of length N and an array arr[] of integers, for array element arr[i](1-based indexing), reverse the substring in indices [arr[i], N - arr[i] + 1]. The tas...
Read More
Strings
Mathematical
Hash
Hash
frequency-counting
DSA
Maximize sum of given array by rearranging array such that the difference between adjacent elements is atmost 1
Given an array arr[] consisting of N positive integers, the task is to maximize the sum of the array element such that the first element of the array is 1 and the differen...
Read More
Arrays
Amazon
Sorting
Hash
interview-preparation
Arrays
frequency-counting
DSA
Rearrange array by interchanging positions of even and odd elements in the given array
Given an array arr[] of N positive integers with an equal number of even and odd elements. The task is to use in-place swapping to interchange positions of even and odd el...
Read More
Arrays
Google
Searching
interview-preparation
array-rearrange
School Programming
two-pointer-algorithm
array-traversal-question
DSA
Find a triplet in an array such that arr[i] arr[k] and i < j < k
Given an array arr[] consisting of a permutation of first N natural numbers, the task is to find a triplet (i, j, k) from the given array such that arr[i] arr[j] arr[k],...
Read More
Arrays
Searching
Sorting
DSA
XOR of array elements whose modular inverse with a given number exists
Given an array arr[] of length N and a positive integer M, the task is to find the Bitwise XOR of all the array elements whose modular inverse with M exists.Examples:Input...
Read More
Arrays
Greedy
Mathematical
Bitwise-XOR
Modular Arithmetic
HCF
number-theory
DSA
Detecting Covid-19 with Chest X-ray
COVID-19 pandemic is one of the biggest challenges for the healthcare system right now. It is a respiratory disease that affects our lungs and can cause lasting damage to ...
Read More
Python
Machine Learning
Count subarrays having each distinct element occurring at least twice
Given an array arr[] of size N, the task is to count the number of subarrays from the given array, such that each distinct element in these subarray occurs at least twice....
Read More
Arrays
Searching
Hash
subarray
cpp-unordered_map
frequency-counting
DSA
Number of permutation with K inversions | Set 2
Given two integers N and K, the task is to count the number of permutations of the first N natural numbers having exactly K inversions. Since the count can be very large, ...
Read More
Dynamic Programming
Combinatorial
permutation
inversion
Recursion
Permutation and Combination
DSA
Print X array elements closest to the Kth smallest element in the array
Given two integers K, X, and an array arr[] consisting of N distinct elements, the task is to find X elements closest to the Kth smallest element from the given array.Exam...
Read More
Arrays
Algorithms
Divide and Conquer
Searching
Sorting
Mathematical
Hash
Data Structures
cpp-map
Java-HashMap
frequency-counting
median-finding
DSA
1
...
6959
6960
6961
...
11256