Blog

Insights, tutorials, and ideas...

All Posts

#Binary Search:
4 MIN READ

#Binary Search:

Binary SearchIntuition:Binary search is an efficient algorithm to find a target value within a sorted array. It works on the idea of repeatedly dividing the sea

Abhijeet Singh Rajput Profile Photo
Abhijeet Singh RajputAuthor
DAA PYQ
24 MIN READ

DAA PYQ

DAA PYQQ1 – 10 Marks1. (a) Order the functions 4n², n log₂n and 3ⁿ in decreasing order of growth.We are asked to compare three functions asymptotically and arra

Ashutosh Kumar
Ashutosh KumarAuthor
Tower of hanoi
1 MIN READ

Tower of hanoi

Tower of hanoi1. Problem ExplanationThe Tower of Hanoi is a classic recursive problem.You are given:Three pegs: A (source), B (auxiliary), C (destination)n disk

Divya Sachan
Divya SachanAuthor
Merge Sort
2 MIN READ

Merge Sort

Merge SortMerge Sort is a Divide and Conquer algorithm.Given an array a[1…N], merge sort works as follows:Divide the array into two equal halves.Recursively app

Ashutosh Kumar
Ashutosh KumarAuthor
Quick Sort
3 MIN READ

Quick Sort

Quick SortIt is a popular sorting method based on the divide-and-conquer approach. Unlike merge sort, where the division is always in the middle, in quicksort t

Abhijeet Singh Rajput Profile Photo
Abhijeet Singh RajputAuthor
HWI Practice
4 MIN READ

HWI Practice

HWI Practice1. Subarrays with Even Sum Starting with Odd NumberProblem: Find the number of subarrays with an even sum that start with an odd number.Approach: Pr

Abhijeet Singh Rajput Profile Photo
Abhijeet Singh RajputAuthor
Manacher's Algorithm
2 MIN READ

Manacher's Algorithm

Manacher's Algorithm (hard)Manacher’s Algorithm finds the longest palindromic substring in linear time by reusing previously computed palindrome information. In

Ashutosh Kumar
Ashutosh KumarAuthor
Apriori Algorithm
2 MIN READ

Apriori Algorithm

Apriori Algorithm in Machine LearningThe Apriori Algorithm is used for association rule learning on transactional databases. It identifies frequent itemsets and

Divya Sachan
Divya SachanAuthor