Skip to content
geeksforgeeks
  • 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