├── .github └── workflows │ └── deploy.yml ├── .gitignore ├── .vscode └── settings.json ├── Additional Problems I ├── Advertisement.cpp ├── Bit Inversions.cpp ├── Bubble Sort Rounds I.cpp ├── Cyclic Array.cpp ├── Distinct Values Splits.cpp ├── Distinct Values Sum.cpp ├── Maximum Building I.cpp ├── Multiplication Table.cpp ├── Shortest Subsequence.cpp ├── Special Substrings.cpp ├── Swap Game.cpp └── Writing Numbers.cpp ├── Additional Problems II ├── Bit Substrings.cpp ├── Bouncing Ball Steps.cpp ├── Coding Company.cpp ├── Grid Puzzle I.cpp ├── Grid Puzzle II.cpp ├── Mex Grid Queries.cpp ├── Reversal Sorting.cpp ├── School Excursion.cpp └── Stick Divisions.cpp ├── Advanced Graph Problems ├── Acyclic Graph Edges.cpp ├── Critical Cities.cpp ├── Forbidden Cities.cpp ├── Graph Girth.cpp ├── MST Edge Check.cpp ├── MST Edge Cost.cpp ├── Nearest Shops.cpp ├── Network Breakdown.cpp ├── Network Renovation.cpp ├── Prüfer Code.cpp ├── Strongly Connected Edges.cpp ├── Tree Isomorphism I.cpp ├── Tree Isomorphism II.cpp ├── Tree Traversals.cpp └── Visiting Cities.cpp ├── Advanced Techniques ├── Apples and Bananas.cpp ├── Corner Subgrid Count.cpp ├── Cut and Paste.cpp ├── Distinct Routes II.cpp ├── Dynamic Connectivity.cpp ├── Hamming Distance.cpp ├── Knuth Division.cpp ├── Meet in the Middle.cpp ├── Monster Game I.cpp ├── Monster Game II.cpp ├── Necessary Cities.cpp ├── Necessary Roads.cpp ├── New Roads Queries.cpp ├── One Bit Positions.cpp ├── Parcel Delivery.cpp ├── Reachability Queries.cpp ├── Reachable Nodes.cpp ├── Reversals and Sums.cpp ├── Signal Processing.cpp ├── Subarray Squares.cpp ├── Substring Reversals.cpp └── Task Assignment.cpp ├── Bitwise Operations ├── Counting Bits.cpp ├── Maximum Xor Subarray.cpp ├── Maximum Xor Subset.cpp ├── Number of Subset Xors.cpp ├── SOS Bit Problem.cpp └── Xor Pyramid Peak.cpp ├── Construction Problems ├── Chess Tournament.cpp ├── Inverse Inversions.cpp ├── Monotone Subsequences.cpp ├── Permutation Prime Sums.cpp └── Third Permutation.cpp ├── Counting Problems ├── Counting Permutations.cpp ├── Counting Sequences.cpp ├── Filled Subgrid Count I.cpp ├── Filled Subgrid Count II.cpp └── Grid Paths II.cpp ├── Dynamic Programming ├── Array Description.cpp ├── Book Shop.cpp ├── Coin Combinations I.cpp ├── Coin Combinations II.cpp ├── Counting Numbers.cpp ├── Counting Tilings.cpp ├── Counting Towers.cpp ├── Dice Combinations.cpp ├── Edit Distance.cpp ├── Elevator Rides.cpp ├── Grid Paths I.cpp ├── Increasing Subsequence II.cpp ├── Increasing Subsequence.cpp ├── Longest Common Subsequence.cpp ├── Minimal Grid Path.cpp ├── Minimizing Coins.cpp ├── Money Sums.cpp ├── Projects.cpp ├── Rectangle Cutting.cpp ├── Removal Game.cpp ├── Removing Digits.cpp └── Two Sets II.cpp ├── Geometry ├── All Manhattan Distances.cpp ├── Area of Rectangles.cpp ├── Convex Hull.cpp ├── Intersection Points.cpp ├── Line Segment Intersection.cpp ├── Maximum Manhattan Distances.cpp ├── Minimum Euclidean Distance.cpp ├── Point Location Test.cpp ├── Point in Polygon.cpp ├── Polygon Area.cpp └── Polygon Lattice Points.cpp ├── Graph Algorithms ├── Building Roads.cpp ├── Building Teams.cpp ├── Coin Collector.cpp ├── Counting Rooms.cpp ├── Course Schedule.cpp ├── Cycle Finding.cpp ├── De Bruijn Sequence.cpp ├── Distinct Routes.cpp ├── Download Speed.cpp ├── Flight Discount.cpp ├── Flight Routes Check.cpp ├── Flight Routes.cpp ├── Game Routes.cpp ├── Giant Pizza.cpp ├── Hamiltonian Flights.cpp ├── High Score.cpp ├── Investigation.cpp ├── Knight's Tour.cpp ├── Labyrinth.cpp ├── Longest Flight Route.cpp ├── Mail Delivery.cpp ├── Message Route.cpp ├── Monsters.cpp ├── Planets Cycles.cpp ├── Planets Queries I.cpp ├── Planets and Kingdoms.cpp ├── Police Chase.cpp ├── Road Construction.cpp ├── Road Reparation.cpp ├── Round Trip II.cpp ├── Round Trip.cpp ├── School Dance.cpp ├── Shortest Routes I.cpp ├── Shortest Routes II.cpp └── Teleporters Path.cpp ├── Interactive Problems ├── Hidden Integer.cpp ├── Hidden Permutation.cpp └── K th Highest Score.cpp ├── Introductory Problems ├── Apple Division.cpp ├── Bit Strings.cpp ├── Chessboard and Queens.cpp ├── Coin Piles.cpp ├── Creating Strings.cpp ├── Digit Queries.cpp ├── Gray Code.cpp ├── Grid Coloring I.cpp ├── Grid Path Description.cpp ├── Increasing Array.cpp ├── Knight Moves Grid.cpp ├── Mex Grid Construction.cpp ├── Missing Number.cpp ├── Number Spiral.cpp ├── Palindrome Reorder.cpp ├── Permutations.cpp ├── Raab Game I.cpp ├── Repetitions.cpp ├── String Reorder.cpp ├── Tower of Hanoi.cpp ├── Trailing Zeros.cpp ├── Two Knights.cpp ├── Two Sets.cpp └── Weird Algorithm.cpp ├── Mathematics ├── Another Game.cpp ├── Binomial Coefficients.cpp ├── Bracket Sequences I.cpp ├── Bracket Sequences II.cpp ├── Candy Lottery.cpp ├── Christmas Party.cpp ├── Common Divisors.cpp ├── Counting Coprime Pairs.cpp ├── Counting Divisors.cpp ├── Counting Grids.cpp ├── Counting Necklaces.cpp ├── Creating Strings II.cpp ├── Dice Probability.cpp ├── Distributing Apples.cpp ├── Divisor Analysis.cpp ├── Exponentiation II.cpp ├── Exponentiation.cpp ├── Fibonacci Numbers.cpp ├── Graph Paths I.cpp ├── Graph Paths II.cpp ├── Grundy's Game.cpp ├── Josephus Queries.cpp ├── Next Prime.cpp ├── Nim Game I.cpp ├── Nim Game II.cpp ├── Prime Multiples.cpp ├── Stair Game.cpp ├── Stick Game.cpp ├── Sum of Divisors.cpp └── Throwing Dice.cpp ├── README.md ├── Range Queries ├── Distinct Values Queries II.cpp ├── Distinct Values Queries.cpp ├── Dynamic Range Minimum Queries.cpp ├── Dynamic Range Sum Queries.cpp ├── Forest Queries II.cpp ├── Forest Queries.cpp ├── Hotel Queries.cpp ├── Increasing Array Queries.cpp ├── List Removals.cpp ├── Missing Coin Sum Queries.cpp ├── Movie Festival Queries.cpp ├── Pizzeria Queries.cpp ├── Polynomial Queries.cpp ├── Prefix Sum Queries.cpp ├── Range Interval Queries.cpp ├── Range Queries and Copies.cpp ├── Range Update Queries.cpp ├── Range Updates and Sums.cpp ├── Range Xor Queries.cpp ├── Salary Queries.cpp ├── Static Range Minimum Queries.cpp ├── Static Range Sum Queries.cpp ├── Subarray Sum Queries II.cpp ├── Subarray Sum Queries.cpp └── Visible Buildings Queries.cpp ├── Sliding Window Problems ├── Sliding Window Cost.cpp ├── Sliding Window Distinct Values.cpp ├── Sliding Window Inversions.cpp ├── Sliding Window Median.cpp ├── Sliding Window Mex.cpp ├── Sliding Window Minimum.cpp ├── Sliding Window Mode.cpp ├── Sliding Window Or.cpp ├── Sliding Window Sum.cpp └── Sliding Window Xor.cpp ├── Sorting and Searching ├── Apartments.cpp ├── Array Division.cpp ├── Collecting Numbers II.cpp ├── Collecting Numbers.cpp ├── Concert Tickets.cpp ├── Distinct Numbers.cpp ├── Distinct Values Subarrays II.cpp ├── Distinct Values Subarrays.cpp ├── Distinct Values Subsequences.cpp ├── Factory Machines.cpp ├── Ferris Wheel.cpp ├── Josephus Problem I.cpp ├── Josephus Problem II.cpp ├── Maximum Subarray Sum II.cpp ├── Maximum Subarray Sum.cpp ├── Missing Coin Sum.cpp ├── Movie Festival II.cpp ├── Movie Festival.cpp ├── Nearest Smaller Values.cpp ├── Nested Ranges Check.cpp ├── Nested Ranges Count.cpp ├── Playlist.cpp ├── Reading Books.cpp ├── Restaurant Customers.cpp ├── Room Allocation.cpp ├── Stick Lengths.cpp ├── Subarray Divisibility.cpp ├── Subarray Sums I.cpp ├── Subarray Sums II.cpp ├── Sum of Four Values.cpp ├── Sum of Three Values.cpp ├── Sum of Two Values.cpp ├── Tasks and Deadlines.cpp ├── Towers.cpp └── Traffic Lights.cpp ├── String Algorithms ├── Counting Patterns.cpp ├── Distinct Subsequences.cpp ├── Distinct Substrings.cpp ├── Finding Borders.cpp ├── Finding Patterns.cpp ├── Finding Periods.cpp ├── Longest Palindrome.cpp ├── Minimal Rotation.cpp ├── Palindrome Queries.cpp ├── Pattern Positions.cpp ├── Repeating Substring.cpp ├── String Functions.cpp ├── String Matching.cpp ├── String Transform.cpp ├── Substring Distribution.cpp ├── Substring Order I.cpp ├── Substring Order II.cpp └── Word Combinations.cpp ├── Tree Algorithms ├── Company Queries I.cpp ├── Company Queries II.cpp ├── Counting Paths.cpp ├── Distance Queries.cpp ├── Distinct Colors.cpp ├── Finding a Centroid.cpp ├── Fixed-Length Paths I.cpp ├── Fixed-Length Paths II.cpp ├── Path Queries II.cpp ├── Path Queries.cpp ├── Subordinates.cpp ├── Subtree Queries.cpp ├── Tree Diameter.cpp ├── Tree Distances I.cpp ├── Tree Distances II.cpp └── Tree Matching.cpp ├── generator ├── README.md ├── assets │ ├── robots.txt │ ├── script.js │ ├── sitemap.xml │ └── style.css ├── data.json ├── data │ └── introductory-problems │ │ └── weird-algorithm │ │ ├── description.md │ │ ├── hints.md │ │ └── solution.md ├── generator.js ├── setup.js └── templates │ ├── base.ejs │ ├── home.ejs │ ├── problem.ejs │ └── topic.ejs ├── package.json └── pnpm-lock.yaml /.github/workflows/deploy.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/.github/workflows/deploy.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /Additional Problems I/Advertisement.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Additional Problems I/Advertisement.cpp -------------------------------------------------------------------------------- /Additional Problems I/Bit Inversions.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Additional Problems I/Bit Inversions.cpp -------------------------------------------------------------------------------- /Additional Problems I/Bubble Sort Rounds I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Additional Problems I/Bubble Sort Rounds I.cpp -------------------------------------------------------------------------------- /Additional Problems I/Cyclic Array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Additional Problems I/Cyclic Array.cpp -------------------------------------------------------------------------------- /Additional Problems I/Distinct Values Splits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Additional Problems I/Distinct Values Splits.cpp -------------------------------------------------------------------------------- /Additional Problems I/Distinct Values Sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Additional Problems I/Distinct Values Sum.cpp -------------------------------------------------------------------------------- /Additional Problems I/Maximum Building I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Additional Problems I/Maximum Building I.cpp -------------------------------------------------------------------------------- /Additional Problems I/Multiplication Table.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Additional Problems I/Multiplication Table.cpp -------------------------------------------------------------------------------- /Additional Problems I/Shortest Subsequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Additional Problems I/Shortest Subsequence.cpp -------------------------------------------------------------------------------- /Additional Problems I/Special Substrings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Additional Problems I/Special Substrings.cpp -------------------------------------------------------------------------------- /Additional Problems I/Swap Game.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Additional Problems I/Swap Game.cpp -------------------------------------------------------------------------------- /Additional Problems I/Writing Numbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Additional Problems I/Writing Numbers.cpp -------------------------------------------------------------------------------- /Additional Problems II/Bit Substrings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Additional Problems II/Bit Substrings.cpp -------------------------------------------------------------------------------- /Additional Problems II/Bouncing Ball Steps.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Additional Problems II/Bouncing Ball Steps.cpp -------------------------------------------------------------------------------- /Additional Problems II/Coding Company.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Additional Problems II/Coding Company.cpp -------------------------------------------------------------------------------- /Additional Problems II/Grid Puzzle I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Additional Problems II/Grid Puzzle I.cpp -------------------------------------------------------------------------------- /Additional Problems II/Grid Puzzle II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Additional Problems II/Grid Puzzle II.cpp -------------------------------------------------------------------------------- /Additional Problems II/Mex Grid Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Additional Problems II/Mex Grid Queries.cpp -------------------------------------------------------------------------------- /Additional Problems II/Reversal Sorting.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Additional Problems II/Reversal Sorting.cpp -------------------------------------------------------------------------------- /Additional Problems II/School Excursion.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Additional Problems II/School Excursion.cpp -------------------------------------------------------------------------------- /Additional Problems II/Stick Divisions.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Additional Problems II/Stick Divisions.cpp -------------------------------------------------------------------------------- /Advanced Graph Problems/Acyclic Graph Edges.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Graph Problems/Acyclic Graph Edges.cpp -------------------------------------------------------------------------------- /Advanced Graph Problems/Critical Cities.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Graph Problems/Critical Cities.cpp -------------------------------------------------------------------------------- /Advanced Graph Problems/Forbidden Cities.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Graph Problems/Forbidden Cities.cpp -------------------------------------------------------------------------------- /Advanced Graph Problems/Graph Girth.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Graph Problems/Graph Girth.cpp -------------------------------------------------------------------------------- /Advanced Graph Problems/MST Edge Check.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Graph Problems/MST Edge Check.cpp -------------------------------------------------------------------------------- /Advanced Graph Problems/MST Edge Cost.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Graph Problems/MST Edge Cost.cpp -------------------------------------------------------------------------------- /Advanced Graph Problems/Nearest Shops.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Graph Problems/Nearest Shops.cpp -------------------------------------------------------------------------------- /Advanced Graph Problems/Network Breakdown.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Graph Problems/Network Breakdown.cpp -------------------------------------------------------------------------------- /Advanced Graph Problems/Network Renovation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Graph Problems/Network Renovation.cpp -------------------------------------------------------------------------------- /Advanced Graph Problems/Prüfer Code.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Graph Problems/Prüfer Code.cpp -------------------------------------------------------------------------------- /Advanced Graph Problems/Strongly Connected Edges.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Graph Problems/Strongly Connected Edges.cpp -------------------------------------------------------------------------------- /Advanced Graph Problems/Tree Isomorphism I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Graph Problems/Tree Isomorphism I.cpp -------------------------------------------------------------------------------- /Advanced Graph Problems/Tree Isomorphism II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Graph Problems/Tree Isomorphism II.cpp -------------------------------------------------------------------------------- /Advanced Graph Problems/Tree Traversals.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Graph Problems/Tree Traversals.cpp -------------------------------------------------------------------------------- /Advanced Graph Problems/Visiting Cities.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Graph Problems/Visiting Cities.cpp -------------------------------------------------------------------------------- /Advanced Techniques/Apples and Bananas.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Techniques/Apples and Bananas.cpp -------------------------------------------------------------------------------- /Advanced Techniques/Corner Subgrid Count.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Techniques/Corner Subgrid Count.cpp -------------------------------------------------------------------------------- /Advanced Techniques/Cut and Paste.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Techniques/Cut and Paste.cpp -------------------------------------------------------------------------------- /Advanced Techniques/Distinct Routes II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Techniques/Distinct Routes II.cpp -------------------------------------------------------------------------------- /Advanced Techniques/Dynamic Connectivity.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Techniques/Dynamic Connectivity.cpp -------------------------------------------------------------------------------- /Advanced Techniques/Hamming Distance.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Techniques/Hamming Distance.cpp -------------------------------------------------------------------------------- /Advanced Techniques/Knuth Division.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Techniques/Knuth Division.cpp -------------------------------------------------------------------------------- /Advanced Techniques/Meet in the Middle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Techniques/Meet in the Middle.cpp -------------------------------------------------------------------------------- /Advanced Techniques/Monster Game I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Techniques/Monster Game I.cpp -------------------------------------------------------------------------------- /Advanced Techniques/Monster Game II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Techniques/Monster Game II.cpp -------------------------------------------------------------------------------- /Advanced Techniques/Necessary Cities.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Techniques/Necessary Cities.cpp -------------------------------------------------------------------------------- /Advanced Techniques/Necessary Roads.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Techniques/Necessary Roads.cpp -------------------------------------------------------------------------------- /Advanced Techniques/New Roads Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Techniques/New Roads Queries.cpp -------------------------------------------------------------------------------- /Advanced Techniques/One Bit Positions.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Techniques/One Bit Positions.cpp -------------------------------------------------------------------------------- /Advanced Techniques/Parcel Delivery.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Techniques/Parcel Delivery.cpp -------------------------------------------------------------------------------- /Advanced Techniques/Reachability Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Techniques/Reachability Queries.cpp -------------------------------------------------------------------------------- /Advanced Techniques/Reachable Nodes.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Techniques/Reachable Nodes.cpp -------------------------------------------------------------------------------- /Advanced Techniques/Reversals and Sums.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Techniques/Reversals and Sums.cpp -------------------------------------------------------------------------------- /Advanced Techniques/Signal Processing.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Techniques/Signal Processing.cpp -------------------------------------------------------------------------------- /Advanced Techniques/Subarray Squares.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Techniques/Subarray Squares.cpp -------------------------------------------------------------------------------- /Advanced Techniques/Substring Reversals.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Techniques/Substring Reversals.cpp -------------------------------------------------------------------------------- /Advanced Techniques/Task Assignment.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Advanced Techniques/Task Assignment.cpp -------------------------------------------------------------------------------- /Bitwise Operations/Counting Bits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Bitwise Operations/Counting Bits.cpp -------------------------------------------------------------------------------- /Bitwise Operations/Maximum Xor Subarray.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Bitwise Operations/Maximum Xor Subarray.cpp -------------------------------------------------------------------------------- /Bitwise Operations/Maximum Xor Subset.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Bitwise Operations/Maximum Xor Subset.cpp -------------------------------------------------------------------------------- /Bitwise Operations/Number of Subset Xors.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Bitwise Operations/Number of Subset Xors.cpp -------------------------------------------------------------------------------- /Bitwise Operations/SOS Bit Problem.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Bitwise Operations/SOS Bit Problem.cpp -------------------------------------------------------------------------------- /Bitwise Operations/Xor Pyramid Peak.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Bitwise Operations/Xor Pyramid Peak.cpp -------------------------------------------------------------------------------- /Construction Problems/Chess Tournament.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Construction Problems/Chess Tournament.cpp -------------------------------------------------------------------------------- /Construction Problems/Inverse Inversions.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Construction Problems/Inverse Inversions.cpp -------------------------------------------------------------------------------- /Construction Problems/Monotone Subsequences.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Construction Problems/Monotone Subsequences.cpp -------------------------------------------------------------------------------- /Construction Problems/Permutation Prime Sums.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Construction Problems/Permutation Prime Sums.cpp -------------------------------------------------------------------------------- /Construction Problems/Third Permutation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Construction Problems/Third Permutation.cpp -------------------------------------------------------------------------------- /Counting Problems/Counting Permutations.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Counting Problems/Counting Permutations.cpp -------------------------------------------------------------------------------- /Counting Problems/Counting Sequences.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Counting Problems/Counting Sequences.cpp -------------------------------------------------------------------------------- /Counting Problems/Filled Subgrid Count I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Counting Problems/Filled Subgrid Count I.cpp -------------------------------------------------------------------------------- /Counting Problems/Filled Subgrid Count II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Counting Problems/Filled Subgrid Count II.cpp -------------------------------------------------------------------------------- /Counting Problems/Grid Paths II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Counting Problems/Grid Paths II.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Array Description.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Dynamic Programming/Array Description.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Book Shop.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Dynamic Programming/Book Shop.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Coin Combinations I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Dynamic Programming/Coin Combinations I.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Coin Combinations II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Dynamic Programming/Coin Combinations II.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Counting Numbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Dynamic Programming/Counting Numbers.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Counting Tilings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Dynamic Programming/Counting Tilings.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Counting Towers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Dynamic Programming/Counting Towers.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Dice Combinations.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Dynamic Programming/Dice Combinations.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Edit Distance.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Dynamic Programming/Edit Distance.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Elevator Rides.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Dynamic Programming/Elevator Rides.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Grid Paths I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Dynamic Programming/Grid Paths I.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Increasing Subsequence II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Dynamic Programming/Increasing Subsequence II.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Increasing Subsequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Dynamic Programming/Increasing Subsequence.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Longest Common Subsequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Dynamic Programming/Longest Common Subsequence.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Minimal Grid Path.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Dynamic Programming/Minimal Grid Path.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Minimizing Coins.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Dynamic Programming/Minimizing Coins.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Money Sums.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Dynamic Programming/Money Sums.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Projects.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Dynamic Programming/Projects.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Rectangle Cutting.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Dynamic Programming/Rectangle Cutting.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Removal Game.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Dynamic Programming/Removal Game.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Removing Digits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Dynamic Programming/Removing Digits.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Two Sets II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Dynamic Programming/Two Sets II.cpp -------------------------------------------------------------------------------- /Geometry/All Manhattan Distances.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Geometry/All Manhattan Distances.cpp -------------------------------------------------------------------------------- /Geometry/Area of Rectangles.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Geometry/Area of Rectangles.cpp -------------------------------------------------------------------------------- /Geometry/Convex Hull.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Geometry/Convex Hull.cpp -------------------------------------------------------------------------------- /Geometry/Intersection Points.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Geometry/Intersection Points.cpp -------------------------------------------------------------------------------- /Geometry/Line Segment Intersection.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Geometry/Line Segment Intersection.cpp -------------------------------------------------------------------------------- /Geometry/Maximum Manhattan Distances.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Geometry/Maximum Manhattan Distances.cpp -------------------------------------------------------------------------------- /Geometry/Minimum Euclidean Distance.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Geometry/Minimum Euclidean Distance.cpp -------------------------------------------------------------------------------- /Geometry/Point Location Test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Geometry/Point Location Test.cpp -------------------------------------------------------------------------------- /Geometry/Point in Polygon.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Geometry/Point in Polygon.cpp -------------------------------------------------------------------------------- /Geometry/Polygon Area.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Geometry/Polygon Area.cpp -------------------------------------------------------------------------------- /Geometry/Polygon Lattice Points.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Geometry/Polygon Lattice Points.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Building Roads.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Building Roads.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Building Teams.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Building Teams.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Coin Collector.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Coin Collector.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Counting Rooms.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Counting Rooms.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Course Schedule.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Course Schedule.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Cycle Finding.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Cycle Finding.cpp -------------------------------------------------------------------------------- /Graph Algorithms/De Bruijn Sequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/De Bruijn Sequence.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Distinct Routes.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Distinct Routes.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Download Speed.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Download Speed.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Flight Discount.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Flight Discount.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Flight Routes Check.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Flight Routes Check.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Flight Routes.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Flight Routes.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Game Routes.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Game Routes.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Giant Pizza.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Giant Pizza.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Hamiltonian Flights.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Hamiltonian Flights.cpp -------------------------------------------------------------------------------- /Graph Algorithms/High Score.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/High Score.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Investigation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Investigation.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Knight's Tour.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Knight's Tour.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Labyrinth.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Labyrinth.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Longest Flight Route.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Longest Flight Route.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Mail Delivery.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Mail Delivery.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Message Route.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Message Route.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Monsters.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Monsters.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Planets Cycles.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Planets Cycles.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Planets Queries I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Planets Queries I.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Planets and Kingdoms.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Planets and Kingdoms.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Police Chase.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Police Chase.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Road Construction.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Road Construction.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Road Reparation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Road Reparation.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Round Trip II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Round Trip II.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Round Trip.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Round Trip.cpp -------------------------------------------------------------------------------- /Graph Algorithms/School Dance.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/School Dance.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Shortest Routes I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Shortest Routes I.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Shortest Routes II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Shortest Routes II.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Teleporters Path.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Graph Algorithms/Teleporters Path.cpp -------------------------------------------------------------------------------- /Interactive Problems/Hidden Integer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Interactive Problems/Hidden Integer.cpp -------------------------------------------------------------------------------- /Interactive Problems/Hidden Permutation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Interactive Problems/Hidden Permutation.cpp -------------------------------------------------------------------------------- /Interactive Problems/K th Highest Score.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Interactive Problems/K th Highest Score.cpp -------------------------------------------------------------------------------- /Introductory Problems/Apple Division.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Introductory Problems/Apple Division.cpp -------------------------------------------------------------------------------- /Introductory Problems/Bit Strings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Introductory Problems/Bit Strings.cpp -------------------------------------------------------------------------------- /Introductory Problems/Chessboard and Queens.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Introductory Problems/Chessboard and Queens.cpp -------------------------------------------------------------------------------- /Introductory Problems/Coin Piles.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Introductory Problems/Coin Piles.cpp -------------------------------------------------------------------------------- /Introductory Problems/Creating Strings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Introductory Problems/Creating Strings.cpp -------------------------------------------------------------------------------- /Introductory Problems/Digit Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Introductory Problems/Digit Queries.cpp -------------------------------------------------------------------------------- /Introductory Problems/Gray Code.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Introductory Problems/Gray Code.cpp -------------------------------------------------------------------------------- /Introductory Problems/Grid Coloring I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Introductory Problems/Grid Coloring I.cpp -------------------------------------------------------------------------------- /Introductory Problems/Grid Path Description.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Introductory Problems/Grid Path Description.cpp -------------------------------------------------------------------------------- /Introductory Problems/Increasing Array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Introductory Problems/Increasing Array.cpp -------------------------------------------------------------------------------- /Introductory Problems/Knight Moves Grid.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Introductory Problems/Knight Moves Grid.cpp -------------------------------------------------------------------------------- /Introductory Problems/Mex Grid Construction.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Introductory Problems/Mex Grid Construction.cpp -------------------------------------------------------------------------------- /Introductory Problems/Missing Number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Introductory Problems/Missing Number.cpp -------------------------------------------------------------------------------- /Introductory Problems/Number Spiral.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Introductory Problems/Number Spiral.cpp -------------------------------------------------------------------------------- /Introductory Problems/Palindrome Reorder.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Introductory Problems/Palindrome Reorder.cpp -------------------------------------------------------------------------------- /Introductory Problems/Permutations.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Introductory Problems/Permutations.cpp -------------------------------------------------------------------------------- /Introductory Problems/Raab Game I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Introductory Problems/Raab Game I.cpp -------------------------------------------------------------------------------- /Introductory Problems/Repetitions.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Introductory Problems/Repetitions.cpp -------------------------------------------------------------------------------- /Introductory Problems/String Reorder.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Introductory Problems/String Reorder.cpp -------------------------------------------------------------------------------- /Introductory Problems/Tower of Hanoi.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Introductory Problems/Tower of Hanoi.cpp -------------------------------------------------------------------------------- /Introductory Problems/Trailing Zeros.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Introductory Problems/Trailing Zeros.cpp -------------------------------------------------------------------------------- /Introductory Problems/Two Knights.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Introductory Problems/Two Knights.cpp -------------------------------------------------------------------------------- /Introductory Problems/Two Sets.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Introductory Problems/Two Sets.cpp -------------------------------------------------------------------------------- /Introductory Problems/Weird Algorithm.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Introductory Problems/Weird Algorithm.cpp -------------------------------------------------------------------------------- /Mathematics/Another Game.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Another Game.cpp -------------------------------------------------------------------------------- /Mathematics/Binomial Coefficients.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Binomial Coefficients.cpp -------------------------------------------------------------------------------- /Mathematics/Bracket Sequences I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Bracket Sequences I.cpp -------------------------------------------------------------------------------- /Mathematics/Bracket Sequences II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Bracket Sequences II.cpp -------------------------------------------------------------------------------- /Mathematics/Candy Lottery.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Candy Lottery.cpp -------------------------------------------------------------------------------- /Mathematics/Christmas Party.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Christmas Party.cpp -------------------------------------------------------------------------------- /Mathematics/Common Divisors.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Common Divisors.cpp -------------------------------------------------------------------------------- /Mathematics/Counting Coprime Pairs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Counting Coprime Pairs.cpp -------------------------------------------------------------------------------- /Mathematics/Counting Divisors.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Counting Divisors.cpp -------------------------------------------------------------------------------- /Mathematics/Counting Grids.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Counting Grids.cpp -------------------------------------------------------------------------------- /Mathematics/Counting Necklaces.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Counting Necklaces.cpp -------------------------------------------------------------------------------- /Mathematics/Creating Strings II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Creating Strings II.cpp -------------------------------------------------------------------------------- /Mathematics/Dice Probability.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Dice Probability.cpp -------------------------------------------------------------------------------- /Mathematics/Distributing Apples.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Distributing Apples.cpp -------------------------------------------------------------------------------- /Mathematics/Divisor Analysis.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Divisor Analysis.cpp -------------------------------------------------------------------------------- /Mathematics/Exponentiation II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Exponentiation II.cpp -------------------------------------------------------------------------------- /Mathematics/Exponentiation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Exponentiation.cpp -------------------------------------------------------------------------------- /Mathematics/Fibonacci Numbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Fibonacci Numbers.cpp -------------------------------------------------------------------------------- /Mathematics/Graph Paths I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Graph Paths I.cpp -------------------------------------------------------------------------------- /Mathematics/Graph Paths II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Graph Paths II.cpp -------------------------------------------------------------------------------- /Mathematics/Grundy's Game.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Grundy's Game.cpp -------------------------------------------------------------------------------- /Mathematics/Josephus Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Josephus Queries.cpp -------------------------------------------------------------------------------- /Mathematics/Next Prime.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Next Prime.cpp -------------------------------------------------------------------------------- /Mathematics/Nim Game I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Nim Game I.cpp -------------------------------------------------------------------------------- /Mathematics/Nim Game II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Nim Game II.cpp -------------------------------------------------------------------------------- /Mathematics/Prime Multiples.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Prime Multiples.cpp -------------------------------------------------------------------------------- /Mathematics/Stair Game.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Stair Game.cpp -------------------------------------------------------------------------------- /Mathematics/Stick Game.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Stick Game.cpp -------------------------------------------------------------------------------- /Mathematics/Sum of Divisors.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Sum of Divisors.cpp -------------------------------------------------------------------------------- /Mathematics/Throwing Dice.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Mathematics/Throwing Dice.cpp -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/README.md -------------------------------------------------------------------------------- /Range Queries/Distinct Values Queries II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/Distinct Values Queries II.cpp -------------------------------------------------------------------------------- /Range Queries/Distinct Values Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/Distinct Values Queries.cpp -------------------------------------------------------------------------------- /Range Queries/Dynamic Range Minimum Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/Dynamic Range Minimum Queries.cpp -------------------------------------------------------------------------------- /Range Queries/Dynamic Range Sum Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/Dynamic Range Sum Queries.cpp -------------------------------------------------------------------------------- /Range Queries/Forest Queries II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/Forest Queries II.cpp -------------------------------------------------------------------------------- /Range Queries/Forest Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/Forest Queries.cpp -------------------------------------------------------------------------------- /Range Queries/Hotel Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/Hotel Queries.cpp -------------------------------------------------------------------------------- /Range Queries/Increasing Array Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/Increasing Array Queries.cpp -------------------------------------------------------------------------------- /Range Queries/List Removals.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/List Removals.cpp -------------------------------------------------------------------------------- /Range Queries/Missing Coin Sum Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/Missing Coin Sum Queries.cpp -------------------------------------------------------------------------------- /Range Queries/Movie Festival Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/Movie Festival Queries.cpp -------------------------------------------------------------------------------- /Range Queries/Pizzeria Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/Pizzeria Queries.cpp -------------------------------------------------------------------------------- /Range Queries/Polynomial Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/Polynomial Queries.cpp -------------------------------------------------------------------------------- /Range Queries/Prefix Sum Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/Prefix Sum Queries.cpp -------------------------------------------------------------------------------- /Range Queries/Range Interval Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/Range Interval Queries.cpp -------------------------------------------------------------------------------- /Range Queries/Range Queries and Copies.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/Range Queries and Copies.cpp -------------------------------------------------------------------------------- /Range Queries/Range Update Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/Range Update Queries.cpp -------------------------------------------------------------------------------- /Range Queries/Range Updates and Sums.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/Range Updates and Sums.cpp -------------------------------------------------------------------------------- /Range Queries/Range Xor Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/Range Xor Queries.cpp -------------------------------------------------------------------------------- /Range Queries/Salary Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/Salary Queries.cpp -------------------------------------------------------------------------------- /Range Queries/Static Range Minimum Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/Static Range Minimum Queries.cpp -------------------------------------------------------------------------------- /Range Queries/Static Range Sum Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/Static Range Sum Queries.cpp -------------------------------------------------------------------------------- /Range Queries/Subarray Sum Queries II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/Subarray Sum Queries II.cpp -------------------------------------------------------------------------------- /Range Queries/Subarray Sum Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/Subarray Sum Queries.cpp -------------------------------------------------------------------------------- /Range Queries/Visible Buildings Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Range Queries/Visible Buildings Queries.cpp -------------------------------------------------------------------------------- /Sliding Window Problems/Sliding Window Cost.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sliding Window Problems/Sliding Window Cost.cpp -------------------------------------------------------------------------------- /Sliding Window Problems/Sliding Window Distinct Values.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sliding Window Problems/Sliding Window Distinct Values.cpp -------------------------------------------------------------------------------- /Sliding Window Problems/Sliding Window Inversions.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sliding Window Problems/Sliding Window Inversions.cpp -------------------------------------------------------------------------------- /Sliding Window Problems/Sliding Window Median.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sliding Window Problems/Sliding Window Median.cpp -------------------------------------------------------------------------------- /Sliding Window Problems/Sliding Window Mex.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sliding Window Problems/Sliding Window Mex.cpp -------------------------------------------------------------------------------- /Sliding Window Problems/Sliding Window Minimum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sliding Window Problems/Sliding Window Minimum.cpp -------------------------------------------------------------------------------- /Sliding Window Problems/Sliding Window Mode.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sliding Window Problems/Sliding Window Mode.cpp -------------------------------------------------------------------------------- /Sliding Window Problems/Sliding Window Or.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sliding Window Problems/Sliding Window Or.cpp -------------------------------------------------------------------------------- /Sliding Window Problems/Sliding Window Sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sliding Window Problems/Sliding Window Sum.cpp -------------------------------------------------------------------------------- /Sliding Window Problems/Sliding Window Xor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sliding Window Problems/Sliding Window Xor.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Apartments.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Apartments.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Array Division.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Array Division.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Collecting Numbers II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Collecting Numbers II.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Collecting Numbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Collecting Numbers.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Concert Tickets.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Concert Tickets.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Distinct Numbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Distinct Numbers.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Distinct Values Subarrays II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Distinct Values Subarrays II.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Distinct Values Subarrays.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Distinct Values Subarrays.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Distinct Values Subsequences.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Distinct Values Subsequences.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Factory Machines.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Factory Machines.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Ferris Wheel.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Ferris Wheel.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Josephus Problem I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Josephus Problem I.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Josephus Problem II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Josephus Problem II.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Maximum Subarray Sum II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Maximum Subarray Sum II.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Maximum Subarray Sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Maximum Subarray Sum.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Missing Coin Sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Missing Coin Sum.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Movie Festival II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Movie Festival II.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Movie Festival.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Movie Festival.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Nearest Smaller Values.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Nearest Smaller Values.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Nested Ranges Check.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Nested Ranges Check.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Nested Ranges Count.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Nested Ranges Count.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Playlist.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Playlist.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Reading Books.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Reading Books.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Restaurant Customers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Restaurant Customers.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Room Allocation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Room Allocation.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Stick Lengths.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Stick Lengths.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Subarray Divisibility.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Subarray Divisibility.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Subarray Sums I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Subarray Sums I.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Subarray Sums II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Subarray Sums II.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Sum of Four Values.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Sum of Four Values.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Sum of Three Values.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Sum of Three Values.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Sum of Two Values.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Sum of Two Values.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Tasks and Deadlines.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Tasks and Deadlines.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Towers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Towers.cpp -------------------------------------------------------------------------------- /Sorting and Searching/Traffic Lights.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Sorting and Searching/Traffic Lights.cpp -------------------------------------------------------------------------------- /String Algorithms/Counting Patterns.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/String Algorithms/Counting Patterns.cpp -------------------------------------------------------------------------------- /String Algorithms/Distinct Subsequences.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/String Algorithms/Distinct Subsequences.cpp -------------------------------------------------------------------------------- /String Algorithms/Distinct Substrings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/String Algorithms/Distinct Substrings.cpp -------------------------------------------------------------------------------- /String Algorithms/Finding Borders.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/String Algorithms/Finding Borders.cpp -------------------------------------------------------------------------------- /String Algorithms/Finding Patterns.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/String Algorithms/Finding Patterns.cpp -------------------------------------------------------------------------------- /String Algorithms/Finding Periods.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/String Algorithms/Finding Periods.cpp -------------------------------------------------------------------------------- /String Algorithms/Longest Palindrome.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/String Algorithms/Longest Palindrome.cpp -------------------------------------------------------------------------------- /String Algorithms/Minimal Rotation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/String Algorithms/Minimal Rotation.cpp -------------------------------------------------------------------------------- /String Algorithms/Palindrome Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/String Algorithms/Palindrome Queries.cpp -------------------------------------------------------------------------------- /String Algorithms/Pattern Positions.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/String Algorithms/Pattern Positions.cpp -------------------------------------------------------------------------------- /String Algorithms/Repeating Substring.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/String Algorithms/Repeating Substring.cpp -------------------------------------------------------------------------------- /String Algorithms/String Functions.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/String Algorithms/String Functions.cpp -------------------------------------------------------------------------------- /String Algorithms/String Matching.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/String Algorithms/String Matching.cpp -------------------------------------------------------------------------------- /String Algorithms/String Transform.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/String Algorithms/String Transform.cpp -------------------------------------------------------------------------------- /String Algorithms/Substring Distribution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/String Algorithms/Substring Distribution.cpp -------------------------------------------------------------------------------- /String Algorithms/Substring Order I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/String Algorithms/Substring Order I.cpp -------------------------------------------------------------------------------- /String Algorithms/Substring Order II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/String Algorithms/Substring Order II.cpp -------------------------------------------------------------------------------- /String Algorithms/Word Combinations.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/String Algorithms/Word Combinations.cpp -------------------------------------------------------------------------------- /Tree Algorithms/Company Queries I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Tree Algorithms/Company Queries I.cpp -------------------------------------------------------------------------------- /Tree Algorithms/Company Queries II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Tree Algorithms/Company Queries II.cpp -------------------------------------------------------------------------------- /Tree Algorithms/Counting Paths.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Tree Algorithms/Counting Paths.cpp -------------------------------------------------------------------------------- /Tree Algorithms/Distance Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Tree Algorithms/Distance Queries.cpp -------------------------------------------------------------------------------- /Tree Algorithms/Distinct Colors.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Tree Algorithms/Distinct Colors.cpp -------------------------------------------------------------------------------- /Tree Algorithms/Finding a Centroid.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Tree Algorithms/Finding a Centroid.cpp -------------------------------------------------------------------------------- /Tree Algorithms/Fixed-Length Paths I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Tree Algorithms/Fixed-Length Paths I.cpp -------------------------------------------------------------------------------- /Tree Algorithms/Fixed-Length Paths II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Tree Algorithms/Fixed-Length Paths II.cpp -------------------------------------------------------------------------------- /Tree Algorithms/Path Queries II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Tree Algorithms/Path Queries II.cpp -------------------------------------------------------------------------------- /Tree Algorithms/Path Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Tree Algorithms/Path Queries.cpp -------------------------------------------------------------------------------- /Tree Algorithms/Subordinates.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Tree Algorithms/Subordinates.cpp -------------------------------------------------------------------------------- /Tree Algorithms/Subtree Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Tree Algorithms/Subtree Queries.cpp -------------------------------------------------------------------------------- /Tree Algorithms/Tree Diameter.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Tree Algorithms/Tree Diameter.cpp -------------------------------------------------------------------------------- /Tree Algorithms/Tree Distances I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Tree Algorithms/Tree Distances I.cpp -------------------------------------------------------------------------------- /Tree Algorithms/Tree Distances II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Tree Algorithms/Tree Distances II.cpp -------------------------------------------------------------------------------- /Tree Algorithms/Tree Matching.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/Tree Algorithms/Tree Matching.cpp -------------------------------------------------------------------------------- /generator/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/generator/README.md -------------------------------------------------------------------------------- /generator/assets/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/generator/assets/robots.txt -------------------------------------------------------------------------------- /generator/assets/script.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/generator/assets/script.js -------------------------------------------------------------------------------- /generator/assets/sitemap.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/generator/assets/sitemap.xml -------------------------------------------------------------------------------- /generator/assets/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/generator/assets/style.css -------------------------------------------------------------------------------- /generator/data.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/generator/data.json -------------------------------------------------------------------------------- /generator/data/introductory-problems/weird-algorithm/description.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/generator/data/introductory-problems/weird-algorithm/description.md -------------------------------------------------------------------------------- /generator/data/introductory-problems/weird-algorithm/hints.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/generator/data/introductory-problems/weird-algorithm/hints.md -------------------------------------------------------------------------------- /generator/data/introductory-problems/weird-algorithm/solution.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/generator/data/introductory-problems/weird-algorithm/solution.md -------------------------------------------------------------------------------- /generator/generator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/generator/generator.js -------------------------------------------------------------------------------- /generator/setup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/generator/setup.js -------------------------------------------------------------------------------- /generator/templates/base.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/generator/templates/base.ejs -------------------------------------------------------------------------------- /generator/templates/home.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/generator/templates/home.ejs -------------------------------------------------------------------------------- /generator/templates/problem.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/generator/templates/problem.ejs -------------------------------------------------------------------------------- /generator/templates/topic.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/generator/templates/topic.ejs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TamimEhsan/CSES-Solutions/HEAD/pnpm-lock.yaml --------------------------------------------------------------------------------