let's start Code

E-maxx training part - 04

Minimum stack / Minimum queue Implementation  Sparse Table RMQSQ - Range Minimum Query   SOLUTION THRBL - Catapult that ball Matchsticks Sereja and D D. CGCDSSQ D. R2D2 and Droid Army B. Maximum of Maximums of Minimums TNVFC1M - Miraculous DCP-19: Multiplication Interval D. Animals and Puzzle E. Trains...
Share:

Sparse Table

Note: Sparse Table is a data structure, that allows answering range queries. It can answer most range queries in span class="MathJax" data-mathml="O(log⁡n)" id="MathJax-Element-1-Frame" role="presentation" style="position: relative;" tabindex="0">O(logn), but its true power is answering range minimum queries (or equivalent range maximum...
Share:

Github Link

RezwanArefin01 Shafaet  ACM-ICPC-Algorithms  ADJA/algos  USACO  Ashishgup1/Competitive-Coding  abeaumont/competitive-programming  keon/algorithms (But, codes in python)  GitHub Repositories With Competitive Programming Libraries  &nbs...
Share:

Chinese Remainder Theorem

Resources: Chinese Remainder Theorem  Chinese Remainder Theorem ( E-Maxx)   GeeksForGeeks  forthright48 - Coprime Moduli part1   forthnight48- Non Coprime Moduli part 2  Codeforces article Problems: Chinese Remainder Theorem (non-relatively prime moduli)  Cheese and Random Toppings    SOLUTION  1319...
Share:

Longest Common Subsequence ( LCS )

Resources: ডাইনামিক প্রোগ্রামিং: লংগেস্ট কমন সাবসিকোয়েন্স GeekGeeks  Practice Dynamic Programming! Educational DP Contest: F - LCS  Tushar Roy Video DP: Find elements of LCS ( Hackerrank Problem )   Code: This file contains hidden or bidirectional...
Share:

Number of single cycle components in an undirected graph (CF-977E)

E. Cyclic Components resource হিন্টঃ প্রতিটি কম্পোনেন্ট এ চেক করবো তাদের প্রত্যেকটি নোডের ডিগ্রি দুই কিনা, যদি দুই হয় তাইলে সেটা একটা সিঙ্গেল সাইকেল কম্পোনেন্ট। This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than...
Share:

E-maxx training part - 03

Modular Multiplicative Inverse UVa 11904 - One Unit Machine      SOLUTION Longest Increasing Subsequence Arrays  SOLUTION C. Beautiful Numbers  F. The Sum of the k-th Powers  A. Festival Organization  D. Nephren Runs a Cinema    Chinese Remainder Theorem Number of Sequences  E....
Share:

FACT0 - Integer Factorization (15 digits)

FACT0 - Integer Factorization (15 digits) টপিকঃ প্রাইম ফ্যাক্টর হিন্টঃ সিভ দিয়ে করলে টাইম লিমিট, নরমালি করতে হবে। প্রথমে x = ২ দিয়ে যতবার যায় ভাগ তারপর ৩ দিয়ে , এরপর ৫  দিয়ে... যখন x*x >N হয়ে যাবে তখন লুপটা ব্রেক হবে।  এরপর শেষে সংখ্যাটি ১ এর চেয়ে বড় থাকলে ওইটা একটা  প্রাইম নাম্বার হবে, আর প্রতিবার ভাগ করার সময় একটা কাউন্ট রাখবো...
Share:

প্রাইম জেনারেশন সিভ ও প্রাইম ফ্যাক্টরাইজেশন

Resources: প্রাইম জেনারেশন সিভ ও প্রাইম ফ্যাক্টরাইজেশন  Integer factorization  This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals...
Share:

1112 - Curious Robin Hood

1112 - Curious Robin Hood Topic: BIT This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about...
Share:

About

let's start CODE

Popular Posts