Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
21.3K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.2K+ articles
JavaScript
12.1K+ articles
School Learning
11.5K+ articles
Java
10.0K+ articles
Misc
8.5K+ articles
Python Programs
3.8K+ articles
python searching-exercises
5 posts
Recent Articles
Popular Articles
Binary Search (Recursive and Iterative) - Python
Last Updated: 21 February 2025
Binary SearchAlgorithmis asearching algorithmused in a sorted array byrepeatedly dividing the search interval in half. The idea of binary search is to use the information ...
read more
Python
python searching-exercises
Linear Search - Python
Last Updated: 07 April 2025
Given an array,arrof n elements, and an elementx, find whether elementxis present in the array. Return the index of the first occurrence ofxin the array, or -1 if it doesn...
read more
Python
Python Programs
python searching-exercises
Python Program for KMP Algorithm for Pattern Searching
Last Updated: 08 June 2022
Given a text txt[0..n-1] and a pattern pat[0..m-1], write a function search(char pat[], char txt[]) that prints all occurrences of pat[] in txt[]. You may assume that n m...
read more
Python
python searching-exercises
Python Program for Rabin-Karp Algorithm for Pattern Searching
Last Updated: 10 February 2023
Given a text txt[0..n-1] and a pattern pat[0..m-1], write a function search(char pat[], char txt[]) that prints all occurrences of pat[] in txt[]. You may assume that n m...
read more
Python
python searching-exercises
Python Program for Anagram Substring Search (Or Search for all permutations)
Last Updated: 07 July 2021
Given a text txt[0..n-1] and a pattern pat[0..m-1], write a function search(char pat[], char txt[]) that prints all occurrences of pat[] and its permutations (or anagrams)...
read more
Python
python searching-exercises
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 !