(Translated by
https://www.hiragana.jp/
)
Zoho Archives - GeeksforGeeks
Skip to content
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
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 Conditional Statements
Python Loops
Python Functions
Python OOPS Concept
Python Data Structures
Python DSA
Linked List
Stack
Queue
Tree
Heap
Hashing
Graph
Sets
Map
Advance Data Structure
Sorting Algorithms
Searching Algorithms
Python Exception Handling
Python File Handling
Python Exercises
Python List Exercise
Python String Exercise
Python Tuple Exercise
Python Dictionary Exercise
Python Set Exercise
Python Design Patterns
Python Programming Examples
Python Practice Questions
Java
Java Programming Language
Java Tutorial
Data Types
Variables
Operators
Flow Control in Java
Loops in Java
Methods
Strings
Arrays
OOPs Concepts
OOPs Concepts
Classes and Objects
Access Modifiers
Inheritance
Abstraction
Encapsulation
Polymorphism
Interface
Packages
Multithreading
File Handling
Regular Expression
Java Collections
Java Collections
Collection Class
List Interface
ArrayList
LinkedList Class
Queue Interface
Set Interface
HashSet Class
Map Interface
HashMap Class
HashTable Class
Iterator
Comparator
Collection Interview Questions
Java 8 Tutorial
Java Programs
Java Programming Examples
Java Array Programs
Java String Programs
Java Date-Time Programs
Java File Handling Programs
Java Collection Programs
Java JDBC Programs
Java Apache POI Programs
Java OpenCV 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
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
Case Studies in Designing Systems
Complete 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
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
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
Data Analysis with R
Deep Learning
NLP Tutorial
Web Tech
HTML Tutorial
CSS Tutorial
JavaScript Tutorial
PHP Tutorial
ReactJS Tutorial
NodeJS Tutorial
AngularJS Tutorial
Bootstrap Tutorial
Typescript
Web Development Using Python
Django
Django Tutorial
Django Projects
Django Interview Questions
Flask
Flask Tutorial
Flask Projects
Flask Interview Questions
Postman
Github
Wordpress Tutorial
Web Design
Cheat Sheets
HTML Cheat Sheet
CSS Cheat Sheet
JavaScript Cheat Sheet
React Cheat Sheet
Angular Cheat Sheet
jQuery Cheat Sheet
Bootstrap Cheat Sheet
Learn Complete Web Development
Trending Now
DSA
Web Tech
Foundational Courses
Data Science
Practice Problem
Python
Machine Learning
JavaScript
System Design
Django
DevOps Tutorial
Java
C
C++
ReactJS
NodeJS
CP Live
Aptitude
Puzzles
Projects
â–²
Similar Topics
DSA
22.3k+ articles
Experiences
16.6k+ articles
Interview Experiences
13.3k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Amazon
1.8k+ articles
Microsoft
790+ articles
Accolite
290+ articles
Morgan Stanley
210+ articles
Snapdeal
150+ articles
Zoho
210+ posts
Popular Articles
Recent Articles
Second Largest Element in an Array
Last Updated: 14 November 2024
Given an array of positive integers arr[] of size n, the task is to find second largest distinct element in the array.Note: If the second la
...read more
Arrays
Order-Statistics
Accolite
Zoho
Hike
SAP Labs
FactSet
DSA
Longest Palindromic Substring
Last Updated: 01 September 2024
Given a string str, the task is to find the longest substring which is a palindrome. If there are multiple answers, then return the first ap
...read more
Strings
Microsoft
Amazon
Groupon
Qualcomm
Samsung
Accolite
Zoho
MakeMyTrip
Visa
Dynamic Programming
strings
DSA
Subarray with Given Sum
Last Updated: 16 October 2024
Given a 1-based indexing array arr[] of integers and an integer sum. You mainly need to return the left and right indexes(1-based indexing)
...read more
Arrays
Amazon
Google
Morgan Stanley
Facebook
Zoho
Visa
FactSet
subarray
sliding-window
subarray-sum
DSA
Similar Topics
DSA
22.3k+ articles
Experiences
16.6k+ articles
Interview Experiences
13.3k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Amazon
1.8k+ articles
Microsoft
790+ articles
Accolite
290+ articles
Morgan Stanley
210+ articles
Snapdeal
150+ articles
0/1 Knapsack Problem
Last Updated: 05 August 2024
Prerequisites: Introduction to Knapsack Problem, its Types and How to solve themGiven N items where each item has some weight and profit ass
...read more
Snapdeal
Zoho
MakeMyTrip
Visa
Dynamic Programming
knapsack
DSA
Print a given matrix in spiral form
Last Updated: 01 November 2024
Given an m x n matrix, the task is to print all elements of the matrix in spiral form.Examples: Input:matrix = {{1, 2, 3, 4},
...read more
Arrays
Microsoft
Amazon
Morgan Stanley
Oracle
D-E-Shaw
Snapdeal
Paytm
Accolite
Zoho
Nagarro
MAQ Software
BrowserStack
MakeMyTrip
nearbuy
Matrix
Amazon-Question
Snapdeal-Question
spiral
pattern-printing
Arrays
DSA
Basic Coding Problems
Longest Increasing Subsequence (LIS)
Last Updated: 24 October 2024
Given an array arr[] of size N, the task is to find the length of the Longest Increasing Subsequence (LIS) i.e., the longest possible subseq
...read more
Amazon
Samsung
Zoho
Binary Search
Dynamic Programming
Searching
LIS
DSA
Find duplicates in O(n) time and O(n) extra space | Set 1
Last Updated: 14 October 2024
Given an array of n elements that contains elements from 0 to n-1, with any of these numbers appearing any number of times. Find these repea
...read more
Arrays
Amazon
Qualcomm
Paytm
Zoho
DSA
Merge two sorted linked lists
Last Updated: 17 August 2024
Given two sorted linked lists consisting of N and Mnodes respectively. The task is to merge both of the lists (in place) and return the head
...read more
Linked List
Microsoft
Amazon
Oracle
Flipkart
Samsung
Belzabar
Accolite
Zoho
MakeMyTrip
Synopsys
Brocade
FactSet
OATS Systems
Merge Sort
DSA
Reverse words in a string
Last Updated: 26 September 2024
Given a string str, the task is to reverse the order of the words in the given string. Notethatstrmay contain leading or trailing dots(.) or
...read more
Strings
Microsoft
Amazon
Adobe
Morgan Stanley
Goldman Sachs
Cisco
Paytm
Accolite
Payu
Zoho
MAQ Software
SAP Labs
MakeMyTrip
Reverse
Wipro
school-programming
CBSE - Class 11
DSA
Valid Parentheses in an Expression
Last Updated: 16 September 2024
Given an expression string s, write a program to examine whether the pairs and the orders of "{", "}", "(", ")", "[", "]" are correct in the
...read more
Strings
Amazon
Oracle
Walmart
Yatra.com
Snapdeal
Zoho
Hike
Stack
Wipro
Parentheses-Problems
DSA
Reverse a Linked List
Last Updated: 26 August 2024
Given a linked list, the task is to reverse the linked list by changing the links between nodes.Examples:Input: Linked List = 1 - 2 - 3 - 4
...read more
Linked List
Microsoft
Amazon
Adobe
Qualcomm
Samsung
Snapdeal
Accolite
Zoho
SAP Labs
MakeMyTrip
Reverse
DSA
Find Middle of the Linked List
Last Updated: 04 September 2024
Given a singly linked list, the task is to find the middle of the linked list. If the number of nodes are even, then there would be two midd
...read more
Linked List
Microsoft
Amazon
Adobe
Morgan Stanley
Flipkart
Qualcomm
Samsung
VMWare
Payu
Zoho
Hike
Nagarro
MAQ Software
GE
Veritas
Wipro
Python-DSA
DSA
Maximum Depth or Height of Binary Tree
Last Updated: 27 September 2024
Given a binary tree, the task is to find the maximum depth or height of the tree. The height of the tree is the number of vertices in the tr
...read more
Tree
Trees
Height of a Tree
Amazon
VMWare
Cadence India
Snapdeal
Zoho
MakeMyTrip
Synopsys
tree-traversal
Monotype Solutions
CouponDunia
FreeCharge
FactSet
Teradata
DSA
Maximum Subarray Sum - Kadane's Algorithm
Last Updated: 11 September 2024
Given an array arr[], the task is to find the subarray that has the maximum sum and return its sum.Examples:Input: arr[] = {2, 3, -8, 7, -1,
...read more
Arrays
Microsoft
Amazon
Morgan Stanley
Oracle
Flipkart
Samsung
D-E-Shaw
Walmart
VMWare
Snapdeal
Accolite
Payu
Zoho
Hike
MakeMyTrip
Visa
Housing.com
Ola Cabs
24*7 Innovation Labs
MetLife
FactSet
Teradata
Dynamic Programming
OYO
Amazon-Question
Visa-Question
subarray
subarray-sum
DSA
Pair with given Sum (Two Sum)
Last Updated: 22 October 2024
Given an array arr[] of n integers and a target value, the task is to find whether there is a pair of elements in the array whose sum is equ
...read more
Arrays
Microsoft
Amazon
Morgan Stanley
Flipkart
Accolite
Zoho
Hike
SAP Labs
CarWale
FactSet
Infosys
Backtracking
Hash
Amazon-Question
CarWale-Question
ABCO
Recursion
Wipro
DSA
2Sum
1
2
3
4
5
6
7
8
>>
Last
1
2
3
4
5
6
>>
Last
1
2
3
4
>>
Last
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 !