Skip to content

dimaglushkov/solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

solutions

This repo stores my problem-solving related code

leetcode: @dimaglushkov
codeforces: @dimaglushkov

Table of Contents

1. tools
2. contests
3. leetcode
4. adventofcode/2022
5. adventofcode/2023
6. codeforces
7. acm.timus

tools

This repository provides a collection of simple and effective tools to simplify solutions management. These utilities enable you to:

  • Automatically fetch problems from LeetCode and Codeforces, and generate solution templates.
  • Automatically update your list of completed solutions.
  • Obtain basic statistics on the distribution of your solved problems.

For more information, check tools.

contests

Leetcode Rating History
Codeforces Rating History
Name Rank Solutions Date
Leetcode Weekly Contest 290 4827 / 19491 solutions 24 apr 2022
Leetcode Biweekly Contest 77 6802 / 15519 solutions 30 apr 2022
Leetcode Weekly Contest 291 6157 / 19223 solutions 1 may 2022
Codeforces Round #790 (Div. 4) 7449 / 17743 solutions 10 may 2022
Codeforces Round #799 (Div. 4) 3515 / 20701 solutions 14 jun 2022
Codeforces Round #811 (Div. 3) 3021 / 15748 solutions 1 aug 2022
Leetcode Biweekly Contest 85 2962 / 23603 solutions 20 aug 2022
Codeforces Round #820 (Div. 3) 4833 / 18417 solutions 13 sep 2022
Codeforces Round #826 (Div. 3) 3102 / 17198 solutions 11 oct 2022
Codeforces Round #828 (Div. 3) 2398 / 14451 solutions 16 oct 2022
Codeforces Round #832 (Div. 2) 3690 / 13689 solutions 4 nov 2022
Leetcode Weekly Contest 320 7599 / 20861 solutions 20 nov 2022
Codeforces Round #835 (Div. 4) 702 / 19245 solutions 22 nov 2022
Leetcode Weekly Contest 321 6122 / 17826 solutions 27 nov 2022
Leetcode Weekly Contest 322 2403 / 19626 solutions 4 dec 2022
Leetcode Biweekly Contest 93 3107 / 17080 solutions 10 dec 2022
Educational Codeforces Round 139 (Rated for Div. 2) 2805 / 13189 solutions 12 dec 2022
Codeforces Round #839 (Div. 3) 722 / 8714 solutions 18 dec 2022
Leetcode Weekly Contest 332 1633 / 24102 solutions 12 feb 2023
Leetcode Biweekly Contest 98 3761 / 22683 solutions 18 feb 2023
Leetcode Weekly Contest 333 6411 / 21701 solutions 19 feb 2023
Codeforces Round #855 (Div. 3) 833 / 10200 solutions 2 mar 2023
Leetcode Biweekly Contest 99 4577 / 21264 solutions 4 mar 2023
Codeforces Round 856 (Div. 2) 2389 / 8430 solutions 4 mar 2023
Leetcode Biweekly Contest 100 2856 / 22847 solutions 18 mar 2023
Codeforces Round 860 (Div. 2) 1103 / 8764 solutions 26 mar 2023
Leetcode Biweekly Contest 101 4291 / 22282 solutions 1 apr 2023

leetcode

Problems solved in total: 607

Solutions by difficulty Solutions by tags
by_difficulty by_tags
Problem Difficulty Solution
1. Two sum Easy golang, python
9. Palindrome number Easy golang
2. Add two numbers Medium golang
3. Longest substring without repeating characters Medium golang
4. Median of two sorted arrays Hard golang
14. Longest common prefix Easy golang
13. Roman to integer Easy golang
28. Implement strstr Easy golang
459. Repeated substring pattern Easy golang
37. Sudoku solver Hard golang
36. Valid sudoku Medium golang
8. String to integer atoi Medium golang
2042. Check if numbers are ascending in a sentence Easy golang
53. Maximum subarray Easy golang
192. Word frequency Medium bash
338. Counting bits Easy golang
33. Search in rotated sorted array Medium golang
70. Climbing stairs Easy golang
118. Pascals triangle Easy golang
75. Sort colors Medium golang
15. 3sum Medium golang
392. Is subsequence Easy golang
20. Valid parentheses Easy golang, python
71. Simplify path Medium golang, python
413. Arithmetic slices Medium golang
21. Merge two sorted lists Easy golang
141. Linked list cycle Easy golang
344. Reverse string Easy golang
680. Valid palindrome ii Easy golang
1791. Find center of star graph Easy golang
797. All paths from source to target Medium golang
31. Next permutation Medium golang
1920. Build array from permutation Easy golang
1929. Concatenation of array Easy golang
1721. Swapping nodes in a linked list Medium golang
11. Container with most water Medium golang
923. 3sum with multiplicity Medium golang
1046. Last stone weight Easy golang, python
146. Lru cache Medium golang
703. Kth largest element in a stream Easy golang
460. Lfu cache Hard golang
1480. Running sum of 1d array Easy golang
1672. Richest customer wealth Easy golang
2011. Final value of variable after performing operations Easy golang
2114. Maximum number of words found in sentences Easy golang
1108. Defanging an ip address Easy golang
1476. Subrectangle queries Medium golang
347. Top k frequent elements Medium golang
17. Letter combinations of a phone number Medium golang
682. Baseball game Easy golang
980. Unique paths iii Hard golang, python
1603. Design parking system Easy golang
1260. Shift 2d grid Easy golang
289. Game of life Medium golang
59. Spiral matrix ii Medium golang
1557. Minimum number of vertices to reach all nodes Medium golang
700. Search in a binary search tree Easy golang
669. Trim a binary search tree Medium golang
538. Convert bst to greater tree Medium golang
2236. Root equals sum of children Easy golang
2235. Add two integers Easy golang
1470. Shuffle the array Easy golang
912. Sort an array Medium golang
897. Increasing order search tree Easy golang
230. Kth smallest element in a bst Medium golang
1769. Minimum number of operations to move all balls to each box Medium golang
1137. N th tribonacci number Easy golang
139. Word break Medium golang
509. Fibonacci number Easy golang
1614. Maximum nesting depth of the parentheses Easy golang
99. Recover binary search tree Medium golang
173. Binary search tree iterator Medium golang
69. Sqrtx Easy golang
7. Reverse integer Medium golang
18. 4sum Medium golang
695. Max area of island Medium golang
153. Find minimum in rotated sorted array Medium golang
705. Design hashset Easy golang
706. Design hashmap Easy golang
535. Encode and decode tinyurl Medium golang
187. Repeated dna sequences Medium golang
6. Zigzag conversion Medium golang
5. Longest palindromic substring Medium golang
2181. Merge nodes in between zeros Medium golang
1396. Design underground system Medium golang
23. Merge k sorted lists Hard golang
16. 3sum closest Medium golang
2248. Intersection of multiple arrays Easy golang
2249. Count lattice points inside a circle Medium golang
284. Peeking iterator Medium golang
19. Remove nth node from end of list Medium golang
22. Generate parentheses Medium golang
24. Swap nodes in pairs Medium golang
1584. Min cost to connect all points Medium golang
46. Permutations Medium golang
39. Combination sum Medium golang
34. Find first and last position of element in sorted array Medium golang
1202. Smallest string with swaps Medium golang
128. Longest consecutive sequence Medium golang
547. Number of provinces Medium golang, python
200. Number of islands Medium golang
104. Maximum depth of binary tree Easy golang
1631. Path with minimum effort Medium golang
1512. Number of good pairs Easy golang
1431. Kids with the greatest number of candies Easy golang
1281. Subtract the product and sum of digits of an integer Easy golang
1155. Number of dice rolls with target sum Medium golang
785. Is graph bipartite Medium golang
1573. Number of ways to split a string Medium golang
399. Evaluate division Medium golang
844. Backspace string compare Easy golang
2255. Count prefixes of a given string Easy golang
2256. Minimum average difference Medium golang
2259. Remove digit from number to maximize result Easy golang
2260. Minimum consecutive cards to pick up Medium golang
48. Rotate image Medium golang
905. Sort array by parity Easy golang
581. Shortest unsorted continuous subarray Medium golang
1679. Max number of k sum pairs Medium golang
225. Implement stack using queues Easy golang
27. Remove element Easy golang
1209. Remove all adjacent duplicates in string ii Medium golang
456. 132 pattern Medium golang
409. Longest palindrome Easy golang
561. Array partition i Easy golang
341. Flatten nested list iterator Medium golang
216. Combination sum iii Medium golang
47. Permutations ii Medium golang
1641. Count sorted vowel strings Medium golang
117. Populating next right pointers in each node ii Medium golang
1302. Deepest leaves sum Medium golang
191. Number of 1 bits Easy golang
1342. Number of steps to reduce a number to zero Easy golang
268. Missing number Easy golang
318. Maximum product of word lengths Medium golang
29. Divide two integers Medium golang
1461. Check if a string contains all binary codes of size k Medium golang
867. Transpose matrix Easy golang
304. Range sum query 2d immutable Medium golang
160. Intersection of two linked lists Easy golang
88. Merge sorted array Easy golang
1332. Remove palindromic subsequences Easy golang
51. N queens Hard golang
52. N queens ii Hard golang
167. Two sum ii input array is sorted Medium golang
1695. Maximum erasure value Medium golang
120. Triangle Medium golang
583. Delete operation for two strings Medium golang
1048. Longest string chain Medium golang
242. Valid anagram Easy golang
62. Unique paths Medium golang
378. Kth smallest element in a sorted matrix Medium golang
729. My calendar i Medium golang
858. Mirror reflection Medium golang
377. Combination sum iv Medium golang
458. Poor pigs Hard golang
300. Longest increasing subsequence Medium golang
1220. Count vowels permutation Hard golang
823. Binary trees with factors Medium golang
108. Convert sorted array to binary search tree Easy golang
98. Validate binary search tree Medium golang
235. Lowest common ancestor of a binary search tree Easy golang
387. First unique character in a string Easy golang
804. Unique morse code words Easy golang
1338. Reduce array size to the half Medium golang
659. Split array into consecutive subsequences Medium golang
342. Power of four Easy golang
234. Palindrome linked list Easy golang
326. Power of three Easy golang
383. Ransom note Easy golang
869. Reordered power of 2 Medium golang
2379. Minimum recolors to get k consecutive black blocks Easy golang
2380. Time needed to rearrange a binary string Medium golang
2381. Shifting letters ii Medium golang
126. Word ladder ii Hard golang
363. Max sum of rectangle no larger than k Hard golang
1578. Minimum time to make rope colorful Medium golang
91. Decode ways Medium golang
112. Path sum Easy golang
623. Add one row to tree Medium golang
981. Time based key value store Medium golang
732. My calendar iii Hard golang
653. Two sum iv input is a bst Easy golang
1328. Break a palindrome Medium golang
334. Increasing triplet subsequence Medium golang
121. Best time to buy and sell stock Easy golang
125. Valid palindrome Easy golang
226. Invert binary tree Easy golang
704. Binary search Easy golang
733. Flood fill Easy golang
976. Largest perimeter triangle Easy golang
237. Delete node in a linked list Medium golang
2095. Delete the middle node of a linked list Medium golang
1531. String compression ii Hard golang
110. Balanced binary tree Easy golang
232. Implement queue using stacks Easy golang
278. First bad version Easy golang
206. Reverse linked list Easy golang
169. Majority element Easy golang
67. Add binary Easy golang
1832. Check if the sentence is pangram Easy golang
543. Diameter of binary tree Easy golang
876. Middle of the linked list Easy golang
217. Contains duplicate Easy golang
38. Count and say Medium golang
542. 01 matrix Medium golang
57. Insert interval Medium golang
692. Top k frequent words Medium golang
12. Integer to roman Medium golang
973. K closest points to origin Medium golang
433. Minimum genetic mutation Medium golang
2131. Longest palindrome by concatenating two letter words Medium golang
345. Reverse vowels of a string Easy golang
212. Word search ii Hard golang
899. Orderly queue Hard golang
208. Implement trie prefix tree Medium golang
211. Design add and search words data structure Medium golang
1323. Maximum 69 number Easy golang
102. Binary tree level order traversal Medium golang
133. Clone graph Medium golang
150. Evaluate reverse polish notation Medium golang
207. Course schedule Medium golang
1544. Make the string great Easy golang
322. Coin change Medium golang
238. Product of array except self Medium golang
155. Min stack Medium golang
994. Rotting oranges Medium golang
901. Online stock span Medium golang
1047. Remove all adjacent duplicates in string Easy golang
26. Remove duplicates from sorted array Easy golang
151. Reverse words in a string Medium golang
947. Most stones removed with same row or column Medium golang, python
222. Count complete tree nodes Medium golang
56. Merge intervals Medium golang
374. Guess number higher or lower Easy golang
236. Lowest common ancestor of a binary tree Medium golang
721. Accounts merge Medium golang
223. Rectangle area Medium golang
416. Partition equal subset sum Medium golang
263. Ugly number Easy golang
2395. Find subarrays with equal sum Easy golang
224. Basic calculator Hard golang
279. Perfect squares Medium golang
2475. Number of unequal triplets in array Easy golang
2476. Closest nodes queries in a binary search tree Medium golang
79. Word search Medium golang
907. Sum of subarray minimums Medium golang
2485. Find the pivot integer Easy golang
2486. Append characters to string to make subsequence Medium golang
2487. Remove nodes from linked list Medium golang
2225. Find players with zero or one losses Medium golang
587. Erect the fence Hard golang
380. Insert delete getrandom o1 Medium golang
1207. Unique number of occurrences Easy golang
1704. Determine if string halves are alike Easy golang
1657. Determine if two strings are close Medium golang
451. Sort characters by frequency Medium golang
1752. Check if array is sorted and rotated Easy golang
35. Search insert position Easy golang
58. Length of last word Easy golang
66. Plus one Easy golang
83. Remove duplicates from sorted list Easy golang
94. Binary tree inorder traversal Easy golang
100. Same tree Easy golang
101. Symmetric tree Easy golang
111. Minimum depth of binary tree Easy golang
119. Pascals triangle ii Easy golang
136. Single number Easy golang
144. Binary tree preorder traversal Easy golang
145. Binary tree postorder traversal Easy golang
168. Excel sheet column title Easy golang
171. Excel sheet column number Easy golang
190. Reverse bits Easy golang
202. Happy number Easy golang
203. Remove linked list elements Easy golang
205. Isomorphic strings Easy golang
228. Summary ranges Easy golang
258. Add digits Easy golang, python
328. Odd even linked list Medium golang
938. Range sum of bst Easy golang
1689. Partitioning into minimum number of deci binary numbers Medium golang
1828. Queries on number of points inside a circle Medium golang
807. Max increase to keep city skyline Medium golang
40. Combination sum ii Medium golang
2490. Circular sentence Easy golang
2491. Divide players into teams of equal skill Medium golang
2492. Minimum score of a path between two cities Medium golang
872. Leaf similar trees Easy golang
1026. Maximum difference between node and ancestor Medium golang
1339. Maximum product of splitted binary tree Medium golang
2496. Maximum value of a string in an array Easy golang
2497. Maximum star sum of a graph Medium golang
2498. Frog jump ii Medium golang
124. Binary tree maximum path sum Hard golang
931. Minimum falling path sum Medium golang
198. House robber Medium golang
231. Power of two Easy golang
257. Binary tree paths Easy golang
283. Move zeroes Easy golang
290. Word pattern Easy golang
1143. Longest common subsequence Medium golang
1971. Find if path exists in graph Easy golang
841. Keys and rooms Medium golang
309. Best time to buy and sell stock with cooldown Medium golang
790. Domino and tromino tiling Medium golang
55. Jump game Medium golang
2389. Longest subsequence with limited sum Easy golang
2279. Maximum bags with full capacity of rocks Medium golang
1962. Remove stones to minimize the total Medium golang
520. Detect capital Easy golang
944. Delete columns to make sorted Easy golang
2244. Minimum rounds to complete all tasks Medium golang
452. Minimum number of arrows to burst balloons Medium golang
1833. Maximum ice cream bars Medium golang
134. Gas station Medium golang
1519. Number of nodes in the sub tree with the same label Medium golang
1061. Lexicographically smallest equivalent string Medium golang
1071. Greatest common divisor of strings Easy golang
953. Verifying an alien dictionary Easy golang
567. Permutation in string Medium golang
438. Find all anagrams in a string Medium golang
904. Fruit into baskets Medium golang
45. Jump game ii Medium golang
54. Spiral matrix Medium golang
78. Subsets Medium golang
199. Binary tree right side view Medium golang
2306. Naming a company Hard golang
1162. As far from land as possible Medium golang
1129. Shortest path with alternating colors Medium golang
2565. Subsequence with the minimum score Hard golang
2562. Find the array concatenation value Easy golang
2563. Count the number of fair pairs Medium golang
2564. Substring xor queries Medium golang
2477. Minimum fuel cost to report to the capital Medium golang
1523. Count odd numbers in an interval range Easy golang
349. Intersection of two arrays Easy golang
350. Intersection of two arrays ii Easy golang
367. Valid perfect square Easy golang
389. Find the difference Easy golang
404. Sum of left leaves Easy golang
405. Convert a number to hexadecimal Easy golang
412. Fizz buzz Easy golang
414. Third maximum number Easy golang
415. Add strings Easy golang
434. Number of segments in a string Easy golang
441. Arranging coins Easy golang
448. Find all numbers disappeared in an array Easy golang
68. Text justification Hard golang
989. Add to array form of integer Easy golang
783. Minimum distance between bst nodes Easy golang
2566. Maximum difference by remapping a digit Easy golang
2567. Minimum score by changing two elements Medium golang
2568. Minimum impossible or Medium golang
2570. Merge two 2d arrays by summing values Easy golang
2571. Minimum operations to reduce an integer to 0 Medium golang
103. Binary tree zigzag level order traversal Medium golang
540. Single element in a sorted array Medium golang
1011. Capacity to ship packages within d days Medium golang
502. Ipo Hard golang
1675. Minimize deviation in array Hard golang
2574. Left and right sum differences Easy golang
72. Edit distance Hard golang
427. Construct quad tree Medium golang
2558. Take gifts from the richest pile Easy golang
2553. Separate the digits in an array Easy golang
2549. Count distinct numbers on board Easy golang
2544. Alternating digit sum Easy golang
652. Find duplicate subtrees Medium golang
718. Maximum length of repeated subarray Medium golang
443. String compression Medium golang
2554. Maximum number of integers to choose from a range i Medium golang
2555. Maximize win from two segments Medium golang
2444. Count subarrays with fixed bounds Hard golang
2578. Split with minimum sum Easy golang
2579. Count total number of colored cells Medium golang
2580. Count ways to group overlapping ranges Medium golang
1345. Jump game iv Hard golang
1539. Kth missing positive number Easy golang
875. Koko eating bananas Medium golang
2187. Minimum time to complete trips Medium golang
724. Find pivot index Easy golang
74. Search a 2d matrix Medium golang
240. Search a 2d matrix ii Medium golang
142. Linked list cycle ii Medium golang
382. Linked list random node Medium golang
109. Convert sorted list to binary search tree Medium golang
1122. Relative sort array Easy golang
589. N ary tree preorder traversal Easy golang
386. Lexicographical numbers Medium golang
1051. Height checker Easy golang
129. Sum root to leaf numbers Medium golang
958. Check completeness of a binary tree Medium golang
49. Group anagrams Medium golang
50. Powx n Medium golang
106. Construct binary tree from inorder and postorder traversal Medium golang
73. Set matrix zeroes Medium golang
105. Construct binary tree from preorder and inorder traversal Medium golang
116. Populating next right pointers in each node Medium golang
122. Best time to buy and sell stock ii Medium golang
130. Surrounded regions Medium golang
1472. Design browser history Medium golang
746. Min cost climbing stairs Easy golang
2591. Distribute money to maximum children Easy golang
2592. Maximize greatness of an array Medium golang
2594. Minimum time to repair cars Medium golang
605. Can place flowers Easy golang
2348. Number of zero filled subarrays Medium python
292. Nim game Easy golang
303. Range sum query immutable Easy golang
461. Hamming distance Easy golang
455. Assign cookies Easy golang
1319. Number of operations to make network connected Medium golang
1466. Reorder routes to make all paths lead to the city zero Medium golang
2316. Count unreachable pairs of nodes in an undirected graph Medium golang
2360. Longest cycle in a graph Hard golang
64. Minimum path sum Medium golang
983. Minimum cost for tickets Medium golang
1402. Reducing dishes Hard golang
87. Scramble string Hard golang
2605. Form smallest number from two digit arrays Easy golang
2606. Find the substring with maximum cost Medium golang
2300. Successful pairs of spells and potions Medium golang
881. Boats to save people Medium golang
771. Jewels and stones Easy python, golang
2405. Optimal partition of string Medium python
1020. Number of enclaves Medium python
2390. Removing stars from a string Medium python
2336. Smallest number in infinite set Medium python
319. Bulb switcher Medium python
1491. Average salary excluding the minimum and maximum salary Easy golang
1822. Sign of the product of an array Easy golang
2215. Find the difference of two arrays Easy golang
1456. Maximum number of vowels in a substring of given length Medium python
1964. Find the longest valid obstacle course at each position Hard golang
1572. Matrix diagonal sum Easy python
2130. Maximum twin sum of a linked list Medium golang
2542. Maximum subsequence score Medium golang
2101. Detonate the maximum bombs Medium golang
1376. Time needed to inform all employees Medium golang
1232. Check if it is a straight line Easy golang
1502. Can make arithmetic progression from sequence Easy golang
1318. Minimum flips to make a or b equal to c Medium golang
1351. Count negative numbers in a sorted matrix Easy golang
137. Single number ii Medium golang
1493. Longest subarray of 1s after deleting one element Medium golang
209. Minimum size subarray sum Medium golang
2024. Maximize the confusion of an exam Medium golang
2272. Substring with largest variance Hard golang
735. Asteroid collision Medium golang
77. Combinations Medium golang
215. Kth largest element in an array Medium golang
2833. Furthest point from origin Easy golang
2828. Check if a string is an acronym of words Easy golang
2824. Count pairs whose sum is less than target Easy golang
2815. Max pair sum in an array Easy golang
2810. Faulty keyboard Easy golang
2707. Extra characters in a string Medium golang
2839. Check if strings can be made equal with operations i Easy golang
92. Reverse linked list ii Medium golang
1282. Group the people given the group size they belong to Medium golang
135. Candy Hard golang
847. Shortest path visiting all nodes Hard golang
779. K th symbol in grammar Medium golang
2706. Buy two chocolates Easy golang
1637. Widest vertical area between two points containing no points Medium golang
2610. Convert an array into a 2d array with conditions Medium golang
709. To lower case Easy golang
717. 1 bit and 2 bit characters Easy golang
3019. Number of changing keys Easy golang
3005. Count elements with maximum frequency Easy golang
2974. Minimum number game Easy golang
3014. Minimum number of pushes to type word i Easy golang
3010. Divide an array into subarrays with minimum cost i Easy golang
2970. Count the number of incremovable subarrays i Easy golang
2966. Divide array into arrays with max difference Medium golang
3024. Type of triangle ii Easy golang
3028. Ant on the boundary Easy golang
2960. Count tested devices after test operations Easy golang
2997. Minimum number of operations to make array xor equal to k Medium golang
3016. Minimum number of pushes to type word ii Medium golang
2947. Count beautiful substrings i Medium golang
728. Self dividing numbers Easy golang
744. Find smallest letter greater than target Easy golang
766. Toeplitz matrix Easy golang
999. Available captures for rook Easy golang
1252. Cells with odd values in a matrix Easy golang
1217. Minimum cost to move chips to the same position Easy golang
1221. Split a string in balanced strings Easy golang
368. Largest divisible subset Medium golang
1463. Cherry pickup ii Hard golang
1299. Replace elements with greatest element on right side Easy golang
1295. Find numbers with even number of digits Easy golang
1290. Convert binary number in a linked list to integer Easy golang
2108. Find first palindromic string in the array Easy golang
43. Multiply strings Medium golang
2149. Rearrange array elements by sign Medium golang
2971. Find polygon with the largest perimeter Medium golang
1481. Least number of unique integers after k removals Medium golang
948. Bag of tokens Medium golang
1750. Minimum length of string after deleting similar ends Medium golang
2540. Minimum common value Easy golang
621. Task scheduler Medium golang
2958. Length of longest subarray with at most k frequency Medium golang
2962. Count subarrays where max element appears at least k times Medium golang
678. Valid parenthesis string Medium golang
1700. Number of students unable to eat lunch Easy golang
2073. Time needed to buy tickets Easy golang
950. Reveal cards in increasing order Medium golang
402. Remove k digits Medium golang
42. Trapping rain water Hard golang
988. Smallest string starting from leaf Medium golang
2000. Reverse prefix of word Easy golang
2441. Largest positive integer that exists with its negative Easy golang
165. Compare version numbers Medium golang
2807. Insert greatest common divisors in linked list Medium golang
2265. Count nodes equal to average of subtree Medium golang
1038. Binary search tree to greater sum tree Medium golang
2816. Double a number represented as a linked list Medium golang
506. Relative ranks Easy golang
3075. Maximize happiness of selected children Medium golang
786. K th smallest prime fraction Medium golang
857. Minimum cost to hire k workers Hard golang
2373. Largest local values in a matrix Easy golang
861. Score after flipping matrix Medium golang
1219. Path with maximum gold Medium golang
2733. Neither minimum nor maximum Easy golang
2331. Evaluate boolean binary tree Easy golang
1325. Delete leaves with a given value Medium golang
3068. Find the maximum sum of node values Hard golang
1863. Sum of all subset xor totals Easy golang
131. Palindrome partitioning Medium golang
2597. The number of beautiful subsets Medium golang
1255. Maximum score words formed by letters Hard golang
1608. Special array with x elements greater than or equal x Easy golang
1208. Get equal substrings within budget Medium golang
1404. Number of steps to reduce a number in binary representation to one Medium golang
1442. Count triplets that can form two arrays of equal xor Medium golang
260. Single number iii Medium golang
3110. Score of a string Easy golang
1002. Find common characters Easy golang
846. Hand of straights Medium golang
1296. Divide array in sets of k consecutive numbers Medium golang
648. Replace words Medium golang
330. Patching array Hard golang
633. Sum of square numbers Medium golang
826. Most profit assigning work Medium golang
2037. Minimum number of moves to seat everyone Easy golang
1482. Minimum number of days to make m bouquets Medium golang
1052. Grumpy bookstore owner Medium golang
1438. Longest continuous subarray with absolute diff less than or equal to limit Medium golang
995. Minimum number of k consecutive bit flips Hard golang
1382. Balance a binary search tree Medium golang
2285. Maximum total importance of roads Medium golang
1550. Three consecutive odds Easy golang
1509. Minimum difference between largest and smallest value in three moves Medium golang
2058. Find the minimum and maximum number of nodes between critical points Medium golang
2582. Pass the pillow Easy golang
1518. Water bottles Easy golang
1823. Find the winner of the circular game Medium golang
1701. Average waiting time Medium golang
1598. Crawler log folder Easy golang
1190. Reverse substrings between each pair of parentheses Medium golang
1110. Delete nodes and return forest Medium golang
1530. Number of good leaf nodes pairs Medium golang
2418. Sort the people Easy golang
1636. Sort array by increasing frequency Easy golang
2191. Sort the jumbled numbers Medium golang
2976. Minimum cost to convert string i Medium golang
1653. Minimum deletions to make string balanced Medium golang
2678. Number of senior citizens Easy golang
1460. Make two arrays equal by reversing subarrays Easy golang
1508. Range sum of sorted subarray sums Medium golang
2053. Kth distinct string in an array Easy golang
2396. Strictly palindromic number Medium golang
840. Magic squares in grid Medium golang
650. 2 keys keyboard Medium golang
664. Strange printer Hard golang
476. Number complement Easy golang
1009. Complement of base 10 integer Easy golang
592. Fraction addition and subtraction Medium golang
965. Univalued binary tree Easy golang
993. Cousins in binary tree Easy golang
114. Flatten binary tree to linked list Medium golang
590. N ary tree postorder traversal Easy golang
1514. Path with maximum probability Medium golang
1905. Count sub islands Medium golang
748. Shortest completing word Easy golang
821. Shortest distance to a character Easy golang
725. Split linked list in parts Medium golang
1684. Count the number of consistent strings Easy golang
731. My calendar ii Medium golang
641. Design circular deque Medium golang
1381. Design a stack with increment operation Medium golang
1497. Check if array pairs are divisible by k Medium golang
1331. Rank transform of an array Easy golang
1590. Make sum divisible by p Medium golang
1813. Sentence similarity iii Medium golang
2696. Minimum string length after removing substrings Easy golang
1963. Minimum number of swaps to make the string balanced Medium golang
921. Minimum add to make parentheses valid Medium golang
670. Maximum swap Medium golang
3163. String compression iii Medium golang
2914. Minimum number of changes to make binary string beautiful Medium golang
3011. Find if array can be sorted Medium golang
2275. Largest combination with bitwise and greater than zero Medium golang
1829. Maximum xor for each query Medium golang
3133. Minimum array end Medium golang

adventofcode/2022

image

Day Solution
Day 1 golang
Day 2 golang
Day 3 golang
Day 4 golang
Day 5 golang
Day 6 golang
Day 7 python3
Day 8 golang
Day 9 python3
Day 10 python3
Day 11 python3
Day 12 golang
Day 13 python3
Day 14 golang
Day 15 python3

adventofcode/2023

Day Solution
Day 1 rust

codeforces

Problems solved in total: 99

Solutions by difficulty Solutions by tags
by_difficulty by_tags
Problem Difficulty Solution
112A. Petya and Strings 800 python
158A. Next Round 800 python
231A. Team 800 python
236A. Boy or Girl 800 python
263A. Beautiful Matrix 800 python
266A. Stones on the Table 800 python
281A. Word Capitalization 800 python
282A. Bit++ 800 python
339A. Helpful Maths 800 python
4A. Watermelon 800 python
50A. Domino piling 800 python
546A. Soldier and Bananas 800 python
71A. Way Too Long Words 800 python
133A. HQ9+ 900 python
160A. Twins 900 python
318A. Even Odds 900 python
580A. Kefa and First Steps 900 python
96A. Football 900 python
118A. String Task 1000 python
122A. Lucky Division 1000 python
1A. Theatre Square 1000 python
58A. Chat room 1000 python
69A. Young Physicist 1000 python
1669A. Division? 800 golang
1660B. Vlad and Candies 800 golang
1674A. Number Transformation 800 golang
1674B. Dictionary 800 golang
1674C. Infinite Replacement 1000 golang
1674D. A-B-C Sort 800 golang
1692A. Marathon 800 golang
1692B. All Distinct 800 golang
1692C. Where's the Bishop? 800 golang
1692D. The Clock 1100 golang
1692F. 3SUM 1300 golang
1714A. Everyone Loves to Sleep 900 golang
1714B. Remove Prefix 800 golang
1714C. Minimum Varied Number 800 golang
1714E. Add Modulo 10 1400 golang
1729A. Two Elevators 800 golang
1729B. Decode String 800 golang
1729C. Jumping on Tiles 1100 golang
1703A. YES or YES? 800 golang
1703B. ICPC Balloons 800 golang
1741A. Compare T-Shirt Sizes 800 golang
1741B. Funny Permutation 800 golang
1741C. Minimize the Thickness 1100 golang
1741D. Masha and a Beautiful Tree 1300 golang
1744A. Number Replacement 800 golang
1744B. Even-Odd Increments 800 golang
1744C. Traffic Light 1000 golang
1744D. Divisibility by 2^n 1200 golang
1741E. Sending a Sequence Over the Network 1600 golang
1749A. Cowardly Rooks 800 golang
1749B. Death's Blessing 900 golang
1747A. Two Groups 800 golang
1747B. BAN BAN 900 golang
1747C. Swap Game 1200 golang
1760A. Medium Number 800 golang
1760B. Atilla's Favorite Problem 800 golang
1760C. Advantage 800 golang
1760D. Challenging Valleys 1000 golang
1760E. Binary Inversions 1100 golang
1760F. Quests 1500 golang
1676A. Lucky? 800 golang
1676B. Equal Candies 800 golang
1676C. Most Similar Words 800 golang
1676D. X-Sum 1000 golang
1760G. SlavicG's Favorite Problem 1700 golang
1690D. Black and White Stripe 1000 golang
1766A. Extremely Round 800 golang
1766B. Notepad# 1000 golang
1766C. Hamiltonian Wall 1300 golang
1772A. A+B? 800 golang
1772B. Matrix Rotation 800 golang
1772C. Different Differences 1000 golang
1772D. Absolute Sorting 1400 golang
1772E. Permutation Game 1700 golang
1791A. Codeforces Checking 800 golang
1791B. Following Directions 800 golang
1791C. Prepend and Append 800 golang
1791D. Distinct Split 1000 golang
1791E. Negatives and Positives 1100 golang
1800A. Is It a Cat? 800 golang
1800B. Count the Number of Pairs 1000 golang
1800C1. Powering the Hero (easy version) 1000 golang
1800C2. Powering the Hero (hard version) 1100 golang
1800D. Remove Two Letters 1200 golang
1800E1. Unforgivable Curse (easy version) 1400 golang
1800E2. Unforgivable Curse (hard version) 1500 golang
1794A. Prefix and Suffix Array 800 golang
1794B. Not Dividing 900 golang
1794C. Scoring Subsequences 1300 golang
1804A. Lame King 800 golang
1804B. Vaccination 1000 golang
1798A. Showstopper 800 golang
1798B. Three Sevens 1000 golang
1798D. Shocking Arrangement 1600 golang
1812A. Are You a Robot? golang
1812B. Was it Rated? golang

acm.timus

Problem Solution Difficulty Tags University course module
1005. Stone Pile c++ 84 problem for beginners 1
1155. Troubleduons c++ 305 none 1
1296. Hyperjump c++ 80 none 1
1401. Gamers c++ 321 none 1
2025. Line Fighting c++ 77 none 1
1207. Median on the Plane c++ 177 geometry 2
1322. Spy c++ 324 none 2
1444. Elephpotamus c++ 639 geometry 2
1604. Country of Fools c++ 220 none 2
1726. Visits c++ 197 none 2
1067. Disk Tree c++ 486 data structures 3
1494. Monobilliards c++ 131 data structures 3
1521. War Games 2 c++ 192 data structures 3
1628. White Streaks c++ 293 data structures 3
1650. Billionaires c++ 339 data structures 3
1080. Map Coloring c++ 229 graph theory 4
1160. Network c++ 226 graph theory 4
1162. Currency Exchange c++ 342 graph theory 4
1450. Russian Pipelines c++ 225 graph theory 4
1806. Mobile Telegraphs c++ 402 graph theory 4