File tree
601 files changed
+1211
-1
lines changed- tasks
- 01-introductory-problems
- 01-weird-algorithm
- 02-missing-number
- 03-repetitions
- 04-increasing-array
- 05-permutations
- 06-number-spiral
- 07-two-knights
- 08-two-sets
- 09-bit-strings
- 10-trailing-zeros
- 11-coin-piles
- 12-palindrome-reorder
- 13-gray-code
- 14-tower-of-hanoi
- 15-creating-strings
- 16-apple-division
- 17-chessboard-and-queens
- 18-digit-queries
- 19-grid-paths
- 02-sorting-and-searching
- 01-distinct-numbers
- 02-apartments
- 03-ferris-wheel
- 04-concert-tickets
- 05-restaurant-customers
- 06-movie-festival
- 07-sum-of-two-values
- 08-maximum-subarray-sum
- 09-stick-lengths
- 10-missing-coin-sum
- 11-collecting-numbers
- 12-collecting-numbers-ii
- 13-playlist
- 14-towers
- 15-traffic-lights
- 16-josephus-problem-i
- 17-josephus-problem-ii
- 18-nested-ranges-check
- 19-nested-ranges-count
- 20-room-allocation
- 21-factory-machines
- 22-tasks-and-deadlines
- 23-reading-books
- 24-sum-of-three-values
- 25-sum-of-four-values
- 26-nearest-smaller-values
- 27-subarray-sums-i
- 28-subarray-sums-ii
- 29-subarray-divisibility
- 30-subarray-distinct-values
- 31-array-division
- 32-sliding-window-median
- 33-sliding-window-cost
- 34-movie-festival-ii
- 35-maximum-subarray-sum-ii
- 03-dynamic-programming
- 01-dice-combinations
- 02-minimizing-coins
- 03-coin-combinations-i
- 04-coin-combinations-ii
- 05-removing-digits
- 06-grid-paths
- 07-book-shop
- 08-array-description
- 09-counting-towers
- 10-edit-distance
- 11-rectangle-cutting
- 12-money-sums
- 13-removal-game
- 14-two-sets-ii
- 15-increasing-subsequence
- 16-projects
- 17-elevator-rides
- 18-counting-tilings
- 19-counting-numbers
- 04-graph-algorithms
- 01-counting-rooms
- 02-labyrinth
- 03-building-roads
- 04-message-route
- 05-building-teams
- 06-round-trip
- 07-monsters
- 08-shortest-routes-i
- 09-shortest-routes-ii
- 10-high-score
- 11-flight-discount
- 12-cycle-finding
- 13-flight-routes
- 14-round-trip-ii
- 15-course-schedule
- 16-longest-flight-route
- 17-game-routes
- 18-investigation
- 19-planets-queries-i
- 20-planets-queries-ii
- 21-planets-cycles
- 22-road-reparation
- 23-road-construction
- 24-flight-routes-check
- 25-planets-and-kingdoms
- 26-giant-pizza
- 27-coin-collector
- 28-mail-delivery
- 29-de-bruijn-sequence
- 30-teleporters-path
- 31-hamiltonian-flights
- 32-knights-tour
- 33-download-speed
- 34-police-chase
- 35-school-dance
- 36-distinct-routes
- 05-range-queries
- 01-static-range-sum-queries
- 02-static-range-minimum-queries
- 03-dynamic-range-sum-queries
- 04-dynamic-range-minimum-queries
- 05-range-xor-queries
- 06-range-update-queries
- 07-forest-queries
- 08-hotel-queries
- 09-list-removals
- 10-salary-queries
- 11-prefix-sum-queries
- 12-pizzeria-queries
- 13-subarray-sum-queries
- 14-distinct-values-queries
- 15-increasing-array-queries
- 16-forest-queries-ii
- 17-range-updates-and-sums
- 18-polynomial-queries
- 19-range-queries-and-copies
- 06-tree-algorithms
- 01-subordinates
- 02-tree-matching
- 03-tree-diameter
- 04-tree-distances-i
- 05-tree-distances-ii
- 06-company-queries-i
- 07-company-queries-ii
- 08-distance-queries
- 09-counting-paths
- 10-subtree-queries
- 11-path-queries
- 12-path-queries-ii
- 13-distinct-colors
- 14-finding-a-centroid
- 15-fixed-length-paths-i
- 16-fixed-length-paths-ii
- 07-mathematics
- 01-josephus-queries
- 02-exponentiation
- 03-exponentiation-ii
- 04-counting-divisors
- 05-common-divisors
- 06-sum-of-divisors
- 07-divisor-analysis
- 08-prime-multiples
- 09-counting-coprime-pairs
- 10-binomial-coefficients
- 11-creating-strings-ii
- 12-distributing-apples
- 13-christmas-party
- 14-bracket-sequences-i
- 15-bracket-sequences-ii
- 16-counting-necklaces
- 17-counting-grids
- 18-fibonacci-numbers
- 19-throwing-dice
- 20-graph-paths-i
- 21-graph-paths-ii
- 22-dice-probability
- 23-moving-robots
- 24-candy-lottery
- 25-inversion-probability
- 26-stick-game
- 27-nim-game-i
- 28-nim-game-ii
- 29-stair-game
- 30-grundys-game
- 31-another-game
- 08-string-algorithms
- 01-word-combinations
- 02-string-matching
- 03-finding-borders
- 04-finding-periods
- 05-minimal-rotation
- 06-longest-palindrome
- 07-required-substring
- 08-palindrome-queries
- 09-finding-patterns
- 10-counting-patterns
- 11-pattern-positions
- 12-distinct-substrings
- 13-repeating-substring
- 14-string-functions
- 15-substring-order-i
- 16-substring-order-ii
- 17-substring-distribution
- 09-geometry
- 01-point-location-test
- 02-line-segment-intersection
- 03-polygon-area
- 04-point-in-polygon
- 05-polygon-lattice-points
- 06-minimum-euclidean-distance
- 07-convex-hull
- 10-advanced-techniques
- 01-meet-in-the-middle
- 02-hamming-distance
- 03-beautiful-subgrids
- 04-reachable-nodes
- 05-reachability-queries
- 06-cut-and-paste
- 07-substring-reversals
- 08-reversals-and-sums
- 09-necessary-roads
- 10-necessary-cities
- 11-eulerian-subgraphs
- 12-monster-game-i
- 13-monster-game-ii
- 14-subarray-squares
- 15-houses-and-schools
- 16-knuth-division
- 17-apples-and-bananas
- 18-one-bit-positions
- 19-signal-processing
- 20-new-roads-queries
- 21-dynamic-connectivity
- 22-parcel-delivery
- 23-task-assignment
- 24-distinct-routes-ii
- 11-additional-problems
- 01-shortest-subsequence
- 02-counting-bits
- 03-swap-game
- 04-prüfer-code
- 05-acyclic-graph-edges
- 06-strongly-connected-edges
- 07-even-outdegree-edges
- 08-multiplication-table
- 09-advertisement
- 10-special-substrings
- 11-permutation-inversions
- 12-maximum-xor-subarray
- 13-movie-festival-queries
- 14-chess-tournament
- 15-tree-traversals
- 16-network-renovation
- 17-graph-girth
- 18-intersection-points
- 19-inverse-inversions
- 20-monotone-subsequences
- 21-string-reorder
- 22-stack-weights
- 23-pyramid-array
- 24-increasing-subsequence-ii
- 25-string-removals
- 26-bit-inversions
- 27-xor-pyramid
- 28-writing-numbers
- 29-string-transform
- 30-letter-pair-move-game
- 31-maximum-building-i
- 32-sorting-methods
- 33-cyclic-array
- 34-list-of-sums
- 35-increasing-array-ii
- 36-food-division
- 37-bit-problem
- 38-swap-round-sorting
- 39-binary-subsequences
- 40-tree-isomorphism-i
- 41-counting-sequences
- 42-critical-cities
- 43-school-excursion
- 44-coin-grid
- 45-robot-path
- 46-programmers-and-artists
- 47-course-schedule-ii
- 48-removing-digits-ii
- 49-coin-arrangement
- 50-counting-bishops
- 51-grid-puzzle-i
- 52-grid-puzzle-ii
- 53-empty-string
- 54-grid-paths
- 55-bit-substrings
- 56-reversal-sorting
- 57-counting-reorders
- 58-book-shop-ii
- 59-network-breakdown
- 60-visiting-cities
- 61-missing-coin-sum-queries
- 62-number-grid
- 63-maximum-building-ii
- 64-filling-trominos
- 65-stick-divisions
- 66-coding-company
- 67-flight-route-requests
- 68-two-stacks-sorting
- 69-tree-isomorphism-ii
- 70-forbidden-cities
- 71-area-of-rectangles
- 72-grid-completion
- 73-creating-offices
- 74-permutations-ii
- 75-functional-graph-distribution
- 76-new-flight-routes
- 77-grid-path-construction
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
601 files changed
+1211
-1
lines changedLines changed: 11 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
42 |
| - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
43 | 53 |
| |
44 | 54 |
| |
45 | 55 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
0 commit comments