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
The Celebrity Problem | Set-2
In a party of N people, only one person is known to everyone. Such a person may be present at the party, if yes, (s)he doesn’t know anyone in the party. We can only ask qu...
Read More
Arrays
Greedy
Mathematical
DSA
Number of K-length paths in a Tree
Given a tree of N nodes and an integer K, the task is to find the total number of paths having length K.Examples:Input: N = 5, K = 2tree = 1 / \ 2 5 ...
Read More
Tree
Algo Geek
Algo-Geek 2021
DSA
Find the Nth term of the series 1, 3, 7, 15, 31 . . .
Given a positive integer N, the task is to find Nth term of the series:1, 3, 7, 15, 31, .....Examples:Input: N = 5Output: 31Input: N = 1Output: 1Approach:The sequence is f...
Read More
Pattern Searching
Mathematical
series
Algo Geek
Algo-Geek 2021
DSA
Find the sum of N terms of the series 1, 4, 13, 40, 121, ...
Given a positive integer, n. Find the sum of the first n term of the series:1, 4, 13, 40, 121, .....Examples:Input: n = 5Output: 179Input: n = 3Output: 18Approach:The sequ...
Read More
Pattern Searching
Mathematical
series
Algo Geek
Algo-Geek 2021
DSA
What are Online and Offline query-based questions in Competitive Programming
The query-based questions of competitive programming are mainly of two types:Offline Query.Online Query.Offline QueryAn offline algorithm allows us to manipulate the data ...
Read More
Arrays
Misc
Competitive Programming
array-range-queries
DSA
Deque of Tuples in C++ with Examples
What is deque?In C++, a deque is a sequence container and it is also known by the name, double-ended queue. As the name implies, a deque allows insertion and deletion from...
Read More
STL
C++
deque
cpp-tuple
Bit Manipulation technique to replace boolean arrays of fixed size less than 64
Space complexity is the most underestimated asset by programmers. One can barely see a Memory Limit Exceed (MLE) while submitting a solution. But, saving memory is the mos...
Read More
Bit Magic
Algo Geek
Algo-Geek 2021
DSA
Data type of a Pointer in C++
A pointer is a variable that stores the memory address of an object. The pointer then simply “points” to the object. The type of the object must correspond with the type o...
Read More
C++
Data Structures
Pointers
C++ Programs
DSA
Largest subsequence such that its prefix sum never gets negative
Given an array arr[] containing integers. The task is to find the largest subsequence such that at any point in time prefix sum of that subsequence is not negative.Example...
Read More
Arrays
Greedy
subsequence
prefix
DSA
Minimum number of rotations required to convert given Matrix to another
Given two 2D arrays arr[][] and brr[][] of equal size. The task is to find the minimum number of rotations required either clockwise or anticlockwise to convert arr[][] to...
Read More
Matrix
rotation
Algo Geek
Algo-Geek 2021
DSA
Minimum and Maximum Number of Nodes Between Critical Points
Given an array arr[], return an array of size 2 consisting of 2 values, the first one the minDistance and the second one maxDistance. Here minDistance is the minimum dista...
Read More
Arrays
Greedy
Mathematical
DSA
Insert a linked list into another linked list
Given two linked lists, list1 and list2 of sizes m and n respectively. The task is to remove list1's nodes from the ath node to the bth node and insert the list2 in their ...
Read More
Linked List
DSA
FREE Online Courses By GeeksforGeeks - Learn New Tech Skills!
Learning should never stop! And what can be better than quality Online Learning resources to keep continuing your learning endeavors especially amidst this covid outbreak....
Read More
Misc
GBlog
GFG-Course
GFG-Update
WordPress Edit Media
WordPress is an open-source Content Management System that is totally based on PHP and MySql which is used to create a dynamic website. Matt Mullenweg developed WordPress ...
Read More
Web Technologies
PHP
Wordpress
PHP-Questions
Wordpress-Media
How to add date and time picker using only one tag in HTML ?
The date picker in HTML is a useful tool that allows users to select a date from a dropdown menu, rather than typing it in manually. To create a date picker in HTML, we us...
Read More
Web Technologies
HTML-Tags
HTML
HTML-Questions
1
...
4711
4712
4713
...
11204