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
Last remaining element after repeated removal of odd indexed elements
Given a positive integer N, the task is to print the last remaining element from a sequence [1, N] after repeatedly removing all the odd-indexed elements from the sequence...
Read More
Arrays
Mathematical
DSA
Find nine rational numbers between 0 and 1
A rational number is a type of real number of the form p/q where q is not equal to zero in mathematics. Any fraction can be classified as a rational number if the denomina...
Read More
Picked
Mathematics
School Learning
Maths MAQ
Convert Unicode to ASCII in Python
Unicode is the universal character set and a standard to support all the world's languages. It contains 140,000+ characters used by 150+ scripts along with various symbols...
Read More
Python
ASCII
python-modules
Tree of Space - Locking and Unlocking N-Ary Tree
Given a world map in the form of Generic M-ary Tree consisting of N nodes and an array queries[], the task is to implement the functions Lock, Unlock and Upgrade for the g...
Read More
Tree
Binary Search Tree
Juspay
DSA
Count of pairs from first N natural numbers with remainder at least K
Given two positive integers N and K, the task is to find the number of pairs (a, b) over the range [1, N] such that a%b is at least K.Examples:Input: N = 5, K = 2Output: 7...
Read More
Mathematical
Combinatorial
number-theory
DSA
Arrange given numbers in a mathematical expression using operators [+, -, *, /] and parentheses to get value 24
Given an array arr[] consisting of 4 integers each between [1-9], the task is to check whether it is possible to get the number 24 by placing the operators +, -, /, and * ...
Read More
Backtracking
Mathematical
DSA
Minimize steps to form string S from any random string of length K using a fixed length subsequences
Given a string S consisting of N characters and a positive integer K, the task is to find the minimum number of operations required to generate the string S from a random ...
Read More
Strings
Searching
Mathematical
Hash
subsequence
Game Theory
frequency-counting
DSA
Minimum number of days required to schedule all exams
Given a graph consisting of N nodes, where each node represents an exam and a 2D array Edges[][2] such that each pair of the exam (Edges[i][0], Edges[i][1]) denotes the ed...
Read More
Arrays
Graph
Algorithms
Technical Scripter
graph-connectivity
Graph Traversals
Graph Coloring
Technical Scripter 2020
DSA
Maximum frequencies in each M-length subarray
Given an array arr[] consisting of N integers and a positive integer M, the task is to find the maximum frequency for each M-length subarray ( 0 M ? N).Examples:Input: ar...
Read More
Arrays
Google
Mathematical
Hash
subarray
cpp-unordered_map
frequency-counting
DSA
Generate an array of maximum sum such that each element exceeds all elements present either on its left or right
Given an array A[] consisting of N positive integers, the task is to construct an array B[] of size N having maximum possible sum of array elements satisfying the followin...
Read More
Arrays
Greedy
Mathematical
DSA
Maximum number of pairs of distinct array elements possible by including each element in only one pair
Given an array arr[] consisting of N integers, the task is to find the maximum number of pairs of array elements such that each pair has a different element and each array...
Read More
Arrays
Misc
Mathematical
Heap
Data Structures-Heap
frequency-counting
priority-queue
DSA
Python List extend() Method
The Python List extend() method adds items of an iterable (list, tuple, dictionary, etc) at the end of a list.Example[tabby title="Python3"][sourcecode language="python3"]...
Read More
Python
python-list
python-list-functions
python
What is the mechanism of reading the content of a file in Node.js ?
In this article, we will discuss the mechanism of reading a file in NodeJs.NodeJS is one of the most popular JavaScript frameworks that allows JavaScript to be used as a s...
Read More
Web Technologies
Picked
Node.js
Node.js-fs-module
NodeJS-Questions
How to style every element that have adjacent item right before it ?
You can easily style every element which has an adjacent item right before it using the Adjacent Sibling Selector (+). The adjacent sibling selector is used to select the ...
Read More
Web Technologies
Picked
CSS-Properties
HTML
CSS
CSS-Questions
Difference between remove() and detach() Methods
Before looking at the differences between these two methods of jQuery, let us understand the methods first.remove(): This remove() method removes the matched elements from...
Read More
Difference Between
Web Technologies
Picked
JQuery
jQuery-Methods
jQuery-Questions
Web Technologies - Difference Between
1
...
5587
5588
5589
...
11255