Blog
Graphics
Algorithm
About
Category
algorithm
Detonate The Maximum Bombs
Posted 3 years ago
The task involves determining the maximum number of bombs that can be detonated by choosing to detonate only one bomb. Bomb triggers a chain reaction when detonated, potentially setting off more bombs within its range.
First Missing Positive
Posted 3 years ago
The problem requires finding the smallest positive integer that doesn't appear in an unsorted array
Binary Indexed Tree (Fenwick Tree)
Posted 3 years ago
A Fenwick tree or binary indexed tree (BIT) is a data structure that can efficiently update elements and calculate prefix sums in a table of numbers
Collection of bit mask operation
Posted 3 years ago
I have collected a few popular and useful bit operations
Modular Inverse
Posted 3 years ago
In arithmetic, a modular multiplicative inverse of an integer a is an integer x such that the product a*x = 1 with respect to the modulus m
1
...
4
5
6
...
8