Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Newly Launched!
      • Generative AI & ChatGPT
      • Master Django Framework
      • Become AWS Certified
    • 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
      • Placement 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 (Self-Paced)
      • GATE DS & AI (Self-Paced)
      • GATE 2025 Crash Course (LIVE)
    • 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 Topic 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