Skip to content
Courses
DSA to Development
For Working Professionals
Data Structure & Algorithm Classes (Live)
System Design (Live)
JAVA Backend Development(Live)
DevOps(Live)
Data Structures & Algorithms in Python
For Students
Interview Preparation Course
GATE CS & IT 2024
Data Science (Live)
Data Structure & Algorithm-Self Paced(C++/JAVA)
Master Competitive Programming(Live)
Full Stack Development with React & Node JS(Live)
For School Students
CBSE Class 12 Computer Science
School Guide
Python Programming Foundation
All Courses
Tutorials
Data Structures & Algorithms
DSA for Beginners
Data Structures
Arrays
Matrix
Strings
Linked List
Singly Linked List
Doubly Linked List
Circular Linked List
Doubly Circular Linked List
Linked List Tutorial
Stack
Queue
Tree
Generic Tree
Binary Tree
Binary Search Tree
AVL Tree
B Tree
B+ Tree
Red Black Tree
Tree Data Structure Tutorial
Heap
Hashing
Graph
Set Data Structure
Map Data Structure
Advanced Data Structure
Data Structures Tutorial
Algorithms
Analysis of Algorithms
Design and Analysis of Algorithms
Asymptotic Analysis
Asymptotic Notations
Worst, Average and Best Cases
Searching Algorithms
Linear Search
Binary Search
Searching Algorithms Tutorial
Sorting Algorithms
Selection Sort
Bubble Sort
Insertion Sort
Merge Sort
Quick Sort
Heap Sort
Counting Sort
Radix Sort
Bucket Sort
Sorting Algorithms Tutorial
Greedy Algorithms
Dynamic Programming
Graph Algorithms
Pattern Searching
Recursion
Backtracking
Divide and Conquer
Mathematical Algorithms
Geometric Algorithms
Bitwise Algorithms
Randomized Algorithms
Branch and Bound
Algorithms Tutorial
Complete DSA Tutorial
Competitive Programming
Company Wise SDE Sheets
Facebook SDE Sheet
Amazon SDE Sheet
Apple SDE Sheet
Netflix SDE Sheet
Google SDE Sheet
Wipro Coding Sheet
Infosys Coding Sheet
TCS Coding Sheet
Cognizant Coding Sheet
HCL Coding Sheet
DSA Cheat Sheets
DSA Sheet for Beginners
SDE Sheets
FAANG Coding Sheet
Love Babbaar Sheet
Mass Recruiter Sheet
Product-Based Coding Sheet
Company-Wise Preparation Sheet
Top Interview Questions
Top 100 DSA Interview Questions Topic-wise
Top 50 Array Problems
Top 50 String Problems
Top 50 Stack Problems
Top 50 Heap Problems
Top 50 Linked List Problems
Top 50 Tree Problems
Top 50 Graph Problems
Top 50 Problems on Recursion Algorithms
Top 20 Interview Questions on Greedy Algorithms
Top 20 Interview Questions on Dynamic Programming
Top 50 Problems on Dynamic Programming (DP)
Top 20 Interview Questions on Hashing
Interview Questions on Top 10 Algorithms
Commonly Asked Data Structure Interview Questions
Puzzles
All Puzzles
Top 100 Puzzles Asked In Interviews
Top 20 Puzzles Commonly Asked During SDE Interviews
Top MCQs on Puzzles with Answers
Crossword Puzzle Of The Week
System Design
System Design Tutorial
What is System Design
Key Terminologies in System Design
Analysis and Architecture of Systems
Scalability in System Design
Databases in System Design
High Level Design or HLD
Low Level Design or LLD
Communication Protocols
Web Servers and Proxies
Case Studies in Designing Systems
Complete System Design Tutorial
Software Design Patterns
Factory Pattern
Observer Pattern
Singleton Design Pattern
Decorator Pattern
Strategy Pattern
Adapter Pattern
Command Pattern
Iterator Pattern
Prototype Design Pattern
All Design Patterns
System Design Roadmap
Top 10 System Design Interview Questions and Answers
Interview Corner
Company Preparation
Top Topics
Practice Company Questions
Interview Experiences
Experienced Interviews
Internship Interviews
Competitive Programming
Multiple Choice Quizzes
Aptitude for Placements
Languages
C
C++
Java
Python
JavaScript
PHP
R Tutorial
C#
SQL
Scala
Perl
Go Language
Kotlin
Web Development
HTML
HTML Tutorial
Free HTML Course
HTML Cheat Sheet
CSS
CSS Tutorial
Free CSS Course
CSS Cheat Sheet
CSS Preprocessors
SASS
LESS
JavaScript
JavaScript Tutorial
Free JavaScript Course
JavaScript A to Z Complete Guide
JavaScript Cheat Sheet
JavaScript Programming Examples
ReactJS
ReactJS Tutorial
Free ReactJS Course
ReactJS Frameworks
NextJS
React Material UI
React Bootstrap
React Suite
Ant Design
ReactJS Reactstrap
BlueprintJS
Node.js
Node.js Tutorial
Express.js
PHP
PHP Tutorial
PHP Programming Examples
AngularJS
AngularJS Tutorial
AngularJS Cheat Sheet
AngularJS Frameworks
Angular PrimeNG
Angular ngx Bootstrap
jQuery
jQuery Tutorial
jQuery Cheat Sheet
jQuery Frameworks
jQuery UI
jQuery Mobile
jQwidget
TypeScript
JSON
CSS Frameworks & Libraries
Bootstrap
Bootstrap Tutorial
Bootstrap 5
Bootstrap Cheat Sheet
Tailwind CSS
Bulma
Pure CSS
Materialize CSS
Foundation
Semantic UI
Primer CSS
Spectre CSS
JS Other Frameworks & Libraries
Lodash
D3.js
Vue.js
Underscore.js
TensorFlow.js
Collect.js
Fabric.js
p5.js
ML & Data Science
Machine Learning
ML Tutorial
ML Maths
ML Projects
Data Science using Python
Data Science using R
Data Science Packages
Pandas Tutorial
NumPy Tutorial
Data Visualization
Data Visualization with Python
Python Data Visualization Tutorial
Matplotlib Tutorial
Bokeh Tutorial
Plotly Tutorial
Seaborn Tutorial
Data Visualization with R
Data Visualization with R
Plotly Tutorial
ggplot Tutorial
Data Visualization Tools
Tableau
Power BI
Data Analysis
Data Analysis with Python
Data Analysis with R
Deep Learning
Deep Learning Tutorial
Deep Learning Projects
NLP Tutorial
OpenCV Tutorial
Interview Questions
Machine Learning Interview Question
Deep Learning Interview Question
Python Interview Questions
Top 50 R Interview Questions
ML Frameworks
Tensorflow
PyTorch
PyTorch Lightning
CS Subjects
Mathematics
Operating System
DBMS
Computer Networks
Computer Organization and Architecture
Theory of Computation
Compiler Design
Digital Logic
Software Engineering
DevOps
GIT
AWS
Docker
Kubernetes
Microsoft Azure Tutorial
Google Cloud Platform
School Learning
English Grammar
School Programming
Mathematics
Number System
Algebra
Linear Algebra
Trigonometry
Set Theory
Statistics
Probability
Geometry
Mensuration
Logarithms
Calculus
CBSE Syllabus
Class 8 Syllabus
Class 9 Syllabus
Class 10 Syllabus
Class 11 Syllabus
Class 12 Syllabus
Maths Notes (Class 8-12)
Class 8 Notes
Class 9 Notes
Class 10 Notes
Class 11 Notes
Class 12 Notes
Maths Formulas (Class 8 -11)
Class 8 Formulas
Class 9 Formulas
Class 10 Formulas
Class 11 Formulas
Math Calculators
NCERT Solutions
Class 8 Maths Solution
Class 9 Maths Solution
Class 10 Maths Solution
Class 11 Maths Solution
Class 12 Maths Solution
RD Sharma Solutions
Class 8 Maths Solution
Class 9 Maths Solution
Class 10 Maths Solution
Class 11 Maths Solution
Class 12 Maths Solution
Science Notes
Class 8 Notes
Class 9 Notes
Class 10 Notes
Physics Notes (Class 8-12)
Class 8 Notes
Class 9 Notes
Class 10 Notes
Class 11 Notes
Class 12 Notes
Chemistry Notes (Class 8-12)
Class 8 Notes
Class 9 Notes
Class 10 Notes
Class 11 Notes
Class 12 Notes
Biology Notes (Class 8-12)
Class 8
Class 9
Class 10
Class 11
Class 12
Social Science Syllabus
Class 7 SS Syllabus
Class 8 SS Syllabus
Class 9 SS Syllabus
Class 10 SS Syllabus
Social Science Notes
SS Notes (Class 7-12)
Class 7 Notes
Class 8 Notes
Class 9 Notes
Class 10 Notes
CBSE History Notes (Class 7-10)
History Class 7
History Class 8
History Class 9
CBSE Geography Notes (Class 7-10)
Geo. Class 7
Geo. Class 8
Geo. Class 9
CBSE Civics Notes (Class 7-10)
Civics Class 7
Civics Class 8
CBSE Previous Year Papers
Maths
Physics
History
Georgraphy
Political Science
Economics
Commerce
Business Studies
Class 11th Notes
Class 12th Notes
Business Studies Complete Guide
Accountancy
Class 11th Notes
Class 12th Notes
Accountancy Complete Guide
Microeconomics
Class 11th Notes
Microeconomics Complete Guide
Statistics for Economics
Class 11th Notes
Statistics for Economics Complete Guide
Macroeconomics
Class 12th notes
Macroeconomics Complete Guide
Indian Economic Development
Class 12th Notes
Indian Economic Development Complete Guide
Management
Income Tax
Finance
CBSE Class 12 Previous Years Papers
Economics - Paper 2020 Set 2 (58/2/2)
Economics - Paper 2020 Set 2
Economics - Paper 2020 Set (58/1/3)
Economics - Paper 2020 Set (58/1/2)
Accountancy - Paper Code: 67/1/1, 2020
Accountancy - Paper Code: 67/1/2, 2020
Accountancy - Paper Code: 67/1/3, 2020
Accountancy - Paper Code: 67/2/1, 2020
Accountancy - Paper Code: 67/2/2, 2020
Accountancy - Paper Code: 67/2/3, 2020
Accountancy - Paper Code: 67/4/1, 2020
Business Studies - Paper-2019 Set 1
Business Studies - Paper 2019 Code (66-2-1)
Business Studies - Paper-2020 Set 1
Business Studies - Paper-2020 Set 2
Economics - Paper 2020 Set 1
Economics - Paper 2020 Set 2 (58/2/3)
Economics - Paper 2020 Set 3
Economics - Paper 2020 Set 3 (58/3/2)
Economics - Paper 2020 Set 3 (58/3/3)
Economics - Paper 2020 Set 4 (58/4/1)
Economics - Paper 2020 Set 4 (58/4/2)
Economics - Paper 2020 Set 4 (58/4/3)
Economics - Paper 2020 Set 5 (58/5/1)
Economics - Paper 2020 Set 5 (58/5/2)
Economics - Paper 2020 Set 5 (58/5/3)
Commerce Complete Guide
GATE
GATE 2024 Live Course
GATE Computer Science Notes
Last Minute Notes
GATE CS Solved Papers
GATE CS Original Papers and Official Keys
GATE CS 2023 Syllabus
Important Topics for GATE CS
GATE 2023 Important Dates
Other CS Exams
ISRO
ISRO CS Original Papers and Official Keys
ISRO CS Solved Papers
ISRO CS Syllabus for Scientist/Engineer Exam
UGC NET
UGC NET CS Notes Paper II
UGC NET CS Notes Paper III
UGC NET CS Solved Papers
Banking Exams Study Material
RRB Clerk 2023 Exam
SBI Clerk
SBI Clerk Syllabus
General Awareness
English
Quantitative Aptitude
Reasoning Ability
SBI Clerk Practice Papers
SBI PO
SBI PO Syllabus
General Awareness
English
Quantitative Aptitude
Reasoning Ability
Previous Year Papers
SBI PO Practice Papers
IBPS PO
IBPS PO 2022 Syllabus
English Notes
Reasoning Notes
Previous Year Papers
Mock Question Papers
General Awareness
IBPS Clerk
IBPS Clerk Syllabus
English Notes
Previous Year Papers
UPSC Study Material
Geography Notes
History Notes
Modern Indian History Notes
Medieval Indian History Notes
Ancient Indian History Notes
Complete History Notes
Science & Tech. Notes
Ethics Notes
Polity Notes
Economics Notes
Government Schemes (Updated)
UPSC Previous Year Papers
SSC CGL Study Material
SSC CGL Syllabus
General Studies
English
Reasoning
Subjectwise Practice Papers
Previous Year Papers
Student
Campus Ambassador Program
School Ambassador Program
Project
Geek of the Month
Campus Geek of the Month
Placement Course
Competitive Programming
Testimonials
Student Chapter
Geek on the Top
Internship
Careers
Jobs
For Job Seekers
Get Hired: Apply for Jobs
Job-a-thon: Hiring Challenge
For Recruiters
Corporate Hiring Solutions
Practice
All DSA Problems
Problem of the Day
GFG SDE Sheet
Curated DSA Lists
Beginner's DSA Sheet
Love Babbar Sheet
Top 50 Array Problems
Top 50 String Problems
Top 50 DP Problems
Top 50 Graph Problems
Top 50 Tree Problems
Contests
GFG Weekly Coding Contest
Job-A-Thon: Hiring Challenge
BiWizard School Contest
All Contests and Events
Home
Saved Videos
Courses
GBlog
Puzzles
What's New ?
Change Language
Trending Now
Data Structures
Algorithms
Foundational Courses
Data Science
Practice Problem
Python
Machine Learning
JavaScript
Java
C
C++
ReactJS
NodeJS
Competitive Programming
Aptitude
Puzzles
Projects
Web Development
▲
Similar Topics
DSA
20.6k+ articles
Mathematical
7.6k+ articles
Arrays
6.3k+ articles
Strings
3k+ articles
C++
2.7k+ articles
Amazon
1.8k+ articles
Sorting
1.7k+ articles
Matrix
1.2k+ articles
Linked List
1k+ articles
rotation
400+ articles
C++ Programs
1.1k posts
Popular articles
Recent articles
C++ Program to Replace a Character in a String
Last Updated: 11 April 2023
Given a string S, c1 and c2. Replace character c1 with c2 and c2 with c1.Examples:Input: grrksfoegrrks, c1 = e, c2 = r Output: geeksforgeeks Input: ratul, c1 =
...read more
Strings
C++
School Programming
C++ Programs
CPP Strings Programs
DSA
C++ - Convert String to Integer Vector
Last Updated: 07 November 2022
Prerequisite:C++ Program For char to int ConversionVector in C++Conversion of string to integer is one of the common tasks done in C++, but it gets quite complex when ther
...read more
Technical Scripter
STL
cpp-vector
C++
C++ Programs
Picked
C Conversion Programs
Technical Scripter 2022
C++ Program to Show Use of This Keyword in Class
Last Updated: 04 July 2022
Here, we will see how to use this keyword in a class using a C++ program. this keyword in C++ is an implicit pointer that points to the object of the class of which the me
...read more
C++
C++ Programs
Picked
C++ Misc Programs
Similar Topics
DSA
20.6k+ articles
Mathematical
7.6k+ articles
Arrays
6.3k+ articles
Strings
3k+ articles
C++
2.7k+ articles
Amazon
1.8k+ articles
Sorting
1.7k+ articles
Matrix
1.2k+ articles
Linked List
1k+ articles
rotation
400+ articles
Steps to Install Geany IDE
Last Updated: 13 July 2021
Geany is a lightweight, high-performance Integrated Development Environment system that supports the most used programming languages, i.e C/C++, Java, Python2.x/3/x, etc.
...read more
Articles
C++
C++ Programs
Contact Book in C++ using File Handling
Last Updated: 09 March 2021
Straightaway prior brushing up knowledge of the language and file handling is required. So let us do discuss C++ Language concepts in File Handling and loops. Straight we
...read more
cpp-file-handling
C++
C++ Programs
Overloading the Comma Operator
Last Updated: 06 October 2020
In C++, we can overload the comma operator using Operator Overloading. For Example: For "Send the query X to the server Y and put the result in variable Z", the "and" play
...read more
C++
School Programming
cpp-operator-overloading
C++ Programs
cpp-overloading
Query to find the maximum and minimum weight between two nodes in the given tree using LCA.
Last Updated: 23 January 2023
Given a tree, and the weights of all the node. Each query contains two integers u and v, the task is to find the minimum and maximum weight on the simple path between u an
...read more
Tree
Dynamic Programming
Advanced Data Structure
Competitive Programming
LCA
Recursion
array-range-queries
LCA.array-range-queries
C++ Programs
DSA
Mandelbrot Set in C/C++ Using Graphics
Last Updated: 06 December 2022
FractalsA Fractal is a never-ending pattern. Fractals are infinitely complex patterns that are self-similar across different scales. They are created by repeating a simple
...read more
computer-graphics
C++ Programs
Fractal
TCS Coding Practice Question | Swap two Numbers
Last Updated: 11 January 2023
Given two numbers, the task is to swap the two numbers using Command Line Arguments. Examples:Input: n1 = 10, n2 = 20Output: 20 10Input: n1 = 100, n2 = 101Output: 101 100
...read more
TCS
Placements
C++ Programs
Java Programs
TCS-coding-questions
Remove first X rows and columns from a matrix
Last Updated: 15 September 2022
Given an integer X and a square matrix mat[][], the task is to remove the first X rows and columns from the given matrix and print the updated matrix.Examples:Input: mat[]
...read more
Matrix
School Programming
C++ Programs
DSA
First and Last Three Bits
Last Updated: 02 May 2023
Given an integer N. The task is to print the decimal equivalent of the first three bits and the last three bits in the binary representation of N.Examples:Input: 86Output:
...read more
Bit Magic
Technical Scripter
C++ Programs
DSA
Expressing a fraction as a natural number under modulo 'm'
Last Updated: 15 April 2023
Given two integers A and B where A is not divisible by B, the task is to express A / B as a natural number modulo m where m = 1000000007.Note: This representation is usefu
...read more
Algorithms
Mathematical
Competitive Programming
Modular Arithmetic
inversion
C Basics
C++ Programs
DSA
Divide two integers without using multiplication, division and mod operator | Set2
Last Updated: 19 October 2022
Given two integers say a and b. Find the quotient after dividing a by b without using multiplication, division and mod operator.Examples:Input: a = 10, b = 3Output: 3Input
...read more
Mathematical
C++ Programs
maths-log
DSA
C++ program to generate random number
Last Updated: 03 January 2018
The below implementation is to generate random number from 1 to given limit. The below function produces behavior similar to srand() function.Prerequisite : random header
...read more
C++
C++ Programs
C/C++ Program for Odd-Even Sort / Brick Sort
Last Updated: 31 May 2022
This is basically a variation of bubble-sort. This algorithm is divided into two phases- Odd and Even Phase. The algorithm runs until the array elements are sorted and in
...read more
Sorting
C Programs
C++ Programs
DSA
First
26
27
28
29
30
31
32
33
>>
Last
First
27
28
29
30
31
32
>>
Last
First
28
29
30
31
>>
Last
Courses
107k+ interested Geeks
Master C Programming with Data Structures
Explore
178k+ interested Geeks
Data Structures & Algorithms in Python - Self Paced
Explore
13k+ interested Geeks
Data Structures & Algorithms in JavaScript - Self Paced
Explore
Recently Published
Chinese Company Tencent is About to Launch ChatGPT-Like AI Chatbot
Read
Maximizing Productivity with Google Workspace
Read
7 Best IDEs For R Programming [2023]
Read
7 Best Java Courses and Certifications in 2023
Read
Top 10 Deep Learning Tools You Must Know [2023]
Read
Why to Choose Java For Backend Development?
Read
Best Way to Master Java Spring Boot Microservices – A Complete Roadmap
Read
Top 10 Django Projects For Beginners With Source Code
Read
How to Upgrade Pip and Python on Windows, Linux, and MacOS?
Read
Improve your Coding Skills with Practice
Try It!
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !