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
Count number of increasing subsequences of size k
Given an array arr[] containing n integers. The problem is to count number of increasing subsequences in the array of size k.Examples:Input : arr[] = {2, 6, 4, 5, 7}, ...
Read More
Arrays
Dynamic Programming
LIS
DSA
Sum of the series 1 + (1+2) + (1+2+3) + (1+2+3+4) + ...... + (1+2+3+4+...+n)
Given the value of n, we need to find the sum of the series where i-th term is sum of first i natural numbers.Examples :Input : n = 5 Output : 35Explanation :(1) + (1+2...
Read More
GBlog
Analysis of Algorithms
Mathematical
Technical Scripter
series
DSA
Minimum insertions to make a Co-prime array
Given an array of N elements, find the minimum number of insertions to convert the given array into a co-prime array. Print the resultant array also.Co-prime Array : An ar...
Read More
Arrays
GCD-LCM
Prime Number
euler-totient
DSA
Check if given number is Emirp Number or not
An Emirp Number (prime spelled backwards) is a prime number that results in a different prime when its decimal digits are reversed. This definition excludes the related pa...
Read More
Mathematical
Prime Number
DSA
Program to print reverse character bridge pattern
For a given value N, denoting the number of Charters starting from the A, print reverse character bridge pattern.Examples :Input : n = 5Output : ABCDEDCBA ABCD DCBA ABC ...
Read More
Misc
Algorithms
Analysis of Algorithms
Mathematical
Technical Scripter
pattern-printing
C++ Programs
DSA
Basic Coding Problems
Minimum number of points to be removed to get remaining points on one side of axis
We are given n points in a Cartesian plane. Our task is to find the minimum number of points that should be removed in order to get the remaining points on one side of any...
Read More
Searching
Geometric
DSA
Basic Coding Problems
Program for Binomial Coefficients table
Given an integer max, print Binomial Coefficients table that prints all binomial coefficients B(m, x) where m and x vary from 0 to maxExample :Input : max = 3Output : 0 ...
Read More
Mathematical
Combinatorial
binomial coefficient
DSA
Rearrange array such that even positioned are greater than odd
Given an array arr[] of N elements, sort the array according to the following relations:arr[i] = arr[i - 1], if i is even,∀ 1 = i Narr[i] = arr[i - 1], if i is odd,∀ 1 = ...
Read More
Arrays
Sorting
array-rearrange
DSA
File Organization in DBMS | Set 2
Pre-Requisite: Hashing Data StructureIn a database management system, When we want to retrieve a particular data, It becomes very inefficient to search all the index value...
Read More
Hash
DBMS
GATE CS
Hash
DSA
dbms
Partition into two subsets of lengths K and (N - k) such that the difference of sums is maximum
Given an array of non-negative integers of length N and an integer K. Partition the given array into two subsets of length K and N - K so that the difference between the s...
Read More
Arrays
Greedy
Technical Scripter
subarray
subarray-sum
DSA
Program to generate random alphabets
Prerequisite : rand() and srand()Given all alphabets in a character array, print a string of random characters of given size.We will use rand() function to print random ch...
Read More
Arrays
Technical Scripter
C++ Programs
DSA
Database Objects in DBMS
A database object is any defined object in a database that is used to store or reference data.Anything which we make from create command is known as Database Object.It can...
Read More
DBMS
queue::front() and queue::back() in C++ STL
Queue are a type of container adaptors which operate in a first in first out (FIFO) type of arrangement. Elements are inserted at the back (end) and are deleted from the f...
Read More
STL
CPP-Library
C++
cpp-containers-library
cpp-queue
forward_list::push_front() and forward_list::pop_front() in C++ STL
Forward list in STL implements singly linked list. Introduced from C++11, forward list are useful than other containers in insertion, removal and moving operations (like s...
Read More
STL
CPP-Library
C++
cpp-containers-library
CPP-forward-list
forward_list::remove() and forward_list::remove_if() in C++ STL
Forward list in STL implements singly linked list. The forward list was introduced in C++11, and is useful than other containers in insertion, removal, and moving operatio...
Read More
STL
CPP-Library
C++
cpp-containers-library
CPP-forward-list
1
...
11132
11133
11134
...
11170