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
Import and Export Data using SQOOP
SQOOP is basically used to transfer data from relational databases such as MySQL, Oracle to data warehouses such as Hadoop HDFS(Hadoop File System). Thus, when data is tra...
Read More
Hadoop
5 Effective Productivity Hacks For Programmers
Every developer wants to have a productive day of coding where they come up with an optimized solution easily, they are able to write clean code that runs on the first tim...
Read More
GBlog
Python
TechTips
Java Programs
Web Technologies
JavaScript
Software Engineering
How To
Coder's Journey featuring Jaideep Pyne (Software Developer at Amazon)
Coder’s journey covers the experience of programming experts across the globe. With coder’s journey, GeeksforGeeks aims to deliver practical guidance to all young programm...
Read More
CS - Placements
Coders-Journey
Difference between sums of odd level and even level nodes in an N-ary Tree
Given an N-ary Tree rooted at 1, the task is to find the difference between the sum of nodes at the odd level and the sum of nodes at even level.Examples:Input: 4 ...
Read More
Tree
Queue
Searching
BFS
Tree Traversals
n-ary-tree
DSA
Queries to find the count of shortest paths in a Tree that contains a given edge
Given a tree with N vertices numbered from 0 to N – 1, M edges, and Q queries of the form {U, V}, such that there is a direct edge between U and V in the tree. The task fo...
Read More
Tree
Dynamic Programming
Greedy
Searching
Hash
Competitive Programming
DFS
C++
Tree Traversals
DSA
Check if a path exists for a cell valued 1 to reach the bottom right corner of a Matrix before any cell valued 2
Given a matrix arr[][] of dimensions N * M, having elements 0, 1, and 2. There is only one cell with value 1 present in the matrix. The task is to check if it is possible ...
Read More
Graph
Queue
Searching
Matrix
BFS
Graph Traversals
cpp-deque
DSA
Check if K can be obtained by performing arithmetic operations on any permutation of an Array
Given an array arr[] of N integers and an integer K, the task is to check if the expression formed for any permutation of the given array after assigning arithmetic operat...
Read More
Arrays
Backtracking
Mathematical
Recursion
Permutation and Combination
expression-evaluation
DSA
Find the winner of a game of removing any number of stones from the least indexed non-empty pile from given N piles
Given an array arr[] consisting of N integers, each representing size of a pile of stones. The task is to determine the winner of the game when two players, A and B, play ...
Read More
Arrays
Greedy
Game Theory
DSA
SQL Server LEAD() function Overview
At many instances, user would really like to check the worth of the present row with the worth of the subsequent row. to resolve this problem in SQL Server’s LEAD() window...
Read More
SQL
DBMS-SQL
SQL-Server
Count straight lines intersecting at a given point
Given a matrix lines[][] of size N * 3, such that ith row denotes a line having the equation lines[i][0] * x + lines[i][1]*y = lines[i][2], and integers X and Y, denoting ...
Read More
Mathematical
Geometric
Matrix
Geometric-Lines
DSA
Minimum steps required to rearrange given array to a power sequence of 2
Given an array arr[] consisting of N positive integers, the task is to find the minimum steps required to make the given array of integers into a sequence of powers of 2 b...
Read More
Arrays
Misc
Sorting
Mathematical
array-rearrange
maths-power
DSA
Count all possible paths from top left to bottom right of a Matrix without crossing the diagonal
Given an integer N which denotes the size of a matrix, the task is to find the number of possible ways to reach the bottom-right corner from the top-left corner of the mat...
Read More
Dynamic Programming
Mathematical
Combinatorial
Matrix
catalan
DSA
Check if an array can be split into subarrays with GCD exceeding K
Given an array arr[] of N integers and a positive integer K, the task is to check if it is possible to split this array into distinct contiguous subarrays such that the Gr...
Read More
Arrays
Greedy
Searching
Mathematical
GCD-LCM
subarray
divisibility
HCF
DSA
Modify given array by incrementing first occurrence of every element by K
Given an array arr[] consisting of N integers, read every element of the array one by one and perform the following operations:If the current element arr[i] had previously...
Read More
Arrays
Searching
Hash
cpp-map
cpp-set
frequency-counting
DSA
Remove odd indexed characters from a given string
Given string str of size N, the task is to remove the characters present at odd indices (0-based indexing) of a given string.Examples :Input: str = “abcdef”Output: aceExpl...
Read More
Strings
Searching
School Programming
DSA
1
...
7149
7150
7151
...
11196