Fastrail08

Fastrail08's Pastebin

1,905 43,036 0 4 years ago
Name / Title Added Expires Hits Comments Syntax  
Largest Divisible Subset PRINT VERSION (TOPOLOGICAL SORT) Sep 12th, 2025 Never 302 0 C++ -
Longest Path in DAG: TOPOLOGICAL SORT - IMPORTANT Sep 6th, 2025 Never 289 0 C++ -
LC 1462. Course Schedule (ACTUAL PREREQUSITES IN TOPO ARRAY) V.IMPORTANT Sep 1st, 2025 Never 307 4 C++ -
LC 827 Making a Large Island (DSU) Aug 31st, 2025 Never 308 0 C++ -
Number of Islands (DSU Approach) Aug 31st, 2025 Never 282 0 C++ -
Accounts Merge (DSU) (Initial Approach & Hashmap Optimised approach) Aug 28th, 2025 Never 200 0 C++ -
Bellman Ford Algorithm Aug 24th, 2025 Never 150 0 C++ -
Minimum Multiplications to reach End Aug 24th, 2025 Never 177 0 C++ -
Shortest path in directed graphs Aug 24th, 2025 Never 224 0 C++ -
Alien Dictionary (IMPORTANT) Aug 18th, 2025 Never 210 0 C++ -
Leetcode 802. Eventual Safe Nodes (IMPORTANT Kahn's Algorithm Insight) Aug 18th, 2025 Never 229 0 C++ -
DFS Aug 4th, 2025 Never 697 0 C++ -
BFS Aug 4th, 2025 Never 654 0 C++ -
Projects CSES Jun 22nd, 2025 Never 1,085 0 C++ -
Removing Digits May 26th, 2025 Never 398 0 C++ -
(V. IMPORTANT, CREATE SUBARRAYS WITH RECURSION)Arithmetic Slices 1(subarrays) Oct 2nd, 2025 Never 155 0 C++ -
LC: 1547 Minimum Cost To Cut Stick Sep 13th, 2025 Never 215 0 C++ -
Optimal BST (V.V.V IMPORTANT) Sep 13th, 2025 Never 258 0 C++ -
Digit DP intuitive approach - QUESTION (numbers of length N and value < k) Aug 17th, 2025 Never 210 0 C++ -
(V.IMPORTANT) 2 types of interval DPs(MCM vs BB) Jul 27th, 2025 Never 63 0 None -
Longest Divisible Subset(length) O(N^2) time and O(N) space COMMENTS NEED UPDATION Jul 27th, 2025 Never 395 0 C++ -
435. Non Overlapping Intervals(IMPORTANT DEDUCTION) Jul 27th, 2025 Never 1,032 4 C++ -
GFG Job Sequencing Problem. O(N^2) space and time problem | OPTIMISATION POSSIBLE?? Jul 21st, 2025 Never 458 0 C++ -
(Leetcode 300) LIS (V.IMPORTANT) INITIAL ANALYSIS FOR JUMP DP STATE REDUCTION WITH LOOP & BS Jul 20th, 2025 Never 674 0 C++ -
Leetcode 403 Frog Jump(Optimised Approaches + Analysis & Triggers for EXC & INC DP VS JUMP DP) Jul 20th, 2025 Never 549 5 C++ -
House Robber 2 (Leetcode 198) SPACE OPTIMIZED VERSION(VERY IMPORTANT) Jul 19th, 2025 Never 102 0 C++ -
House Robber 2 (Leetcode 198) Space Unoptimised Version Jul 19th, 2025 Never 1,294 0 C++ -
Burst Balloons(V. IMPORTANT) Jul 13th, 2025 Never 344 0 C++ -
Burst Balloons (INITIAL APPROACH) Jul 13th, 2025 Never 231 0 C++ -
Partition Equal Subset Sum Leetcode 416 Jul 8th, 2025 Never 276 0 C++ -
Catalan numbers Jul 7th, 2025 Never 682 0 C++ -
Perfect Squares Leetcode 279 Jul 7th, 2025 Never 576 0 C++ -
K equal partition (BITMASK) (IMPORTANT) Jul 3rd, 2025 Never 259 0 C++ -
Count the ways of friends pairing Jun 30th, 2025 Never 1,174 0 C++ -
Number of ways to partition into k subsets(IMPORANTANT) Jun 30th, 2025 Never 1,070 0 C++ -
Count of AiBjCk Subsequences(IMPORTANT) Jun 29th, 2025 Never 746 0 C++ -
Best Time to Buy & Sell Stocks with atmost 2 transactions Jun 21st, 2025 Never 1,591 7 C++ -
Best Time to Buy & Sell Stocks with Cooldown Jun 20th, 2025 Never 1,008 0 C++ -
Best Time to Buy & Sell Stocks with Transaction Fee Jun 18th, 2025 Never 1,202 7 C++ -
Best Time to Buy & Sell Stocks 2 - Infinite Transactions Jun 18th, 2025 Never 1,231 7 C++ -
Best Time to Buy & Sell Stock - 1 Transaction Jun 18th, 2025 Never 971 0 C++ -
Maximum sum Non Adjacent Element Jun 17th, 2025 Never 1,396 0 C++ -
Minimum Falling Path Sum Jun 16th, 2025 Never 170 0 C++ -
Combinations Sum 3 Leetcode Jun 15th, 2025 Never 219 0 C++ -
Count Encodings Jun 12th, 2025 Never 936 0 C++ -
Arrange Buildings Jun 4th, 2025 Never 251 0 C++ -
Path with Maximum Gold (Goldmine) Jun 4th, 2025 Never 222 0 C++ -
Tiling Problem M * N Board with M * 1 tile May 31st, 2025 Never 241 0 C++ -
Tiling With Dominoes 2 * N May 31st, 2025 Never 204 0 C++ -
Painting Fence 448C Codeforces May 29th, 2025 Never 757 0 C++ -
LIS Memo (Intuitive memo(index, msf)) May 28th, 2025 Never 1,087 0 C++ -
ChatGPT LIS Discussion May 27th, 2025 Never 154 0 C++ -
Minimum Cost of Tickets May 25th, 2025 Never 295 0 C++ -
Minimum Moves to climb stairs May 22nd, 2025 Never 367 9 C++ -
Count Binary Strings May 22nd, 2025 Never 291 4 C++ -
Coin Change Permutations May 20th, 2025 Never 443 0 C++ -
Climbing Stairs Variable Jumps May 19th, 2025 Never 742 0 C++ -
01Knapsack May 19th, 2025 Never 714 0 C++ -
Climbing Stairs May 19th, 2025 Never 670 0 C++ -
Count Encodings Jun 4th, 2025 Never 248 0 C++ -
Knight Tour Problem Jun 3rd, 2025 Never 312 0 C++ -
N Queens Jun 3rd, 2025 Never 315 0 C++ -
Combinations (n C r) Jun 2nd, 2025 Never 878 0 C++ -
Permutations (n P r) Jun 2nd, 2025 Never 790 0 C++ -
Air Cownditioning 2 USACO May 25th, 2025 Never 301 0 C++ -
Maximum number after atmost k swaps May 11th, 2025 Never 335 5 C++ -
Minimum Subset Difference May 11th, 2025 Never 326 0 C++ -
Word Break May 10th, 2025 Never 410 0 C++ -
Word Pattern Matching May 10th, 2025 Never 393 0 C++ -
Equal Sum K partition May 10th, 2025 Never 395 0 C++ -
Palindrome Partitioning May 6th, 2025 Never 374 0 C++ -
Partition in K subsets May 4th, 2025 Never 335 0 C++ -
Friends Pairing May 2nd, 2025 Never 366 0 C++ -
Problems Links May 2nd, 2025 Never 179 0 None -
Cryptarithmetic Puzzle May 2nd, 2025 Never 388 0 C++ -
SolveSudoko May 2nd, 2025 Never 459 0 C++ -
Gold Mine 2 Apr 27th, 2025 Never 537 0 C++ -
Lexicographic Numbers Apr 27th, 2025 Never 407 0 C++ -
Maximum Score of Words Apr 23rd, 2025 Never 483 0 C++ -
Sequential Digits Aug 21st, 2022 Never 455 0 C++ -
Matrix cells in distance order Aug 21st, 2022 Never 187 0 C++ -
First Bad Version Aug 18th, 2022 Never 227 0 Java -
Transition point Aug 18th, 2022 Never 233 0 C++ -
Facing Sun Aug 18th, 2022 Never 184 0 C++ -
Count zero XOR pairs Aug 16th, 2022 Never 212 0 C++ -
Counting Elements in two arrays Aug 16th, 2022 Never 231 0 C++ -
Count zeroes in sorted matrix Aug 16th, 2022 Never 234 0 C++ -
Count the triplets Aug 16th, 2022 Never 200 0 C++ -
Capacity to ship packages within D days Aug 16th, 2022 Never 314 8 C++ -
Split array largest sum Aug 16th, 2022 Never 237 0 C++ -
Allocate minimum number of pages Aug 16th, 2022 Never 260 0 C++ -
Chocolate Distribution Aug 16th, 2022 Never 253 0 C++ -
Bits Trick May 27th, 2025 Never 142 0 None -