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 If Else
Python For Loops
Python While Loops
Python Breaks
Python Continue Statement
Python Pass Statement
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
Operators in Java
Arithmetic Operators
Unary Operators
Assignment Operators
Relational Operators
Logical Operators
Ternary Operators
Flow Control in Java
Flow Control
if Statement
if-else Statement
if-else-if Ladder
Continue Statement
Break Statement
Return Statement
Loops in Java
Loops
do-while Loop
For Loop
For-each Loop
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
Vector Class
Stack Class
LinkedList Class
Queue Interface
Set Interface
HashSet Class
TreeSet
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
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
Computer Science 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
Linux
Linux Tutorial
Linux Commands A-Z
Linux Commands Cheatsheet
25 Basic Linux Commands
File Mangement in Linux
File Permission Commands
chmod Command
chown Command
chgrp Command
unmask Command
Linux System Administration
Linux File System
Linux Shell Scripting
Linux Networking
Linux Firewall
Linux Interview Questions
Software Testing
Software Testing Tutorial
Software Testing Tutorial
What is Software Testing
Principles of Software Testing
Types of Software Testing
Levels of Software Testing
Automation Testing
Manual Testing
Testing Tools
Software Testing Tools
Defect Testing Tools
Cross-Browser Testing Tools
Integration Testing Tool
Unit Testing Tools
Mobile Testing Tools
GUI Testing Tool
Security Testing Tools
Penetration Testing Tools
Selenium
Selenium Tutorial
Selenium Basics
Selenium Python
Jira
Jira Tutorial
JIRA Installation
JIRA Login
JIRA Dashboard
Software Engineering
Software Engineering Tutorial
Software Development Life Cycle (SDLC)
Software Characteristics
Software Quality
Waterfall Model
Iterative Waterfall Model
Spiral Model
Prototyping Model
Incremental Process Model
Interview Questions
Software Testing Interview Questions
Automation Testing Interview Questions
Manual Testing Interview Questions
Software Engineering Interview Questions
Penetration Testing Interview Questions
API Testing Interview Questions
Postman
Postman Tutorial
Postman for API Development
Download and Install Postman
API Testing Using Postman
Generate HTML Report for Postman
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
Income Tax
Finance
Commerce Complete Guide
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
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
Web Development Using Python
Django
Getting started with Django
Create an App in Django
Views In Django
Django Templates
Django URL patterns
Django Admin Interface
Django Models
MySQL Databased with Django
Django CRUD
Django Forms
Django Static File
Projects for Beginners
Django Tutorial
Flask
Web Development Using Flask
Flask App Routing
URL building in Flask
Flask Templates
Templating With Jinja2 in Flask
Flask Model
Database with Flask SQL Alchemy
Authentication with Flask
WTForms in Flask
Static files in Flask
Python Flask Projects
Flask Interview Questions
Frontend Projects
Building a Survey Form using HTML and CSS
Food delivery system using HTML and CSS
ToDo webapp using Django
Building Blog CMS
Add Pagination in Django
Tailwind CSS with Django
Django with Reactjs
Postman
Github
JSON Tutorial
TypeScript Tutorial
Wordpress Tutorial
Web Design
Web Browsers
Google Chrome
Mozilla Firefox
Apple Safari
Microsoft Edge
Tor
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
File Formats
Courses
Coding for Everyone
DSA to Development
Machine Learning and Data Science
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
21.9k+ articles
Mathematical
7.7k+ articles
Arrays
6.3k+ articles
Strings
3.2k+ articles
Competitive Programming
2.2k+ articles
Greedy
2k+ articles
Algorithms
1.9k+ articles
Searching
1.7k+ articles
Matrix
1.2k+ articles
regular-expression
89 articles
DSA
>
Algorithms
>
Pattern Searching
Pattern Searching
600+ posts
Popular Articles
Recent Articles
Count numbers in given range which are symmetrical when rotated 180 degree clockwise
Last Updated: 17 February 2023
Given a range [L, R), the task is to count the numbers that remain unchanged when rotated 180 degrees clockwise.Examples:Input: L = 0, R =10
...read more
Pattern Searching
Mathematical
array-range-queries
DSA
Find the least common multiple (LCM) of given Strings
Last Updated: 22 February 2022
Given two strings str1 and str2 of lengths N and M respectively. The task is to find the least common multiple (LCM) of both the strings and
...read more
Strings
Pattern Searching
LCM
DSA
Find the Nth term of the series 1, 3, 7, 15, 31 . . .
Last Updated: 16 August 2022
Given a positive integer N, the task is to find Nth term of the series:1, 3, 7, 15, 31, .....Examples:Input: N = 5Output: 31Input: N = 1Outp
...read more
Pattern Searching
Mathematical
series
Algo Geek
Algo-Geek 2021
DSA
Similar Topics
DSA
21.9k+ articles
Mathematical
7.7k+ articles
Arrays
6.3k+ articles
Strings
3.2k+ articles
Competitive Programming
2.2k+ articles
Greedy
2k+ articles
Algorithms
1.9k+ articles
Searching
1.7k+ articles
Matrix
1.2k+ articles
regular-expression
89+ articles
Python Program To Check If A String Is Substring Of Another
Last Updated: 20 January 2022
Given two strings s1 and s2, find if s1 is a substring of s2. If yes, return the index of the first occurrence, else return -1.Examples :Â I
...read more
Strings
Pattern Searching
Python Programs
DSA
Minimize removal or insertions required to make two strings equal
Last Updated: 28 November 2023
Given two strings S and T, both of length N and S is an anagram of string T, the task is to convert string S to T by performing the followin
...read more
Strings
Dynamic Programming
Pattern Searching
subsequence
substring
DSA
Find the element at specified index in a Spiral Matrix
Last Updated: 26 April 2021
Given two integers i and j, the task is to print the i * j thmatrix elements that can be obtained by filling the matrix in the following spi
...read more
Greedy
Pattern Searching
Mathematical
Matrix
Technical Scripter
Technical Scripter 2020
DSA
Divide Matrix into K groups of adjacent cells having minimum difference between maximum and minimum sized groups
Last Updated: 29 December 2022
Given N rows and M columns of a matrix, the task is to fill the matrix cells using first K integers such that:Each group of cells is denoted
...read more
Pattern Searching
Mathematical
Matrix
School Programming
DSA
Check if all substrings of length K of a Binary String has equal count of 0s and 1s
Last Updated: 17 May 2021
Given a binary string S of length N and an even integer K, the task is to check if all substrings of length K contains an equal number of 0s
...read more
Strings
Greedy
Pattern Searching
Searching
frequency-counting
substring
DSA
Minimize difference between maximum and minimum of Array by at most K replacements
Last Updated: 12 May 2021
Given an array arr[] and an integer K, that task is to choose at most K elements of the array and replace it by any number. Find the minimum
...read more
Arrays
Algorithms
Greedy
Pattern Searching
Sorting
Mathematical
Competitive Programming
C++
Difference Between
C++ Programs
two-pointer-algorithm
DSA
First number to leave an odd remainder after repetitive division by 2
Last Updated: 26 November 2022
Given two integers A and B, the task is to print the integer among the two, which will be converted to an odd integer by a smaller number of
...read more
Bit Magic
setBitCount
Pattern Searching
Mathematical
Competitive Programming
divisibility
number-theory
DSA
Find pair with maximum GCD for integers in range 2 to N
Last Updated: 14 April 2023
Given a number N, the task is to find a pair of integers in the range [2, N] with maximum GCD.Examples:Input: N = 10Output: 5Explanation:Max
...read more
Arrays
Pattern Searching
Mathematical
GCD-LCM
factor
DSA
Count of available non-overlapping intervals to be inserted to make interval [0, R]
Last Updated: 10 September 2021
Given an integer R which signifies the range [0, R] and two arrays start[] and end[] of size N which signifies the starting and ending inter
...read more
Arrays
Misc
Pattern Searching
Sorting
Mathematical
DSA
Count strings that end with the given pattern
Last Updated: 29 November 2022
Given a pattern pat and a string array sArr[], the task is to count the number of strings from the array that ends with the given pattern.Ex
...read more
Arrays
Strings
Pattern Searching
DSA
Row-wise common elements in two diagonals of a square matrix
Last Updated: 19 July 2022
Given a square matrix, find out count of numbers that are same in same row and same in both primary and secondary diagonals.Examples :Input
...read more
Pattern Searching
Searching
Matrix
DSA
is_permutation() in C++ and its application for anagram search
Last Updated: 14 September 2023
is_permutations() is used to check if two containers like string and vector are permutation of each other. It accepts three parameters, the
...read more
Pattern Searching
STL
C++
cpp-algorithm-library
DSA
First
19
20
21
22
23
24
25
26
>>
Last
First
20
21
22
23
24
25
>>
Last
First
21
22
23
24
>>
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 !