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
Top 50 Interesting Unknown Facts about Programming
Last Updated: 30 January 2024
Learning programming can be exciting! As you explore this world, some cool and lesser-known facts can make your experience even more interes
...read more
GFacts
Picked
What will happen if i declare main() in java as non-static?
Last Updated: 27 December 2023
main() method in Java acts as an application's entry point. So declaration must read "public static void main(String[] args)" to work proper
...read more
GFacts
Java-Collections
java-basics
DSA
Why can templates only be implemented in the header file?
Last Updated: 11 December 2023
Templates are a powerful feature in C++ that allows for the creation of generic functions and classes. They provide a way to write code that
...read more
GFacts
cpp-template
Templates
Picked
DSA
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
Why Rand() function Always give the Same Value ?
Last Updated: 29 February 2024
Have you ever wondered why the rand() function always gives the same values each time we compile and run our code? well in this post we are
...read more
GFacts
STL
C++
DSA
DSA Facts
Is it Necessary that each Try block must be followed by a Catch block in Java?
Last Updated: 08 December 2023
Have you ever wondered if it is necessary to write a catch statement after try , or what will happen if we don't write catch statement after
...read more
GFacts
DSA
What is the best way to inject Dependency in Java?
Last Updated: 01 December 2023
You can transform standard Java classes into manageable objects by using dependency injection. Your programs can define dependencies on any
...read more
GFacts
DSA
Java Facts
When is Doubly Linked List more Efficient than Singly Linked List?
Last Updated: 01 December 2023
Did you know there are some cases where a Doubly Linked List is more efficient than a Singly Linked List, even though it takes more memory c
...read more
Linked Lists
GFacts
DSA
Fastest Searching Algorithm | GFact
Last Updated: 24 January 2024
Pattern searching is a critical operation in the field of computer science, Its applications range from text processing and DNA sequencing t
...read more
GFacts
Pattern Searching
Algorithms-Searching
GFact | Why doesn't Greedy Algorithm work for 0-1 Knapsack problem?
Last Updated: 03 October 2023
In this article, we will discuss why the 0-1 knapsack problem cannot be solved by the greedy method, or why the greedy algorithm is not opti
...read more
GFacts
knapsack
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 | Storage class of a variable
Last Updated: 17 October 2023
Storage class of a variable determines whether the item has a global or local lifetime. In C, typedef is considered as a storage class like
...read more
GFacts
GFact | Putting a 0 before an integer constant
Last Updated: 17 October 2023
Predict the output of following program. [sourcecode language="C"]#include stdio.hint main() { int x = 012; printf(%d, x); getchar();
...read more
GFacts
GFact | C standard C99 allows inline functions and variable-length-arrays
Last Updated: 18 October 2023
The C standard C99 allows inline functions and variable-length-arrays. So following functions are valid in C99 compliant compilers. Example
...read more
GFacts
GFact | How to know the IP address(es) of a URL/website?
Last Updated: 18 October 2023
To know the IP address(es) of a URL/website, nslookup can be used at the shell/command prompt (cmd.exe). It works on both types of operating
...read more
GFacts
GFact | (Sizeof) is an operator
Last Updated: 18 October 2023
In C language, sizeof( ) is an operator. Though it looks like a function, it is an unary operator.For example in the following program, when
...read more
GFacts
First
1
2
3
4
5
>>
Last
First
1
2
3
4
5
>>
Last
First
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 !