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
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
Check if permutation of a given string can be made palindromic by removing at most K characters
Given a string str and an integer K, the task is to check if a permutation of the given string can be made a palindromic by removing at most K characters from the given st...
Read More
Strings
Searching
Hash
palindrome
frequency-counting
DSA
Maximum XOR of a path from top-left to bottom-right cell of given Matrix
Given a matrix, mat[][] of dimensions N * M, the task is to print the maximum bitwise XOR value that can be obtained for a path from the top-left cell (0, 0) to the bottom...
Read More
Bit Magic
Mathematical
Matrix
Bitwise-XOR
Recursion
DSA
Print all root-to-leaf paths with maximum count of even nodes
Given a Binary tree, the task is to print all possible root-to-leaf paths having a maximum number of even valued nodes.Examples:Input: 2 / \ ...
Read More
Tree
Preorder Traversal
Binary Tree
Binary Search Tree
Recursion
Data Structures
Tree Traversals
DSA
Maximum possible score that can be obtained by constructing a Binary Tree based on given conditions
Given an array arr[] of (N - 1) integers and each value arr[i](1-based indexing) is the score of the nodes having degree i. The task is to determine the maximum score of a...
Read More
Arrays
Tree
Dynamic Programming
Combinatorial
DSA
Maximum number of elements that can be removed such that MEX of the given array remains unchanged
Given an array arr[] of size N, the task is to count the maximum number of elements that can be removed from the given array without changing the MEX of the original array...
Read More
Arrays
Searching
Hash
DSA
Count array elements with rank not exceeding K
Given an array arr[] consisting of N integers and an integer K, the task is to find the count of array elements having rank at most K.Equal array elements will have equal ...
Read More
Arrays
Amazon
Sorting
Mathematical
interview-preparation
DSA
Print all positions of a given string having count of smaller characters equal on both sides
Given a string, str, the task is to find the indices of the given string such that the count of lexicographically smaller characters on the left and right sides of that in...
Read More
Strings
Searching
Hash
Hash
frequency-counting
cpp-strings
strings
DSA
Minimize cost of choosing and skipping array elements to reach end of the given array
Given an integer X and an array cost[] consisting of N integers, the task is to find the minimum cost to reach the end of the given array starting from the first element b...
Read More
Arrays
Dynamic Programming
Mathematical
DSA
Print first K distinct Moran numbers from a given array
Given an array arr[] consisting of N distinct positive integers, the task is to print the first K distinct Moran Numbers from the given array.A number N is a Moran number ...
Read More
Arrays
Searching
Mathematical
Hash
number-digits
Prime Number
cpp-set
DSA
Count three-digit numbers having difference X with its reverse
Given an integer X, the task is to count the total number of three-digit numbers having difference X with its reverse. If no such number exists, then print -1.Examples:Inp...
Read More
Greedy
Searching
Mathematical
number-digits
Reverse
divisibility
DSA
Microsoft Interview Experience (3+ Years Experienced)
Round 1:Delete Nth node from the end of the given linked list.I gave the straight forward solution and tested it in codility. Traverse first to get the length of the Linke...
Read More
Microsoft
Interview Experiences
Experienced
Marketing
Experiences
1
...
6924
6925
6926
...
11229