Skip to content
geeksforgeeks
  • DSA
    • Data Structures
      • Arrays
      • Matrix
      • Strings
      • Linked List
        • Singly Linked List
        • Doubly Linked List
        • Circular Linked List
        • Doubly Circular Linked List
        • Linked List Tutorial
      • 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
        • 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
    • 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
      • SDE Sheet
      • DSA Sheet for Beginners
      • FAANG Coding Sheet
      • Love Babbar Sheet
      • Mass Recruiter Sheet
      • Product-Based Coding Sheet
      • Company-Wise Preparation Sheet
    • Top Interview Questions
      • Top 100 DSA Interview Questions Topic-wise
    • Puzzles
      • All Puzzles
      • Top 100 Puzzles Asked In Interviews
      • Top 20 Puzzles Commonly Asked During SDE Interviews
  • Tutorials
    • Python Tutorial
      • Taking Input in Python
      • Python Operators
      • Python Data Types
        • Python Numbers
        • Python String
        • Python Lists
        • Python Tuples
        • Sets in Python
        • Python Dictionary
      • Python Loops and Control Flow
        • Python If Else
        • Python For Loops
        • Python While Loops
        • Python Breaks
        • Python Continue Statement
        • Python Pass Statement
      • Python Functions
      • Python OOPS Concept
      • Python Exception Handling
      • Python File Handling
    • Programming Languages
      • Python
      • Java
      • C
      • C++
      • JavaScript
      • PHP
      • R Tutorial
      • C#
      • SQL
      • Scala
      • Perl
      • Go Language
      • Kotlin
    • System Design
      • System Design Tutorial
        • What is System Design
        • Key Terminologies in System Design
        • Analysis and Architecture of Systems
        • Scalability in System Design
        • Databases in System Design
        • High Level Design or HLD
        • Low Level Design or LLD
        • Communication Protocols
        • Web Servers and Proxies
        • Case Studies in Designing Systems
        • Complete System Design Tutorial
      • Software Design Patterns
        • Factory Pattern
        • Observer Pattern
        • Singleton Design Pattern
        • Decorator Pattern
        • Strategy Pattern
        • Adapter Pattern
        • Command Pattern
        • Iterator Pattern
        • Prototype Design Pattern
        • All 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
    • CS Subjects
      • Mathematics
      • Operating System
      • DBMS
      • Computer Networks
      • Computer Organization and Architecture
      • Theory of Computation
      • Compiler Design
      • Digital Logic
      • Software Engineering
    • DevOps
      • GIT
      • AWS
      • Docker
      • Kubernetes
      • Microsoft Azure Tutorial
      • Google Cloud Platform
    • Mathematics
      • Number System
      • Algebra
      • Linear Algebra
      • Trigonometry
      • Set Theory
      • Statistics
      • Probability
      • Geometry
      • Mensuration
      • Logarithms
      • Calculus
    • Commerce
      • Business Studies
      • Accountancy
      • Microeconomics
      • Statistics for Economics
      • Macroeconomics
      • Human Resource Management (HRM)
      • Management
      • Income Tax
      • Finance
      • Commerce Complete Guide
    • GATE
      • GATE 2024 Live Course
      • GATE Computer Science Notes
      • Last Minute Notes
      • GATE CS Solved Papers
      • GATE CS Original Papers and Official Keys
      • GATE CS 2023 Syllabus
      • Important Topics for GATE CS
      • GATE 2023 Important Dates
      • Other CS Exams
        • ISRO
          • ISRO CS Original Papers and Official Keys
          • ISRO CS Solved Papers
          • ISRO CS Syllabus for Scientist/Engineer Exam
        • UGC NET
          • UGC NET CS Notes Paper II
          • UGC NET CS Notes Paper III
          • UGC NET CS Solved Papers
    • SEO-Search Engine Optimization
      • What is SEO
      • Search Engine Optimization Basics
      • Types of SEO
      • Keyword Optimization in SEO
      • Backlinks in SEO
      • SEO Blogs
      • Mobile SEO
      • SEO Complete Reference
    • Student
      • Campus Ambassador Program
      • School Ambassador Program
      • Project
      • Geek of the Month
      • Campus Geek of the Month
      • Placement Course
      • Competitive Programming
      • Testimonials
      • Student Chapter
      • Geek on the Top
      • Internship
      • Careers
  • 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 Dev
    • HTML Tutorial
    • CSS Tutorial
    • JavaScript Tutorial
    • PHP Tutorial
    • ReactJS Tutorial
    • NodeJS Tutorial
    • AngularJS
    • JSON
    • Cheat Sheets
      • HTML Cheat Sheet
      • CSS Cheat Sheet
      • JavaScript Cheat Sheet
      • React Cheat Sheet
      • Angular Cheat Sheet
      • jQuery Cheat Sheet
      • Bootstrap Cheat Sheet
    • Web Design
    • Web Browsers
      • Google Chrome
      • Mozilla Firefox
      • Apple Safari
      • Microsoft Edge
      • Tor
  • Home
  • Saved Videos
  • Courses
    • Data Structures and Algorithms

      • DSA Tutorial
      • Data Structures Tutorial
      • Algorithms Tutorial
      • Top 100 DSA Interview Questions
      • DSA-Roadmap[Basic-to-Advanced]

      ML & Data Science

      • Learn Python
      • Data Science Tutorial
      • Machine Learning Tutorial
      • Deep Learning Tutorial
      • NLP Tutorial
      • Computer Vision Tutorial

      Web Development

      • HTML Tutorial
      • CSS Tutorial
      • JavaScript Tutorial
      • ReactJS Tutorial
      • NodeJS Tutorial

      Languages

      • C
      • C++
      • Java
      • R Tutorial
      • Golang

      Interview Corner

      • Company Interview Corner
      • Experienced Interviews
      • Internship Experiences
      • Practice Company Questions
      • Competitive Programming

      CS Subjects

      • Operating Systems
      • DBMS
      • Computer Networks
      • Software Engineering
      • Software Testing

      Jobs

      • Get Hired: Apply for Jobs
      • Job-a-thon: Hiring Challenge
      • Corporate Hiring Solutions

      Practice

      • All DSA Problems
      • Problem of the Day
      • GFG SDE Sheet
      • 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

      • World Cup Hack-A-Thon
      • GFG Weekly Coding Contest
      • Job-A-Thon: Hiring Challenge
      • BiWizard School Contest
      • All Contests and Events
    • GBlog
    • Puzzles
    • What's New ?
    • 90% Refund @Courses
    • Java Arrays
    • Java Strings
    • Java OOPs
    • Java Collection
    • Java 8 Tutorial
    • Java Multithreading
    • Java Exception Handling
    • Java Programs
    • Java Project
    • Java Collections Interview
    • Java Interview Questions
    • Java MCQs
    • Spring
    • Spring MVC
    • Spring Boot
    • Hibernate
    • Explore Our Geeks Community
    • Java Tutorial
    • Overview of Java

      • Introduction to Java
      • The Complete History of Java Programming Language
      • C++ vs Java vs Python
      • How to Download and Install Java for 64 bit machine?
      • Setting up the environment in Java
      • How to Download and Install Eclipse on Windows?
      • JDK in Java
      • How JVM Works - JVM Architecture?
      • Differences between JDK, JRE and JVM
      • Just In Time Compiler
      • Difference between JIT and JVM in Java
      • Difference between Byte Code and Machine Code
      • How is Java platform independent?

      Basics of Java

      • Java Basic Syntax
      • Java Hello World Program
      • Java Data Types
      • Primitive data type vs. Object data type in Java with Examples
      • Java Identifiers
      • Operators in Java
      • Java Variables
      • Scope of Variables In Java
      • Wrapper Classes in Java

      Input/Output in Java

      • How to Take Input From User in Java?
      • Scanner Class in Java
      • Java.io.BufferedReader Class in Java
      • Difference Between Scanner and BufferedReader Class in Java
      • Ways to read input from console in Java
      • System.out.println in Java
      • Difference between print() and println() in Java
      • Formatted Output in Java using printf()
      • Fast I/O in Java in Competitive Programming

      Flow Control in Java

      • Decision Making in Java (if, if-else, switch, break, continue, jump)
      • Java if statement with Examples
      • Java if-else
      • Java if-else-if ladder with Examples
      • Loops in Java
      • For Loop in Java
      • Java while loop with Examples
      • Java do-while loop with Examples
      • For-each loop in Java
      • Continue Statement in Java
      • Break statement in Java
      • Usage of Break keyword in Java
      • return keyword in Java

      Operators in Java

      • Java Arithmetic Operators with Examples
      • Java Unary Operator with Examples
      • Java Assignment Operators with Examples
      • Java Relational Operators with Examples
      • Java Logical Operators with Examples
      • Java Ternary Operator with Examples