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
Complete DevOps Roadmap - Beginner to Advanced
DevOps is considered a set of practices that combines the abilities of Software Development i.e Dev and IT Operations i.e Ops together, which results in delivering top-not...
Read More
Prove that Sparse Graph is NP-Complete
Prerequisite: NP-Completeness, NP Class, Sparse Graph, Independent SetProblem: Given graph G = (V, E) and two integers a and b. A set of a number of vertices of G such tha...
Read More
Analysis of Algorithms
DSA
How to get largest and smallest number in an Array?
Given an array arr[] of length N, The task is to find the maximum and the minimum number in the array.Examples:Input: arr[] = {1, 2, 3, 4, 5}Output: Maximum is: 5Minimum i...
Read More
Arrays
CPP-Library
Picked
DSA
Doubt Support Program By GeeksforGeeks
Where there’s a code, there are doubts.And they are not exactly very delightful to come across. Getting stuck on one problem can get very troublesome and the only respite ...
Read More
GBlog
Difference between Brute Force and Dynamic Programming
Brute Force:It gives a solution to a problem by using the most straightforward method. However, it is typically not a very optimal solution or one that is flexible for fut...
Read More
Data Structures
Difference Between
Picked
DSA
Perfect Binary Tree
What is a Perfect Binary Tree?A perfect binary tree is a special type of binary tree in which all the leaf nodes are at the same depth, and all non-leaf nodes have two chi...
Read More
Tree
Binary Tree
Picked
DSA
Find two integers such that at least one exists in each given Pair
Given N pairs of integers, each integer is between 1 to M, the task is to check if there exist two integers x and y such that at least one of the integers is present in ea...
Read More
Greedy
Competitive Programming
DSA
How can the stack memory be increased?
A Stack is a temporary memory address space that is used to hold arguments and automatic variables during the invocation of a subprogram or function reference. The size of...
Read More
Stack
Picked
DSA
Why do we need Prefix and Postfix notations?
Prefix Notation:Prefix notation is the notation in which operators are placed before the corresponding operands in the expression.Example:Infix notation: A + B Prefix not...
Read More
Stack
Picked
regular-expression
DSA
Can String be considered as a Keyword?
Is string a keyword?A string is NOT a keyword. It is one of the names of data types declared in the standard library.How to check if a string is a keyword in C++?In C++ th...
Read More
Strings
Java-keyword
Picked
DSA
Maximize equal elements in two Arrays after at most K increments
Given two arrays arr1[] and arr2[] of length N each and an integer K, The task is to maximize the number of equal elements at the same index in arr1[] and arr2[] by increm...
Read More
Arrays
Greedy
Sorting
DSA
Most Important Questions on Human Body System
The following questions are useful in SSC, banking and other government exams. The human body is made up of billions of tiny components that can be classified into 4 group...
Read More
SSC/Banking
SSC General Awareness
SSC Biology
C++ Program to Show Runtime Exceptions
A runtime error occurs while the program is running. Because this is not a compilation error, the compilation will be completed successfully. Here, we will learn how to ha...
Read More
C++
C++ Programs
Picked
C++ Misc Programs
C++ Program to Sort the Elements of an Array in Ascending Order
Here, we will see how to sort the elements of an array in ascending order using a C++ program. Below are the examples:Input: 3 4 5 8 1 10Output: 1 3 4 5 8 10Input: 11 34 6...
Read More
C++
C++ Programs
Picked
C++ Array Programs
C++ Program to Create an Interface
Interfaces are nothing but a way to describe the behavior of a class without committing to the implementation of the class. In C++ programming there is no built-in concept...
Read More
C++
C++ Programs
Picked
C++ Misc Programs
C++ Program to Remove All Occurrences of an Element in an Array
Here we will see how to remove all the occurrences of an element in an array using a C++ program. Below are the examples:Input: {1, 4, 3, 6, 8, 3, 9, 10, 3, 3, 7} ta...
Read More
C++
C++ Programs
Picked
C++ Array Programs
1
...
3668
3669
3670
...
10992