www.geeksforgeeks.org Open in urlscan Pro
2a02:26f0:3500:12::1730:17b3  Public Scan

URL: https://www.geeksforgeeks.org/
Submission: On September 23 via manual from IN — 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
     * LIVE
       * DSA Live Classes
       * System Design
       * Java Backend Development
       * Full Stack LIVE
       * Explore More
     * Self-Paced
       * DSA- Self Paced
       * SDE Theory
       * All Development Courses
       * Explore More
   * For Students
     * LIVE
       * Competitive Programming
       * GATE Live Course 2023
       * Data Science
       * Explore More
     * Self-Paced
       * DSA- Self Paced
       * CIP
       * JAVA / Python / C++
       * Explore More
   * School Courses
     * School Guide
     * Python Programming
     * Learn To Make Apps
     * Explore more
   * All Courses
 * Tutorials
   * 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
   * Data Structures
     * Arrays
     * Linked List
     * Stack
     * Queue
     * Binary Tree
     * Binary Search Tree
     * Heap
     * Hashing
     * Graph
     * Advanced Data Structure
     * Matrix
     * Strings
     * All Data Structures
   * 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
     * C#
     * HTML
     * JavaScript
     * PHP
     * SQL
     * Scala
     * Perl
     * Go Language
     * Kotlin
   * 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 Computer Science Notes
     * Last Minute Notes
     * GATE CS Solved Papers
     * GATE CS Original Papers and Official Keys
     * GATE 2021 Dates
     * GATE CS 2021 Syllabus
     * Important Topics for GATE CS
   * 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
       * NodeJS
     * JavaScript Libraries
       * jQuery
       * ReactJS
   * Software Designs
     * Software Design Patterns
     * System Design Tutorial
   * GFG Sheets
     * Web Dev Cheat Sheets
       * HTML Cheat Sheet
       * CSS Cheat Sheet
       * JS Cheat Sheet
       * jQuery 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
   * 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
   * 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
 * Jobs
   * Apply for Jobs
   * Post a Job
     * Hire with Us
     * Know about Jobathon
   * Jobathon
 * Practice
   * All DSA Problems
   * Problem of the Day
   * Interview Series: Weekly Contests
   * Bi-Wizard Coding: School Contests
   * Events
   * Practice 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

 * 
 * Write
   Come write articles for us and get featured
   
   Practice
   Learn and code with the best industry experts
   
   Premium
   Get access to ad-free content, doubt assistance and more!
   
   Jobs
   Come and find your dream job with us
    * Geeks Digest
    * Quizzes
    * Geeks Campus
   
    * Gblog Articles
    * IDE
    * Campus Mantri

 * 
 * Sign In


 * Sign In
 * Home
 * Saved Videos
 * Courses
 * * For Working Professionals
   * LIVE
     * DSA Live Classes
     * System Design
     * Java Backend Development
     * Full Stack LIVE
     * Explore More
   * Self-Paced
     * DSA- Self Paced
     * SDE Theory
     * All Development Courses
     * Explore More
   * For Students
   * LIVE
     * Competitive Programming
     * GATE Live Course 2023
     * Data Science
     * Explore More
   * Self-Paced
     * DSA- Self Paced
     * CIP
     * JAVA / Python / C++
     * Explore More
   * School Courses
     * School Guide
     * Python Programming
     * Learn To Make Apps
     * Explore more
   * 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
   * Data Structures
     * Arrays
     * Linked List
     * Stack
     * Queue
     * Binary Tree
     * Binary Search Tree
     * Heap
     * Hashing
     * Graph
     * Advanced Data Structure
     * Matrix
     * Strings
     * All Data Structures
   * 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
     * C#
     * HTML
     * JavaScript
     * PHP
     * SQL
     * Scala
     * Perl
     * Go Language
     * Kotlin
   * 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 Computer Science Notes
     * Last Minute Notes
     * GATE CS Solved Papers
     * GATE CS Original Papers and Official Keys
     * GATE 2021 Dates
     * GATE CS 2021 Syllabus
     * Important Topics for GATE CS
   * 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
     * NodeJS
   * JavaScript Libraries
     * jQuery
     * ReactJS
   * Software Designs
     * Software Design Patterns
     * System Design Tutorial
   * GFG Sheets
   * Web Dev Cheat Sheets
     * HTML Cheat Sheet
     * CSS Cheat Sheet
     * JS Cheat Sheet
     * jQuery 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
   * 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
   * 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
   * Post a Job
     * Hire with Us
     * Know about Jobathon
   * Curated DSA Lists
     * Top 50 Array Problems
     * Top 50 String Problems
     * Top 50 Tree Problems
     * Top 50 Graph Problems
     * Top 50 DP Problems
   * Tutorials
   * Jobs
     * Apply for Jobs
     * Jobathon
   * Practice
     * All DSA Problems
     * Problem of the Day
     * Interview Series: Weekly Contests
     * Bi-Wizard Coding: School Contests
     * Events
     * Practice SDE Sheet
 * GBlog
 * Puzzles
 * What's New ?

Change Language

 * Data Structures
 * Algorithms
 * Interview Preparation
 * Topic-wise Practice
 * C++
 * Java
 * Python
 * Competitive Programming
 * Machine Learning
 * JavaScript
 * SDE Sheet
 * Puzzles
 * GFG School
 * Projects

▲
Gblog Master the Coding Interview – Contest Series Based On Real Interviews
“The difference between ordinary and extraordinary is practice”, quoted by
Vladamir Horowitz. What he said was nothing sort of unique as achieving
perfection and success… Read More
What is GitHub Star Program?

GitHub supports open-source developers and contributors in building an
open-source community and providing free education for everyone. There are more
than 73 million developers who… Read More
GitHub
GBlog
Git
10 Best Free Website Hosting Services to Consider in 2022

In today’s time, finding a good web hosting platform to host your website or
build a business is no big deal. The market is full… Read More
GBlog-Web-Technologies
GBlog
Videos
Explore
8:06
C++ program to find the perimeter and area of triangle
22/09/2022
5:40
C++ Program to Return Maximum occurring Character in an Input String
22/09/2022
2:07
Delete Node Operation in Binary Search Tree (BST)
21/09/2022
3:33
Check if a given sequence of moves for a robot is circular or not
21/09/2022
7:41
Python program to find the smallest number in a list
21/09/2022
39:06
How to Get Bank Details from IFSC Code in Android?
21/09/2022
6:19
C++ Program to Sort Elements in Lexicographical Order (Dictionary Order)
21/09/2022
6:19
What is Language Modelling in NLP
21/09/2022
10:47
Python Program to Check a Number is Disarium Number
20/09/2022
14:41
Types of Network Devices in Computer Network
20/09/2022

Maximize X such that Array can be sorted by swapping elements X distance apart

Given an input arr[] of length N, Which contains integers from 1 to N in
unsorted order. You can apply only one type of operation… Read More
GCD-LCM
Arrays
Mathematical
Sorting
Maximize the value of (A[i]-A[j])*A[k] for any ordered triplet of indices i, j
and k

Given an array A consisting of N positive integers and for any ordered triplet(
i, j, k) such that i, j, and k are all… Read More
Arrays
Mathematical
Find set of size K such that any value of the set is co-prime with any Array
element

Given a set S of having numbers 1, 2, 3, . . ., N, and an integer K, the task is
to form a set… Read More
Prime Number
sieve
Arrays
Mathematical
Rearrange Array such that sum of adjacent sum divided by K is minimum

Given an integer array arr[] of length N and an integer K, the task is to
rearrange the elements of arr[] in such a way… Read More
Arrays
Arrays
Mathematical
Construct a sorted Array such that setbit in bitwise XOR of any pair is even

Given an integer N(1 ≤ N ≤ 500), Construct an integer arr[] of length N, such
that it should follow all the given conditions below: … Read More
Bitwise-XOR
Sequence and Series
Arrays
Mathematical
Alone in Couple

In a party of N people, each person is denoted by an integer. Couples are
represented by the same number. Find out the only single… Read More
Bitwise-XOR
Picked
Arrays
Bit Magic
Find Strings formed by replacing prefixes of given String with given characters

Given a String ( S ) of length N and with that String, we need to print a
triangle out of it. The triangle should… Read More
Picked
prefix
Strings
Quick Links
 * Events at GeeksforGeeks
 * Courses at GeeksforGeeks
 * Write an Article
 * Java Tutorial
 * Python Tutorial
 * Data Structures Tutorial
 * Coding Practice

Citrix Interview Experience for Internship (On-Campus) 2021

Difficulty Level: Easy-Medium Date – 20/09/2021 Round 1 – 45 mins: Introduction
       Discussion about projects        Create a class of… Read More
Citrix
On-Campus
Internship
Interview Experiences
PWC Interview Experience for Technical Consultant

PWC India came to our campus for a technical consultant role. All departments
were eligible to apply. Around 500+ people applied for the role. Round… Read
More
Pwc
Interview Experiences
Axis-Freecharge Interview Experience for Front-End developer 2022

(Only CS/IT was allowed) Round 1: Resume shortlisting. Round 2: I was asked to
find the count of words in a sentence and it was… Read More
Axis Bank
FreeCharge
Interview Experiences
Vymo Interview Experience for MTS (On-Campus)

Online test: Difficulty level: moderate. There were 3 coding questions given. I
remember only 1. Given two integers n and d. Find the number of… Read More
Interview Experiences
Polestar Solutions Interview Experience

Polestar Solutions will visit your campus for Placements. Registration will be
done through the Vega_HR platform. There’ll be 4 rounds: Round 1: Aptitude and
Technical… Read More
Interview Tips
Interview Experiences
Amazon WOW Interview Experience
Basic
I applied for the role of SDE Intern (6 Months) through Amazon WOW drive 2022.
There were a total of 3 rounds (1 OA +… Read More
Amazon
Amazon-WoW
Internship
Interview Experiences
Zeus Learning Interview Experience for SDE (On Campus) 2022
Medium
Hello everyone, Zeus-Learning visited our campus for on campus placements for
the role of Software Developer. The interview process is as follows: Round 1:
The… Read More
On-Campus
Zeus Learning
Interview Experiences
Page 1 of 8,52112345...102030...»Last »
What's New

Data Structures & Algorithms- Self Paced Course

View Details
Complete Interview Preparation- Self Paced Course

View Details
Practice Problems, POTD Streak, Weekly Contests & More!

View Details


Quick Links
 * Events at GeeksforGeeks
 * Courses at GeeksforGeeks
 * Write an Article
 * Java Tutorial
 * Python Tutorial
 * Data Structures Tutorial
 * Coding Practice

Featured Articles
View All
 * SDE SHEET – A Complete Guide for SDE Preparation
   
   August 18, 2022

 * 100 Days of Code – A Complete Guide For Beginners and Experienced
   
   August 6, 2022

 * Must Do Coding Questions for Product Based Companies
   
   July 29, 2022

 * Get Hired With GeeksforGeeks – GFG Job Portal
   
   July 28, 2022

 * Learn with GeeksforGeeks Course – Best Courses To Land Job In Your Dream
   Company
   
   July 28, 2022

Recommended
 * Guest Blogs
 * Must Do Coding Questions Company-wise
 * Practice for cracking any coding interview
 * Placements
 * Complete Interview Preparation With Doubt Assistance
 * GATE Computer Science Notes
 * Machine Learning
 * Django Tutorial
 * Computer Science Projects
 * Amazon SDE Test Series
 * Company Interview Corner
 * The C++ Standard Template Library (STL)
 * Software Design Patterns
 * SQL Tutorial
 * Advanced Data Structures


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

 * Learn
 * 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