Fastrail08

Fastrail08's Pastebin

1,875 42,571 0 4 years ago
Name / Title Added Expires Hits Comments Syntax  
Largest Divisible Subset PRINT VERSION (TOPOLOGICAL SORT) Sep 12th, 2025 Never 290 0 C++ -
Longest Path in DAG: TOPOLOGICAL SORT - IMPORTANT Sep 6th, 2025 Never 284 0 C++ -
LC 1462. Course Schedule (ACTUAL PREREQUSITES IN TOPO ARRAY) V.IMPORTANT Sep 1st, 2025 Never 300 4 C++ -
LC 827 Making a Large Island (DSU) Aug 31st, 2025 Never 304 0 C++ -
Number of Islands (DSU Approach) Aug 31st, 2025 Never 276 0 C++ -
Accounts Merge (DSU) (Initial Approach & Hashmap Optimised approach) Aug 28th, 2025 Never 197 0 C++ -
Bellman Ford Algorithm Aug 24th, 2025 Never 146 0 C++ -
Minimum Multiplications to reach End Aug 24th, 2025 Never 173 0 C++ -
Shortest path in directed graphs Aug 24th, 2025 Never 218 0 C++ -
Alien Dictionary (IMPORTANT) Aug 18th, 2025 Never 206 0 C++ -
Leetcode 802. Eventual Safe Nodes (IMPORTANT Kahn's Algorithm Insight) Aug 18th, 2025 Never 227 0 C++ -
DFS Aug 4th, 2025 Never 694 0 C++ -
BFS Aug 4th, 2025 Never 651 0 C++ -
Projects CSES Jun 22nd, 2025 Never 1,079 0 C++ -
Removing Digits May 26th, 2025 Never 393 0 C++ -
(V. IMPORTANT, CREATE SUBARRAYS WITH RECURSION)Arithmetic Slices 1(subarrays) Oct 2nd, 2025 Never 152 0 C++ -
LC: 1547 Minimum Cost To Cut Stick Sep 13th, 2025 Never 209 0 C++ -
Optimal BST (V.V.V IMPORTANT) Sep 13th, 2025 Never 250 0 C++ -
Digit DP intuitive approach - QUESTION (numbers of length N and value < k) Aug 17th, 2025 Never 207 0 C++ -
(V.IMPORTANT) 2 types of interval DPs(MCM vs BB) Jul 27th, 2025 Never 59 0 None -
Longest Divisible Subset(length) O(N^2) time and O(N) space COMMENTS NEED UPDATION Jul 27th, 2025 Never 390 0 C++ -
435. Non Overlapping Intervals(IMPORTANT DEDUCTION) Jul 27th, 2025 Never 1,026 4 C++ -
GFG Job Sequencing Problem. O(N^2) space and time problem | OPTIMISATION POSSIBLE?? Jul 21st, 2025 Never 457 0 C++ -
(Leetcode 300) LIS (V.IMPORTANT) INITIAL ANALYSIS FOR JUMP DP STATE REDUCTION WITH LOOP & BS Jul 20th, 2025 Never 669 0 C++ -
Leetcode 403 Frog Jump(Optimised Approaches + Analysis & Triggers for EXC & INC DP VS JUMP DP) Jul 20th, 2025 Never 543 4 C++ -
House Robber 2 (Leetcode 198) SPACE OPTIMIZED VERSION(VERY IMPORTANT) Jul 19th, 2025 Never 99 0 C++ -
House Robber 2 (Leetcode 198) Space Unoptimised Version Jul 19th, 2025 Never 1,289 0 C++ -
Burst Balloons(V. IMPORTANT) Jul 13th, 2025 Never 342 0 C++ -
Burst Balloons (INITIAL APPROACH) Jul 13th, 2025 Never 227 0 C++ -
Partition Equal Subset Sum Leetcode 416 Jul 8th, 2025 Never 271 0 C++ -
Catalan numbers Jul 7th, 2025 Never 681 0 C++ -
Perfect Squares Leetcode 279 Jul 7th, 2025 Never 574 0 C++ -
K equal partition (BITMASK) (IMPORTANT) Jul 3rd, 2025 Never 252 0 C++ -
Count the ways of friends pairing Jun 30th, 2025 Never 1,168 0 C++ -
Number of ways to partition into k subsets(IMPORANTANT) Jun 30th, 2025 Never 1,053 0 C++ -
Count of AiBjCk Subsequences(IMPORTANT) Jun 29th, 2025 Never 739 0 C++ -
Best Time to Buy & Sell Stocks with atmost 2 transactions Jun 21st, 2025 Never 1,582 7 C++ -
Best Time to Buy & Sell Stocks with Cooldown Jun 20th, 2025 Never 1,002 0 C++ -
Best Time to Buy & Sell Stocks with Transaction Fee Jun 18th, 2025 Never 1,198 7 C++ -
Best Time to Buy & Sell Stocks 2 - Infinite Transactions Jun 18th, 2025 Never 1,222 6 C++ -
Best Time to Buy & Sell Stock - 1 Transaction Jun 18th, 2025 Never 961 0 C++ -
Maximum sum Non Adjacent Element Jun 17th, 2025 Never 1,384 0 C++ -
Minimum Falling Path Sum Jun 16th, 2025 Never 166 0 C++ -
Combinations Sum 3 Leetcode Jun 15th, 2025 Never 218 0 C++ -
Count Encodings Jun 12th, 2025 Never 930 0 C++ -
Arrange Buildings Jun 4th, 2025 Never 247 0 C++ -
Path with Maximum Gold (Goldmine) Jun 4th, 2025 Never 217 0 C++ -
Tiling Problem M * N Board with M * 1 tile May 31st, 2025 Never 237 0 C++ -
Tiling With Dominoes 2 * N May 31st, 2025 Never 199 0 C++ -
Painting Fence 448C Codeforces May 29th, 2025 Never 750 0 C++ -
LIS Memo (Intuitive memo(index, msf)) May 28th, 2025 Never 1,085 0 C++ -
ChatGPT LIS Discussion May 27th, 2025 Never 148 0 C++ -
Minimum Cost of Tickets May 25th, 2025 Never 290 0 C++ -
Minimum Moves to climb stairs May 22nd, 2025 Never 363 9 C++ -
Count Binary Strings May 22nd, 2025 Never 288 4 C++ -
Coin Change Permutations May 20th, 2025 Never 439 0 C++ -
Climbing Stairs Variable Jumps May 19th, 2025 Never 738 0 C++ -
01Knapsack May 19th, 2025 Never 710 0 C++ -
Climbing Stairs May 19th, 2025 Never 668 0 C++ -
Count Encodings Jun 4th, 2025 Never 242 0 C++ -
Knight Tour Problem Jun 3rd, 2025 Never 308 0 C++ -
N Queens Jun 3rd, 2025 Never 312 0 C++ -
Combinations (n C r) Jun 2nd, 2025 Never 872 0 C++ -
Permutations (n P r) Jun 2nd, 2025 Never 784 0 C++ -
Air Cownditioning 2 USACO May 25th, 2025 Never 299 0 C++ -
Maximum number after atmost k swaps May 11th, 2025 Never 333 5 C++ -
Minimum Subset Difference May 11th, 2025 Never 322 0 C++ -
Word Break May 10th, 2025 Never 406 0 C++ -
Word Pattern Matching May 10th, 2025 Never 391 0 C++ -
Equal Sum K partition May 10th, 2025 Never 390 0 C++ -
Palindrome Partitioning May 6th, 2025 Never 371 0 C++ -
Partition in K subsets May 4th, 2025 Never 331 0 C++ -
Friends Pairing May 2nd, 2025 Never 363 0 C++ -
Problems Links May 2nd, 2025 Never 175 0 None -
Cryptarithmetic Puzzle May 2nd, 2025 Never 383 0 C++ -
SolveSudoko May 2nd, 2025 Never 456 0 C++ -
Gold Mine 2 Apr 27th, 2025 Never 530 0 C++ -
Lexicographic Numbers Apr 27th, 2025 Never 403 0 C++ -
Maximum Score of Words Apr 23rd, 2025 Never 475 0 C++ -
Sequential Digits Aug 21st, 2022 Never 452 0 C++ -
Matrix cells in distance order Aug 21st, 2022 Never 182 0 C++ -
First Bad Version Aug 18th, 2022 Never 222 0 Java -
Transition point Aug 18th, 2022 Never 228 0 C++ -
Facing Sun Aug 18th, 2022 Never 180 0 C++ -
Count zero XOR pairs Aug 16th, 2022 Never 210 0 C++ -
Counting Elements in two arrays Aug 16th, 2022 Never 229 0 C++ -
Count zeroes in sorted matrix Aug 16th, 2022 Never 228 0 C++ -
Count the triplets Aug 16th, 2022 Never 198 0 C++ -
Capacity to ship packages within D days Aug 16th, 2022 Never 312 8 C++ -
Split array largest sum Aug 16th, 2022 Never 235 0 C++ -
Allocate minimum number of pages Aug 16th, 2022 Never 259 0 C++ -
Chocolate Distribution Aug 16th, 2022 Never 249 0 C++ -
Bits Trick May 27th, 2025 Never 139 0 None -