Skip to content
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
Commerce
Business Studies
Accountancy
Microeconomics
Statistics for Economics
Macroeconomics
Human Resource Management (HRM)
Management
Finance
Commerce Complete Guide
Aptitude
Aptitude Question and Answers
Quantitative Aptitude
Logical Reasoning
Verbal Ability
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
Top 100 DSA Interview Questions Topic-wise
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
JavaScript Projects
Learn Complete Web Development
Courses
Coding for Everyone
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
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.1k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Competitive Programming
2.2k+ articles
Greedy
2k+ articles
Algorithms
2k+ articles
Sorting
1.7k+ articles
Hash
1.2k+ articles
Binary Search
500+ articles
DSA
>
Algorithms
>
Searching
Searching
1.7k+ posts
Popular Articles
Recent Articles
Most frequent element in an array
Last Updated: 11 January 2023
Given an array, find the most frequent element in it. If there are multiple elements that appear a maximum number of times, print any one of
...read more
Misc
Searching
Sorting
Hash
DSA
Two Pointers Technique
Last Updated: 14 May 2024
Two pointers is really an easy and effective technique that is typically used for searching pairs in a sorted array.Given a sorted array A (
...read more
Arrays
Searching
Technical Scripter
two-pointer-algorithm
DSA
Introduction to Linear Search Algorithm
Last Updated: 06 June 2024
Linear Search Algorithm is defined as a sequential search algorithm that starts at one end and goes through each element of a list until the
...read more
Arrays
Searching
school-programming
CBSE - Class 11
DSA
Similar Topics
DSA
22.1k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Competitive Programming
2.2k+ articles
Greedy
2k+ articles
Algorithms
2k+ articles
Sorting
1.7k+ articles
Hash
1.2k+ articles
Binary Search
500+ articles
K’th Smallest/Largest Element in Unsorted Array
Last Updated: 31 May 2024
Given an array arr[] of size N and a number K, where K is smaller than the size of the array. Find the K'th smallest element in the given ar
...read more
Arrays
Order-Statistics
Microsoft
Amazon
Cisco
VMWare
Snapdeal
Accolite
SAP Labs
Rockstand
Searching
Heap
ABCO
DSA
Program to find largest element in an Array
Last Updated: 13 September 2023
Given an array arr[] of size N, the task is to find the largest element in the given array.Examples:Input: arr[] = {10, 20, 4}Output: 20Expl
...read more
Arrays
Order-Statistics
Searching
Matrix
DSA
Basic Coding Problems
Binary Search Algorithm - Iterative and Recursive Implementation
Last Updated: 06 May 2024
Binary Search Algorithm is a searching algorithm used in a sorted array by repeatedly dividing the search interval in half. The idea of bina
...read more
Oracle
Qualcomm
SAP Labs
Binary Search
Infosys
Divide and Conquer
Searching
TCS
Wipro
Accenture
DSA
DSA Tutorials
Given Array of size n and a number k, find all elements that appear more than n/k times
Last Updated: 18 April 2023
Given an array of size n and an integer k, find all elements in the array that appear more than n/k times.Examples:Input: arr[] = {3, 1, 2,
...read more
Arrays
Searching
DSA
Find a peak element which is not smaller than its neighbours
Last Updated: 31 May 2024
Given an array arr of n elements that is first strictly increasing and then maybe strictly decreasing, find the maximum element in the array
...read more
Arrays
Amazon
Adobe
Visa
Divide and Conquer
Searching
DSA
Median of two Sorted Arrays of Different Sizes
Last Updated: 02 May 2024
Given two sorted arrays, a[] and b[], the task is to find the median of these sorted arrays, where N is the number of elements in the first
...read more
Binary Search
Divide and Conquer
Searching
statistical-algorithms
median-finding
DSA
Longest Increasing Subsequence (LIS)
Last Updated: 11 June 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
Count number of occurrences (or frequency) in a sorted array
Last Updated: 06 May 2024
Given a sorted array arr[] of size N and a number X, you need to find the number of occurrences of X in given array.Note: Expected time comp
...read more
Arrays
Amazon
MakeMyTrip
Divide and Conquer
Searching
DSA
Print K largest(or smallest) elements in an array
Last Updated: 29 April 2024
Given an array arr[] of size N, the task is to printing K largest elements in an array. Note: Elements in output array can be in any orderEx
...read more
Arrays
Order-Statistics
Microsoft
Amazon
Samsung
Walmart
Searching
Sorting
Heap
DSA
Maximum and minimum of an array using minimum number of comparisons
Last Updated: 23 May 2024
Given an array of size N. The task is to find the maximum and the minimum element of the array using the minimum number of comparisons.Examp
...read more
Arrays
Divide and Conquer
Searching
Arrays
Numbers
DSA
Search an element in a sorted and rotated Array
Last Updated: 14 June 2024
Given a sorted and rotated array arr[] of size N and a key, the task is to find the key in the array.Note: Find the element in O(logN) time
...read more
Arrays
Microsoft
Amazon
Adobe
Flipkart
Samsung
D-E-Shaw
Snapdeal
Paytm
Hike
BankBazaar
SAP Labs
MakeMyTrip
Binary Search
FactSet
Searching
Times Internet
rotation
DSA
Find the Missing Number
Last Updated: 19 June 2024
Given an array arr[] of size N-1 with integers in the range of [1, N], the task is to find the missing number from the first N integers.Note
...read more
Arrays
Microsoft
Amazon
Morgan Stanley
Qualcomm
Samsung
Cisco
Accolite
Payu
Visa
Ola Cabs
Searching
Bitwise-XOR
limited-range-elements
DSA
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 !