www.geeksforgeeks.org
Open in
urlscan Pro
2a02:26f0:11a::217:9a58
Public Scan
URL:
https://www.geeksforgeeks.org/
Submission: On January 20 via api from US — Scanned from DE
Submission: On January 20 via api from US — Scanned from DE
Form analysis
1 forms found in the DOM<form id="gcse-form" data-sm="false" class="p-relative"><input class="gcse-search-input__wrapper" id="gcse-search-input" aria-expanded="false">
<i class="gfg-icon gfg-icon_times gfg-icon_white hide-search"></i>
<button class="gcse-search__btn not-expanded">
<i class="gfg-icon gfg-icon_search gfg-icon_white gcse-search__icon"></i></button>
</form>
Text Content
Skip to content * Courses * For Working Professionals * DevOps(Live) * Data Structure & Algorithm Classes (Live) * System Design (Live) * Java Backend Developer (Live) * Full Stack Development with React & Node JS (Live) * Complete Data Science Program * Data Structure & Algorithm-Self Paced(C++/JAVA) * Data Structures & Algorithms in Python * Explore More Live Courses * For Students * Competitive Programming (Live) * Interview Preparation Course * Data Structure & Algorithm-Self Paced(C++/JAVA) * Data Structures & Algorithms in Python * Data Science (Live) * Full Stack Development with React & Node JS (Live) * GATE CS 2023 Test Series * OS DBMS CN for SDE Interview Preparation * Explore More Self-Paced Courses * Programming Languages * C++ Programming - Beginner to Advanced * Java Programming - Beginner to Advanced * C Programming - Beginner to Advanced * Python Foundation * JavaScript Foundation * Web Development * Full Stack Development with React & Node JS(Live) * Java Backend Development(Live) * React JS (Basic to Advanced) * JavaScript Foundation * Machine Learning and Data Science * Complete Data Science Program(Live) * Mastering Data Analytics * School Courses * CBSE Class 12 Computer Science * School Guide * All Courses * Tutorials * DSA * Data Structures * Arrays * Linked List * Stack * Queue * Binary Tree * Binary Search Tree * Heap * Hashing * Graph * Advanced Data Structure * Matrix * Strings * All Data Structures * Algorithms * Analysis of Algorithms * Asymptotic Analysis * Worst, Average and Best Cases * Asymptotic Notations * Little o and little omega notations * Lower and Upper Bound Theory * Analysis of Loops * Solving Recurrences * Amortized Analysis * What does 'Space Complexity' mean ? * Pseudo-polynomial Algorithms * Polynomial Time Approximation Scheme * A Time Complexity Question * Searching Algorithms * Sorting Algorithms * Graph Algorithms * Pattern Searching * Geometric Algorithms * Mathematical * Bitwise Algorithms * Randomized Algorithms * Greedy Algorithms * Dynamic Programming * Divide and Conquer * Backtracking * Branch and Bound * All Algorithms * Interview Corner * Company Preparation * Top Topics * Practice Company Questions * Interview Experiences * Experienced Interviews * Internship Interviews * Competititve Programming * Design Patterns * System Design Tutorial * Multiple Choice Quizzes * Languages * C * C++ * Java * Python * JavaScript * PHP * C# * SQL * Scala * Perl * Go Language * Kotlin * Web Development * HTML * CSS * JavaScript * PHP * CSS Frameworks * Bootstrap * Tailwind CSS * Foundation CSS * Materialize CSS * Bulma * Pure CSS * Primer CSS * Blaze UI * Semantic UI * JavaScript Frameworks * AngularJS * Angular PrimeNG * Angular ngx Bootstrap * NodeJS * Express.js * JavaScript Libraries * jQuery * jQuery Mobile * jQuery UI * jQuery EasyUI * jQWidgets * ReactJS * React Bootstrap * React Rebass * React Desktop * React Suite * ReactJS Evergreen * ReactJS Reactstrap * Ant Design * BlueprintJS * p5.js * Lodash * TensorFlow.js * Moment.js * Collect.js * WordPress * JSON * School Learning * School Programming * Mathematics * Number System * Algebra * Trigonometry * Statistics * Probability * Geometry * Mensuration * Calculus * Maths Notes (Class 8-12) * Class 8 Notes * Class 9 Notes * Class 10 Notes * Class 11 Notes * Class 12 Notes * NCERT Solutions * Class 8 Maths Solution * Class 9 Maths Solution * Class 10 Maths Solution * Class 11 Maths Solution * Class 12 Maths Solution * RD Sharma Solutions * Class 8 Maths Solution * Class 9 Maths Solution * Class 10 Maths Solution * Class 11 Maths Solution * Class 12 Maths Solution * Physics Notes (Class 8-11) * Class 8 Notes * Class 9 Notes * Class 10 Notes * Class 11 Notes * Chemistry Notes * Class 8 Notes * Class 9 Notes * Class 10 Notes * Business Studies (Class 11th) * Business Studies (Class 12th) * Accountancy (Class 12th) * Statistics for Economics (Class 11th) * ML & Data Science * Machine Learning * Data Science * CS Subjects * Mathematics * Operating System * DBMS * Computer Networks * Computer Organization and Architecture * Theory of Computation * Compiler Design * Digital Logic * Software Engineering * GATE * GATE 2023 Test Series * 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 * Software Designs * Software Design Patterns * System Design Tutorial * GFG Sheets * Web Dev Cheat Sheets * HTML Cheat Sheet * CSS Cheat Sheet * Bootstrap Cheat Sheet * JS Cheat Sheet * jQuery Cheat Sheet * Angular Cheat Sheet * 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 Sheets * SDE Sheet * FAANG Coding Sheet * Love Babbar Sheet * Mass Recruiter Sheet * Product-Based Coding Sheet * Company-Wise Preparation Sheet * Array Sheet * String Sheet * Tree Sheet * Graph Sheet * DP Sheet * CS Exams/PSUs * 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 * Student * Campus Ambassador Program * School Ambassador Program * Project * Geek of the Month * Campus Geek of the Month * Placement Course * Competititve Programming * Testimonials * Student Chapter * Geek on the Top * Internship * Careers * UPSC * Geography Notes * History Notes * Science & Tech. Notes * Ethics Notes * Polity Notes * Economics Notes * UPSC Previous Year Papers * SSC CGL * SSC CGL Syllabus * General Studies * English * Reasoning * Subjectwise Practice Papers * Previous Year Papers * Banking Exams * SBI Clerk * SBI Clerk Syllabus * General Awareness * English * Quantitative Aptitude * Reasoning Ability * SBI Clerk Practice Papers * SBI PO * SBI PO Syllabus * General Awareness * English * Quantitative Aptitude * Reasoning Ability * Previous Year Papers * SBI PO Practice Papers * IBPS PO * IBPS PO 2022 Syllabus * English Notes * Reasoning Notes * Previous Year Papers * Mock Question Papers * IBPS Clerk * IBPS Clerk Syllabus * English Notes * Previous Year Papers * Jobs * Apply for a Job * Apply through Jobathon * Post a Job * Hire through Jobathon * Practice * All DSA Problems * Problem of the Day * GFG SDE Sheet * Curated DSA Lists * Top 50 Array Problems * Top 50 String Problems * Top 50 Tree Problems * Top 50 Graph Problems * Top 50 DP Problems * Contests * GFG Weekly Coding Contest * Job-A-Thon: Hiring Challenge * BiWizard School Contest * All Contests and Events * * * Sign In * Sign In * Home * Saved Videos * Courses * * For Working Professionals * DevOps(Live) * Data Structure & Algorithm Classes (Live) * System Design (Live) * Java Backend Developer (Live) * Full Stack Development with React & Node JS (Live) * Complete Data Science Program * Data Structure & Algorithm-Self Paced(C++/JAVA) * Data Structures & Algorithms in Python * Explore More Live Courses * For Students * Competitive Programming (Live) * Interview Preparation Course * Data Structure & Algorithm-Self Paced(C++/JAVA) * Data Structures & Algorithms in Python * Data Science (Live) * Full Stack Development with React & Node JS (Live) * GATE CS 2023 Test Series * OS DBMS CN for SDE Interview Preparation * Explore More Self-Paced Courses * Programming Languages * C++ Programming - Beginner to Advanced * Java Programming - Beginner to Advanced * C Programming - Beginner to Advanced * Python Foundation * JavaScript Foundation * Web Development * Full Stack Development with React & Node JS(Live) * Java Backend Development(Live) * React JS (Basic to Advanced) * JavaScript Foundation * Machine Learning and Data Science * Complete Data Science Program(Live) * Mastering Data Analytics * School Courses * CBSE Class 12 Computer Science * School Guide * Data Structures * Arrays * Linked List * Stack * Queue * Binary Tree * Binary Search Tree * Heap * Hashing * Graph * Advanced Data Structure * Matrix * Strings * All Data Structures * Algorithms * Searching Algorithms * Sorting Algorithms * Graph Algorithms * Pattern Searching * Geometric Algorithms * Mathematical * Bitwise Algorithms * Randomized Algorithms * Greedy Algorithms * Dynamic Programming * Divide and Conquer * Backtracking * Branch and Bound * All Algorithms * Analysis of Algorithms * Asymptotic Analysis * Worst, Average and Best Cases * Asymptotic Notations * Little o and little omega notations * Lower and Upper Bound Theory * Analysis of Loops * Solving Recurrences * Amortized Analysis * What does 'Space Complexity' mean ? * Pseudo-polynomial Algorithms * Polynomial Time Approximation Scheme * A Time Complexity Question * Interview Corner * Company Preparation * Top Topics * Practice Company Questions * Interview Experiences * Experienced Interviews * Internship Interviews * Competititve Programming * Design Patterns * System Design Tutorial * Multiple Choice Quizzes * Languages * C * C++ * Java * Python * JavaScript * PHP * C# * SQL * Scala * Perl * Go Language * Kotlin * Web Development * HTML * CSS * JavaScript * PHP * WordPress * JSON * CSS Frameworks * Bootstrap * Tailwind CSS * Foundation CSS * Materialize CSS * Bulma * Pure CSS * Primer CSS * Blaze UI * Semantic UI * JavaScript Frameworks * AngularJS * Angular PrimeNG * Angular ngx Bootstrap * NodeJS * Express.js * JavaScript Libraries * jQuery * jQuery Mobile * jQuery UI * jQuery EasyUI * jQWidgets * ReactJS * React Bootstrap * React Rebass * React Desktop * React Suite * ReactJS Evergreen * ReactJS Reactstrap * Ant Design * BlueprintJS * p5.js * Lodash * TensorFlow.js * Moment.js * Collect.js * School Learning * School Programming * Business Studies (Class 11th) * Business Studies (Class 12th) * Accountancy (Class 12th) * Statistics for Economics (Class 11th) * Mathematics * Number System * Algebra * Trigonometry * Statistics * Probability * Geometry * Mensuration * Calculus * Maths Notes (Class 8-12) * Class 8 Notes * Class 9 Notes * Class 10 Notes * Class 11 Notes * Class 12 Notes * NCERT Solutions * Class 8 Maths Solution * Class 9 Maths Solution * Class 10 Maths Solution * Class 11 Maths Solution * Class 12 Maths Solution * RD Sharma Solutions * Class 8 Maths Solution * Class 9 Maths Solution * Class 10 Maths Solution * Class 11 Maths Solution * Class 12 Maths Solution * Physics Notes (Class 8-11) * Class 8 Notes * Class 9 Notes * Class 10 Notes * Class 11 Notes * Chemistry Notes * Class 8 Notes * Class 9 Notes * Class 10 Notes * ML & Data Science * Machine Learning * Data Science * CS Subjects * Mathematics * Operating System * DBMS * Computer Networks * Computer Organization and Architecture * Theory of Computation * Compiler Design * Digital Logic * Software Engineering * GATE * GATE 2023 Test Series * 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 * Software Designs * Software Design Patterns * System Design Tutorial * GFG Sheets * Web Dev Cheat Sheets * HTML Cheat Sheet * CSS Cheat Sheet * Bootstrap Cheat Sheet * JS Cheat Sheet * jQuery Cheat Sheet * Angular Cheat Sheet * 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 Sheets * SDE Sheet * FAANG Coding Sheet * Love Babbar Sheet * Mass Recruiter Sheet * Product-Based Coding Sheet * Company-Wise Preparation Sheet * Array Sheet * String Sheet * Tree Sheet * Graph Sheet * DP Sheet * CS Exams/PSUs * 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 * Student * Campus Ambassador Program * School Ambassador Program * Project * Geek of the Month * Campus Geek of the Month * Placement Course * Competititve Programming * Testimonials * Student Chapter * Geek on the Top * Internship * Careers * UPSC * Geography Notes * History Notes * Science & Tech. Notes * Ethics Notes * Polity Notes * Economics Notes * UPSC Previous Year Papers * SSC CGL * SSC CGL Syllabus * General Studies * English * Reasoning * Subjectwise Practice Papers * Previous Year Papers * Banking Exams * SBI Clerk * SBI Clerk Syllabus * General Awareness * English * Quantitative Aptitude * Reasoning Ability * SBI Clerk Practice Papers * SBI PO * SBI PO Syllabus * General Awareness * English * Quantitative Aptitude * Reasoning Ability * Previous Year Papers * SBI PO Practice Papers * IBPS PO * IBPS PO 2022 Syllabus * English Notes * Reasoning Notes * Previous Year Papers * Mock Question Papers * IBPS Clerk * IBPS Clerk Syllabus * English Notes * Previous Year Papers * Curated DSA Lists * Top 50 Array Problems * Top 50 String Problems * Top 50 Tree Problems * Top 50 Graph Problems * Top 50 DP Problems * Tutorials * DSA * Jobs * Apply for a Job * Apply through Jobathon * Post a Job * Hire through Jobathon * Practice * All DSA Problems * Problem of the Day * GFG SDE Sheet * Contests * GFG Weekly Coding Contest * Job-A-Thon: Hiring Challenge * BiWizard School Contest * All Contests and Events * GBlog * Puzzles * What's New ? Change Language * Data Structures and Algorithms * Interview Preparation * Data Science * Topic-wise Practice * C * C++ * Java * Python * Latest Blogs * Competitive Programming * JavaScript * Machine Learning * Write & Earn * Web Development * Puzzles * Projects ▲ Hello, What Do You Want To Learn? Search DSA- Live Classes System Design- Live Classes Complete Data Science Program For You Parse Nested User-Defined Functions using Spring Expression Language (SpEL) If we want to get the result of the function in java, convert(a,process(covertToInt(b),convertToInt(... Explore Practice Problems Solve DSA Problems. Filter based on topic tags and company tags. Get curated problem lists by GFG ex... Interview Preparation An interview-centric course designed to prepare you for the role of SDE for both product and service... GBlog 100 Days of Code - A Complete Guide For Beginners and Experienced Do you want to become a successful software developer and dreaming about getting into the big tech companies?Are you someone who is already working as a developer but look... Data Structures View All Array Linked List Stack Queue Algorithms View All Analysis of Algo Searching Algo Sorting Algo Graph Algo Courses View All 76k+ interested Geeks 4.9 Full Stack Development with React & Node JS - Live Intermediate and Advance 60k+ interested Geeks 5 JAVA Backend Development - Live Intermediate and Advance 99k+ interested Geeks Master Java Programming - Complete Beginner to Advanced Beginner to Advance 60k+ interested Geeks 5 OS DBMS CN for SDE Interview Preparation Beginner and Intermediate 1k+ interested Geeks DevOps - Live Beginner to Advance 63k+ interested Geeks 5 System Design - Live Intermediate and Advance Problem of the day Maximum Weight Node Solve one problem based on Data Structures and Algorithms every day and win exciting prizes. 02 07 34 Hours Minutes Seconds Solve Now Videos View All 02:41 How to Learn DSA/CP? The Most Optimal Way 19/01/2023 08:22 C Program to count number of lines in a file 18/01/2023 12:00 Role of Statistics in Data Science 17/01/2023 Articles All Python Java C++ C# C Language Algorithms Interview Experience Sorting Linked List Tree Graph School Programming Eisenhower Matrix | Task Prioritization Method to Increase Productivity Have you ever heard of any of these terms - Eisenhower Matrix, Eisenhower Decision Matrix, Eisenhower Box, or Urgent-Important Matrix? If not, no worries, in this article ...Read more GBlog How to Use Facebook Business Manager [2023 Updated] Are you struggling with the delegations of authority and information related to your business’s social media pages and ad accounts? Managing them right is a great struggle...Read more GBlog 7 Ways To Earn Money as an Ethical Hacker Ethical hacking, also known as "white hat" hacking, is the practice of using computer security skills for the purpose of testing and improving the security of a computer s...Read more GBlog Technical Scripter Picked Ethical Hacking Technical Scripter 2022 Samsung Research & Institute Interview Experience SDE Internship (On-Campus) On our Campus, SRIB started the hiring process in September 2022. The overall process consisted of two rounds:Coding RoundInterview RoundCoding Round: The coding consisted...Read more Samsung Interview Experiences Internship On-Campus Barclays Internship Interview Experience (On-campus) 2023 Barclays recently visited our campus ( Dr. D. Y. Patil Institute of Technology, Pimpri, Pune.) for the role of (Summer Intern 2023 ) for the batch 2024. The Duration of th...Read more Interview Experiences Barclays Internship On-Campus Harman International Interview Experience for Android Developer There I am sharing my interview experience with Harman International that I gave on 17/01/2023, I hope that would help you prepare for the same.Round 0: I got a call from ...Read more Interview Experiences Harman International What is TP, AP and MP? Explain with examples. Consumers and producers both play a crucial role in the efficient operation of an economy. A producer uses a variety of inputs to create commodities and services. Producti...Read more Picked Class 11 Microeconomics Crossword Puzzle Of The Week #2 (for Computer Science and Applications) In this issue of Crossword Puzzle of the week, we will dive into the topics of Computer Science and Applications. The solution to the crossword puzzle is provided at the e...Read more Puzzles Crossword Puzzle Crossword Of The Week CBSE Class 12 Accountancy Solved Question (Paper-67/2/1-2020) ACCOUNTANCYClass 12Time Allowed : 3 HoursMaximum Marks : 80Paper Code : 67/2/1(CBSE 2020)General Instructions :Read the following instructions very carefully and strictly ...Read more Class 12 Accountancy CBSE Class 12 Economics Solved Question Paper 2020 - Set 3 Economics (Code No. 58/3/1)Time allowed : 3 hoursMaximum Marks: 80General Instructions:Read the following instructions very carefully and strictly follow them :(i) This qu...Read more Class 12 Statistics for Economics Macroeconomics 10 Best tips to prepare for a Job Interview in 2023 You applied for your dream job, and your resume was chosen for further consideration. And now they've called you back for an interview, your success in the job interview i...Read more HR Find LCA for K queries in Complete Binary Tree Given an integer n. There is a complete binary tree with 2n - 1 nodes. The root of that tree is the node with the value 1, and every node with a value x has two children w...Read more Tree Technical Scripter Technical Scripter 2022 DSA Find the Number of Cliques in a Graph In graph theory, a clique is a subset of vertices of an undirected graph such that every two distinct vertices in the clique are adjacent, that is, they are connected by a...Read more Graph Technical Scripter Picked Technical Scripter 2022 DSA Top 5 Virtual Private Server(VPS) in Europe A VPS is short for a virtual private server. It is a robust hosting solution in which your website and its data are hosted on a virtual machine that no one else has access...Read more GBlog Best VPS for Forex Traders Foreign exchange refers to exchanging the currency of one country for another at prevailing exchange rates and speculating on currency prices whether one currency will ris...Read more GBlog Top 5 Virtual Private Server (VPS) for Windows A VPS is short for a virtual private server and is also known as a virtual server. It is a virtual machine that provides a dedicated environment for your apps and websites...Read more GBlog Top 5 Digital Ocean Alternatives 2023 DigitalOcean is a cloud computing platform and the fastest-growing web hosting service that puts the developer's needs front and center. It is a robust network of 12 data ...Read more GBlog Best 5 AWS Alternatives in 2023 Amazon Web Services (AWS) is the world's most comprehensive, evolving, and broadly adopted cloud platform, offering over 200 fully featured services from data centers glob...Read more GBlog AWS * < Prev * 1 * 2 * 3 * 4 * 5 * ••• * 9056 * Next > * 15 / page IMPROVE YOUR CODING SKILLS WITH PRACTICE Try It! A-143, 9th Floor, Sovereign Corporate Tower, Sector-136, Noida, Uttar Pradesh - 201305 feedback@geeksforgeeks.org * Company * About Us * Careers * In Media * Contact Us * Privacy Policy * Copyright Policy * Advertise with us * Learn * DSA * Algorithms * Data Structures * SDE Cheat Sheet * Machine learning * CS Subjects * Video Tutorials * Courses * News * Top News * Technology * Work & Career * Business * Finance * Lifestyle * Knowledge * Languages * Python * Java * CPP * Golang * C# * SQL * Kotlin * Web Development * Web Tutorials * Django Tutorial * HTML * JavaScript * Bootstrap * ReactJS * NodeJS * Contribute * Write an Article * Improve an Article * Pick Topics to Write * Write Interview Experience * Internships * Video Internship @geeksforgeeks , Some rights reserved 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 ! START YOUR CODING JOURNEY NOW! Login Register