Skip to content
Courses
DSA to Development
Coding for Everyone
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Software Testing & Automation (Live)
Data Structures & Algorithms in Python
For Students
Interview Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
GATE Exam Courses
GATE CS & IT
GATE DA & AI
GATE Classroom Course (NCR)
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
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
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 100 DSA Interview Questions Topic-wise
100 Days of Code
Python
Python Tutorial
Python Exercises
Python List Exercise
Python String Exercise
Python Tuple Exercise
Python Dictionary Exercise
Python Set Exercise
Python Excercises Top wise
Python Quiz
Python Programs
Advanced Python Tutorial
Python API Tutorial
Python Database Tutorial
Python JSON
Python Cheat Sheet
Python Projects
Python Interview Questions
ML & Data Science
Machine Learning
Machine Learning Tutorial
Maths for ML
ML Projects
100 Days of Machine Learning
Data Science Tutorial
Data Science Packages
Pandas Tutorial
NumPy Tutorial
Data Visualization
Data Visualization with Python
Data Visualization with R
Tableau
Power BI
Data Analysis
Data Analysis with Python
Data Analysis with R
100 Days of Data Analytics
Deep Learning
NLP Tutorial
OpenCV Tutorial
Interview Questions
Machine Learning Interview Questions
Deep Learning Interview Questions
R Interview Questions
System Design
System Design Tutorial
Software Design Patterns
System Design Roadmap
Top 10 System Design Interview Questions
Interview Corner
Company Preparation
Top Topics
Practice Company Questions
Interview Experiences
Experienced Interviews
Internship Interviews
Competitive Programming
Multiple Choice Quizzes
Aptitude for Placements
Puzzles for Interviews
Languages
C
C++
Java
Python
R Tutorial
C#
SQL
Scala
Perl
Go Language
Web Development
HTML
HTML Tutorial
Free HTML Course
HTML Cheat Sheet
CSS
CSS Tutorial
Free CSS Course
CSS Cheat Sheet
JavaScript
JavaScript Tutorial
JavaScript Questions
JavaScript Cheat Sheet
DSA using JavaScript
Free JavaScript Course
JavaScript A to Z Complete Guide
TypeScript
ReactJS
ReactJS Tutorial
Free ReactJS Course
ReactJS Cheat Sheet
NextJS
Node.js
PHP
PHP Tutorial
Free PHP Course
PHP Programming Examples
AngularJS
jQuery
jQuery Tutorial
jQuery Cheat Sheet
Web Development Using Python
Django
Flask
Selenium
Postman
Github
Web Design
100 Days of Web Development
CS Subjects
Engineering Mathematics
Operating System
DBMS
Computer Networks
Computer Organization and Architecture
Theory of Computation
Compiler Design
Digital Logic
Software Engineering
DevOps
DevOps Tutorial
GIT
AWS
Kubernetes
Docker
Microsoft Azure Tutorial
Google Cloud Platform
DevOps Roadmap
DevOps Interview Questions
Linux
Linux Tutorial
Linux Commands A-Z
Linux Commands Cheatsheet
File Permissions in Linux
Linux System Administration
Linux File System
Linux Shell Scripting
Linux Networking
Linux Interview Questions
School Learning
Class 8 Study Material
Class 9 Study Material
Class 10 Study Material
Class 11Study Material
Class 12 Study Material
English Grammar
GfG School
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
Human Resource Management (HRM)
Management
Income Tax
Finance
Commerce Complete Guide
GATE
GATE Computer Science Notes
Last Minute Notes
GATE CS Solved Papers
GATE CS Original Papers and Official Keys
GATE CS 2025 Syllabus
GATE DA 2025 Syllabus
Other CS Exams
ISRO
UGC NET
UPSC and SSC/Banking
UPSC Study Material
Banking Exams Study Material
SBI Clerk
SBI PO
IBPS Clerk
IBPS PO
SSC CGL Study Material
GeeksforGeeks Videos
Jobs
Get Hired: Apply for Jobs
Corporate Hiring Solutions
Latest Job Updates
Practice
All DSA Problems
Problem of the Day
Company Wise Coding Practice
Amazon
Microsoft
Flipkart
Explore All
GfG SDE Sheet
Practice Problems Difficulty Wise
School
Basic
Easy
Medium
Hard
Language Wise Coding Practice
CPP
Java
Python
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
Job-A-Thon: Matrix Partners India
Job-A-Thon Hiring Challenge
Get Internship via GfG Weekly
TOEFL India Championship
All Contests and Events
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
▲
Similar Topics
DSA
21.9k+ articles
Mathematical
7.7k+ articles
C++
3.7k+ articles
C Language
1.7k+ articles
School Programming
1.3k+ articles
STL
1.1k+ articles
Java-Collections
1.1k+ articles
number-theory
410+ articles
Quick Sort
68 articles
C-Input and Output Quiz
25 articles
GFacts
73 posts
Popular Articles
Recent Articles
Can C++ reference member be declared without being initialized with declaration?
Last Updated: 26 April 2021
To many readers, this might sound the same thing, i.e.class_type *var = NULL;*var = some_work;is same asclass_type *var = some_work;But in a
...read more
GFacts
Technical Scripter
cpp-references
C++
Technical Scripter 2018
GFact | Collatz Sequence
Last Updated: 17 October 2023
Starting with any positive integer N, we define the Collatz sequence corresponding to N as the numbers formed by the following operations:N
...read more
GFacts
Dynamic Programming
Mathematical
DSA
GFact | Cayley's formula for Number of Labelled Trees
Last Updated: 17 October 2023
Consider below questions. How many spanning trees can be there in a complete graph with n vertices? How many labelled Trees (please note tr
...read more
GFacts
Similar Topics
DSA
21.9k+ articles
Mathematical
7.7k+ articles
C++
3.7k+ articles
C Language
1.7k+ articles
School Programming
1.3k+ articles
STL
1.1k+ articles
Java-Collections
1.1k+ articles
number-theory
410+ articles
Quick Sort
68+ articles
C-Input and Output Quiz
25+ articles
G-Fact 19 (Logical and Bitwise Not Operators on Boolean)
Last Updated: 28 November 2023
Most of the languages including C, C++, Java, and Python provide a boolean type that can be either set to False or True. In this article, we
...read more
GFacts
Python
GFact | Finding nth Fibonacci Number using Golden Ratio
Last Updated: 17 October 2023
We have discussed different methods to find nth Fibonacci Number. Following is another mathematically correct way to find the same.nth Fibo
...read more
GFacts
Fibonacci
fseek() vs rewind() in C
Last Updated: 28 June 2023
fseek() and rewind() both functions are used to file positioning defined in stdio.h header file. In this article, we will discuss the differ
...read more
GFacts
secure-coding
C Language
C-File Handling
GFact | What is an atomic operation?
Last Updated: 17 October 2023
Atomic OperationWhat is an atomic operation? An idea of atomic operation helps in understanding reentrancy, critical section, thread safety,
...read more
GFacts
GFact | Meaning of this equation (L = (n-1)*I + 1) in n-ary Tree
Last Updated: 17 October 2023
Following relationship holds in any n-ary tree in which every node has either 0 or n children.L = (n-1)*I + 1 Where L is the number of leaf
...read more
GFacts
What is evaluation order of function parameters in C?
Last Updated: 28 May 2017
It is compiler dependent in C. It is never safe to depend on the order of evaluation of side effects. For example, a function call like belo
...read more
GFacts
C Language
C-Functions
How are variables scoped in C - Static or Dynamic?
Last Updated: 12 April 2023
In C, variables are always statically (or lexically) scoped i.e., binding of a variable can be determined by program text and is independent
...read more
GFacts
C Language
C-Variable Declaration and Scope
What are the Operators that Can be and Cannot be Overloaded in C++?
Last Updated: 27 May 2022
There are various ways to overload Operators in C++ by implementing any of the following types of functions:1) Member Function2) Non-Member
...read more
GFacts
C Language
C++
School Programming
What is return type of getchar(), fgetc() and getc() ?
Last Updated: 28 May 2017
In C, return type of getchar(), fgetc() and getc() is int (not char). So it is recommended to assign the returned values of these functions
...read more
GFacts
C Language
C-Input and Output Quiz
Return values of printf() and scanf() in C/C++
Last Updated: 29 November 2020
What values do the printf() and scanf() functions return ?printf() : It returns total number of Characters Printed, Or negative value if an
...read more
GFacts
cpp-input-output
C Language
C-Input and Output Quiz
Operands for sizeof operator
Last Updated: 04 May 2020
The sizeof operator is used to return the size of its operand, in bytes. This operator always precedes its operand. The operand either may b
...read more
GFacts
C Language
C++
C-Operators
What all is inherited from parent class in C++?
Last Updated: 05 September 2023
Following are the things that a derived class inherits from its parent:All the public and protected data members and member functions of the
...read more
GFacts
cpp-inheritance
C Language
C++
School Programming
1
2
3
4
5
>>
Last
1
2
3
4
5
>>
Last
1
2
3
4
>>
Last
34k+ interested Geeks
Coding for Everyone
Explore
231k+ interested Geeks
DSA to Development: A Complete Guide
Explore
247k+ interested Geeks
Complete Machine Learning & Data Science Program
Explore
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 !