Skip to content
Courses
DSA to Development
Machine Learning & Data Science
Generative AI & ChatGPT
Become AWS Certified
DSA Courses
Data Structure & Algorithm(C++/JAVA)
Data Structure & Algorithm(Python)
Data Structure & Algorithm(JavaScript)
Programming Languages
CPP
Java
Python
JavaScript
C
All Courses
Tutorials
Python Tutorial
Taking Input in Python
Python Operators
Python Data Types
Python Loops and Control Flow
Python Conditional Statements
Python Loops
Python Functions
Python OOPS Concept
Python Data Structures
Python Exception Handling
Python File Handling
Python Exercises
Java
Learn Java Programming Language
Java Collections
Java 8 Tutorial
Java Programs
Java Interview Questions
Java Interview Questions
Core Java Interview Questions-Freshers
Java Multithreading Interview Questions
OOPs Interview Questions and Answers
Java Exercises
Java Quiz
Java Quiz
Core Java MCQ
Java Projects
Advance Java
Spring Tutorial
Spring Boot Tutorial
Spring Boot Interview Questions
Spring MVC Tutorial
Spring MVC Interview Questions
Hibernate Tutorial
Hibernate Interview Questions
Programming Languages
JavaScript
C++
R Tutorial
SQL
PHP
C#
C
Scala
Perl
Go Language
Kotlin
System Design
System Design Tutorial
Software 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
Computer Science Subjects
Operating System
DBMS
Computer Networks
Engineering Mathematics
Computer Organization and Architecture
Theory of Computation
Compiler Design
Digital Logic
Software Engineering
DevOps
GIT
AWS
Docker
Kubernetes
Microsoft Azure Tutorial
Google Cloud Platform
Linux
Linux Tutorial
Linux Commands A-Z
Linux Commands Cheatsheet
File Permission Commands
Linux System Administration
Linux File System
Linux Shell Scripting
Linux Networking
Linux Interview Questions
Software Testing
Software Testing Tutorial
Software Engineering Tutorial
Testing Interview Questions
Jira
Databases
DBMS Tutorial
SQL Tutorial
PostgreSQL Tutorial
MongoDB Tutorial
SQL Interview Questions
MySQL Interview Questions
PL/SQL Interview Questions
Android
Android Tutorial
Android Studio Tutorial
Kotlin For Android
Android Projects
Android Interview Questions
6 Weeks of Android App Development
Excel
MS Excel Tutorial
Introduction to MS Excel
Data Analysis in Excel
Basic Excel Formulas & Functions
Data Analysis in Advanced Excel
Workbooks
Statistical Functions
Data Visualization in Excel
Pivot Tables in Excel
Excel Spreadsheets in Python
Basic Excel Shortcuts
Mathematics
Number System
Algebra
Linear Algebra
Trigonometry
Set Theory
Statistics
Probability
Geometry
Mensuration
Logarithms
Calculus
DSA
Data Structures
Arrays
Matrix
Strings
Linked List
Stack
Queue
Tree
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
DSA Tutorial
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
Top 50 Array Problems
Top 50 String Problems
Top 50 DP Problems
Top 50 Graph Problems
Top 50 Tree Problems
Competitive Programming
Company Wise SDE Sheets
Facebook SDE Sheet
Amazon SDE Sheet
Apple SDE Sheet
Netflix SDE Sheet
Google SDE Sheet
DSA Cheat Sheets
SDE Sheet
DSA Sheet for Beginners
FAANG Coding Sheet
Product-Based Coding Sheet
Company-Wise Preparation Sheet
Top Interview Questions
Puzzles
All Puzzles
Top 100 Puzzles Asked In Interviews
Top 20 Puzzles Commonly Asked During SDE Interviews
Data Science
Python Tutorial
R Tutorial
Machine Learning
Data Science using Python
Data Science using R
Data Science Packages
Pandas Tutorial
NumPy Tutorial
Data Visualization
Python Data Visualization Tutorial
Data Visualization with R
Data Analysis
Data Analysis with Python
Data Analysis with R
Deep Learning
NLP Tutorial
Web Tech
HTML Tutorial
CSS Tutorial
JavaScript Tutorial
PHP Tutorial
ReactJS Tutorial
NodeJS Tutorial
Bootstrap Tutorial
Typescript
Web Development Using Python
Django
Django Tutorial
Django Projects
Django Interview Questions
Flask
Flask Tutorial
Flask Projects
Flask Interview Questions
Postman
Github
Cheat Sheets
HTML Cheat Sheet
CSS Cheat Sheet
JavaScript Cheat Sheet
React Cheat Sheet
Angular Cheat Sheet
jQuery Cheat Sheet
Bootstrap Cheat Sheet
Learn Complete Web Development
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
22.3k+ articles
Mathematical
7.7k+ articles
C++
4k+ articles
C Language
1.8k+ articles
School Programming
1.3k+ articles
STL
1.2k+ articles
Java-Collections
1.1k+ articles
number-theory
410+ articles
Quick Sort
76 articles
C-Input and Output Quiz
25 articles
GFacts
72 posts
Popular Articles
Recent Articles
GFact | Which Sorting Algorithm is Best and Why?
Last Updated: 09 October 2023
A sorting algorithm is an algorithm that makes the input data set arranged in a certain order. The fundamental task is to put the items in t
...read more
GFacts
Quick Sort
Picked
Geeks Premier League
Geeks Premier League 2023
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 | 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
22.3k+ articles
Mathematical
7.7k+ articles
C++
4k+ articles
C Language
1.8k+ articles
School Programming
1.3k+ articles
STL
1.2k+ articles
Java-Collections
1.1k+ articles
number-theory
410+ articles
Quick Sort
76+ 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
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 !