Categorygithub.com/dimaglushkov/solutions
repository
0.0.0-20241212170140-221d7fefec4b
Repository: https://github.com/dimaglushkov/solutions.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

solutions

This repo stores my problem-solving related code

leetcode: @dimaglushkov
codeforces: @dimaglushkov

Table of Contents

1. tools
2. contests
3. leetcode
4. adventofcode/2024
5. adventofcode/2022
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
NameRankSolutionsDate
Leetcode Weekly Contest 2904827 / 19491solutions24 apr 2022
Leetcode Biweekly Contest 776802 / 15519solutions30 apr 2022
Leetcode Weekly Contest 2916157 / 19223solutions1 may 2022
Codeforces Round #790 (Div. 4)7449 / 17743solutions10 may 2022
Codeforces Round #799 (Div. 4)3515 / 20701solutions14 jun 2022
Codeforces Round #811 (Div. 3)3021 / 15748solutions1 aug 2022
Leetcode Biweekly Contest 852962 / 23603solutions20 aug 2022
Codeforces Round #820 (Div. 3)4833 / 18417solutions13 sep 2022
Codeforces Round #826 (Div. 3)3102 / 17198solutions11 oct 2022
Codeforces Round #828 (Div. 3)2398 / 14451solutions16 oct 2022
Codeforces Round #832 (Div. 2)3690 / 13689solutions4 nov 2022
Leetcode Weekly Contest 3207599 / 20861solutions20 nov 2022
Codeforces Round #835 (Div. 4)702 / 19245solutions22 nov 2022
Leetcode Weekly Contest 3216122 / 17826solutions27 nov 2022
Leetcode Weekly Contest 3222403 / 19626solutions4 dec 2022
Leetcode Biweekly Contest 933107 / 17080solutions10 dec 2022
Educational Codeforces Round 139 (Rated for Div. 2)2805 / 13189solutions12 dec 2022
Codeforces Round #839 (Div. 3)722 / 8714solutions18 dec 2022
Leetcode Weekly Contest 3321633 / 24102solutions12 feb 2023
Leetcode Biweekly Contest 983761 / 22683solutions18 feb 2023
Leetcode Weekly Contest 3336411 / 21701solutions19 feb 2023
Codeforces Round #855 (Div. 3)833 / 10200solutions2 mar 2023
Leetcode Biweekly Contest 994577 / 21264solutions4 mar 2023
Codeforces Round 856 (Div. 2)2389 / 8430solutions4 mar 2023
Leetcode Biweekly Contest 1002856 / 22847solutions18 mar 2023
Codeforces Round 860 (Div. 2)1103 / 8764solutions26 mar 2023
Leetcode Biweekly Contest 1014291 / 22282solutions1 apr 2023

leetcode

Problems solved in total: 608

Solutions by difficultySolutions by tags
by_difficultyby_tags
ProblemDifficultySolution
1. Two sumEasygolang, python
9. Palindrome numberEasygolang
2. Add two numbersMediumgolang
3. Longest substring without repeating charactersMediumgolang
4. Median of two sorted arraysHardgolang
14. Longest common prefixEasygolang
13. Roman to integerEasygolang
28. Implement strstrEasygolang
459. Repeated substring patternEasygolang
37. Sudoku solverHardgolang
36. Valid sudokuMediumgolang
8. String to integer atoiMediumgolang
2042. Check if numbers are ascending in a sentenceEasygolang
53. Maximum subarrayEasygolang
192. Word frequencyMediumbash
338. Counting bitsEasygolang
33. Search in rotated sorted arrayMediumgolang
70. Climbing stairsEasygolang
118. Pascals triangleEasygolang
75. Sort colorsMediumgolang
15. 3sumMediumgolang
392. Is subsequenceEasygolang
20. Valid parenthesesEasygolang, python
71. Simplify pathMediumgolang, python
413. Arithmetic slicesMediumgolang
21. Merge two sorted listsEasygolang
141. Linked list cycleEasygolang
344. Reverse stringEasygolang
680. Valid palindrome iiEasygolang
1791. Find center of star graphEasygolang
797. All paths from source to targetMediumgolang
31. Next permutationMediumgolang
1920. Build array from permutationEasygolang
1929. Concatenation of arrayEasygolang
1721. Swapping nodes in a linked listMediumgolang
11. Container with most waterMediumgolang
923. 3sum with multiplicityMediumgolang
1046. Last stone weightEasygolang, python
146. Lru cacheMediumgolang
703. Kth largest element in a streamEasygolang
460. Lfu cacheHardgolang
1480. Running sum of 1d arrayEasygolang
1672. Richest customer wealthEasygolang
2011. Final value of variable after performing operationsEasygolang
2114. Maximum number of words found in sentencesEasygolang
1108. Defanging an ip addressEasygolang
1476. Subrectangle queriesMediumgolang
347. Top k frequent elementsMediumgolang
17. Letter combinations of a phone numberMediumgolang
682. Baseball gameEasygolang
980. Unique paths iiiHardgolang, python
1603. Design parking systemEasygolang
1260. Shift 2d gridEasygolang
289. Game of lifeMediumgolang
59. Spiral matrix iiMediumgolang
1557. Minimum number of vertices to reach all nodesMediumgolang
700. Search in a binary search treeEasygolang
669. Trim a binary search treeMediumgolang
538. Convert bst to greater treeMediumgolang
2236. Root equals sum of childrenEasygolang
2235. Add two integersEasygolang
1470. Shuffle the arrayEasygolang
912. Sort an arrayMediumgolang
897. Increasing order search treeEasygolang
230. Kth smallest element in a bstMediumgolang
1769. Minimum number of operations to move all balls to each boxMediumgolang
1137. N th tribonacci numberEasygolang
139. Word breakMediumgolang
509. Fibonacci numberEasygolang
1614. Maximum nesting depth of the parenthesesEasygolang
99. Recover binary search treeMediumgolang
173. Binary search tree iteratorMediumgolang
69. SqrtxEasygolang
7. Reverse integerMediumgolang
18. 4sumMediumgolang
695. Max area of islandMediumgolang
153. Find minimum in rotated sorted arrayMediumgolang
705. Design hashsetEasygolang
706. Design hashmapEasygolang
535. Encode and decode tinyurlMediumgolang
187. Repeated dna sequencesMediumgolang
6. Zigzag conversionMediumgolang
5. Longest palindromic substringMediumgolang
2181. Merge nodes in between zerosMediumgolang
1396. Design underground systemMediumgolang
23. Merge k sorted listsHardgolang
16. 3sum closestMediumgolang
2248. Intersection of multiple arraysEasygolang
2249. Count lattice points inside a circleMediumgolang
284. Peeking iteratorMediumgolang
19. Remove nth node from end of listMediumgolang
22. Generate parenthesesMediumgolang
24. Swap nodes in pairsMediumgolang
1584. Min cost to connect all pointsMediumgolang
46. PermutationsMediumgolang
39. Combination sumMediumgolang
34. Find first and last position of element in sorted arrayMediumgolang
1202. Smallest string with swapsMediumgolang
128. Longest consecutive sequenceMediumgolang
547. Number of provincesMediumgolang, python
200. Number of islandsMediumgolang
104. Maximum depth of binary treeEasygolang
1631. Path with minimum effortMediumgolang
1512. Number of good pairsEasygolang
1431. Kids with the greatest number of candiesEasygolang
1281. Subtract the product and sum of digits of an integerEasygolang
1155. Number of dice rolls with target sumMediumgolang
785. Is graph bipartiteMediumgolang
1573. Number of ways to split a stringMediumgolang
399. Evaluate divisionMediumgolang
844. Backspace string compareEasygolang
2255. Count prefixes of a given stringEasygolang
2256. Minimum average differenceMediumgolang
2259. Remove digit from number to maximize resultEasygolang
2260. Minimum consecutive cards to pick upMediumgolang
48. Rotate imageMediumgolang
905. Sort array by parityEasygolang
581. Shortest unsorted continuous subarrayMediumgolang
1679. Max number of k sum pairsMediumgolang
225. Implement stack using queuesEasygolang
27. Remove elementEasygolang
1209. Remove all adjacent duplicates in string iiMediumgolang
456. 132 patternMediumgolang
409. Longest palindromeEasygolang
561. Array partition iEasygolang
341. Flatten nested list iteratorMediumgolang
216. Combination sum iiiMediumgolang
47. Permutations iiMediumgolang
1641. Count sorted vowel stringsMediumgolang
117. Populating next right pointers in each node iiMediumgolang
1302. Deepest leaves sumMediumgolang
191. Number of 1 bitsEasygolang
1342. Number of steps to reduce a number to zeroEasygolang
268. Missing numberEasygolang
318. Maximum product of word lengthsMediumgolang
29. Divide two integersMediumgolang
1461. Check if a string contains all binary codes of size kMediumgolang
867. Transpose matrixEasygolang
304. Range sum query 2d immutableMediumgolang
160. Intersection of two linked listsEasygolang
88. Merge sorted arrayEasygolang
1332. Remove palindromic subsequencesEasygolang
51. N queensHardgolang
52. N queens iiHardgolang
167. Two sum ii input array is sortedMediumgolang
1695. Maximum erasure valueMediumgolang
120. TriangleMediumgolang
583. Delete operation for two stringsMediumgolang
1048. Longest string chainMediumgolang
242. Valid anagramEasygolang
62. Unique pathsMediumgolang
378. Kth smallest element in a sorted matrixMediumgolang
729. My calendar iMediumgolang
858. Mirror reflectionMediumgolang
377. Combination sum ivMediumgolang
458. Poor pigsHardgolang
300. Longest increasing subsequenceMediumgolang
1220. Count vowels permutationHardgolang
823. Binary trees with factorsMediumgolang
108. Convert sorted array to binary search treeEasygolang
98. Validate binary search treeMediumgolang
235. Lowest common ancestor of a binary search treeEasygolang
387. First unique character in a stringEasygolang
804. Unique morse code wordsEasygolang
1338. Reduce array size to the halfMediumgolang
659. Split array into consecutive subsequencesMediumgolang
342. Power of fourEasygolang
234. Palindrome linked listEasygolang
326. Power of threeEasygolang
383. Ransom noteEasygolang
869. Reordered power of 2Mediumgolang
2379. Minimum recolors to get k consecutive black blocksEasygolang
2380. Time needed to rearrange a binary stringMediumgolang
2381. Shifting letters iiMediumgolang
126. Word ladder iiHardgolang
363. Max sum of rectangle no larger than kHardgolang
1578. Minimum time to make rope colorfulMediumgolang
91. Decode waysMediumgolang
112. Path sumEasygolang
623. Add one row to treeMediumgolang
981. Time based key value storeMediumgolang
732. My calendar iiiHardgolang
653. Two sum iv input is a bstEasygolang
1328. Break a palindromeMediumgolang
334. Increasing triplet subsequenceMediumgolang
121. Best time to buy and sell stockEasygolang
125. Valid palindromeEasygolang
226. Invert binary treeEasygolang
704. Binary searchEasygolang
733. Flood fillEasygolang
976. Largest perimeter triangleEasygolang
237. Delete node in a linked listMediumgolang
2095. Delete the middle node of a linked listMediumgolang
1531. String compression iiHardgolang
110. Balanced binary treeEasygolang
232. Implement queue using stacksEasygolang
278. First bad versionEasygolang
206. Reverse linked listEasygolang
169. Majority elementEasygolang
67. Add binaryEasygolang
1832. Check if the sentence is pangramEasygolang
543. Diameter of binary treeEasygolang
876. Middle of the linked listEasygolang
217. Contains duplicateEasygolang
38. Count and sayMediumgolang
542. 01 matrixMediumgolang
57. Insert intervalMediumgolang
692. Top k frequent wordsMediumgolang
12. Integer to romanMediumgolang
973. K closest points to originMediumgolang
433. Minimum genetic mutationMediumgolang
2131. Longest palindrome by concatenating two letter wordsMediumgolang
345. Reverse vowels of a stringEasygolang
212. Word search iiHardgolang
899. Orderly queueHardgolang
208. Implement trie prefix treeMediumgolang
211. Design add and search words data structureMediumgolang
1323. Maximum 69 numberEasygolang
102. Binary tree level order traversalMediumgolang
133. Clone graphMediumgolang
150. Evaluate reverse polish notationMediumgolang
207. Course scheduleMediumgolang
1544. Make the string greatEasygolang
322. Coin changeMediumgolang
238. Product of array except selfMediumgolang
155. Min stackMediumgolang
994. Rotting orangesMediumgolang
901. Online stock spanMediumgolang
1047. Remove all adjacent duplicates in stringEasygolang
26. Remove duplicates from sorted arrayEasygolang
151. Reverse words in a stringMediumgolang
947. Most stones removed with same row or columnMediumgolang, python
222. Count complete tree nodesMediumgolang
56. Merge intervalsMediumgolang
374. Guess number higher or lowerEasygolang
236. Lowest common ancestor of a binary treeMediumgolang
721. Accounts mergeMediumgolang
223. Rectangle areaMediumgolang
416. Partition equal subset sumMediumgolang
263. Ugly numberEasygolang
2395. Find subarrays with equal sumEasygolang
224. Basic calculatorHardgolang
279. Perfect squaresMediumgolang
2475. Number of unequal triplets in arrayEasygolang
2476. Closest nodes queries in a binary search treeMediumgolang
79. Word searchMediumgolang
907. Sum of subarray minimumsMediumgolang
2485. Find the pivot integerEasygolang
2486. Append characters to string to make subsequenceMediumgolang
2487. Remove nodes from linked listMediumgolang
2225. Find players with zero or one lossesMediumgolang
587. Erect the fenceHardgolang
380. Insert delete getrandom o1Mediumgolang
1207. Unique number of occurrencesEasygolang
1704. Determine if string halves are alikeEasygolang
1657. Determine if two strings are closeMediumgolang
451. Sort characters by frequencyMediumgolang
1752. Check if array is sorted and rotatedEasygolang
35. Search insert positionEasygolang
58. Length of last wordEasygolang
66. Plus oneEasygolang
83. Remove duplicates from sorted listEasygolang
94. Binary tree inorder traversalEasygolang
100. Same treeEasygolang
101. Symmetric treeEasygolang
111. Minimum depth of binary treeEasygolang
119. Pascals triangle iiEasygolang
136. Single numberEasygolang
144. Binary tree preorder traversalEasygolang
145. Binary tree postorder traversalEasygolang
168. Excel sheet column titleEasygolang
171. Excel sheet column numberEasygolang
190. Reverse bitsEasygolang
202. Happy numberEasygolang
203. Remove linked list elementsEasygolang
205. Isomorphic stringsEasygolang
228. Summary rangesEasygolang
258. Add digitsEasygolang, python
328. Odd even linked listMediumgolang
938. Range sum of bstEasygolang
1689. Partitioning into minimum number of deci binary numbersMediumgolang
1828. Queries on number of points inside a circleMediumgolang
807. Max increase to keep city skylineMediumgolang
40. Combination sum iiMediumgolang
2490. Circular sentenceEasygolang
2491. Divide players into teams of equal skillMediumgolang
2492. Minimum score of a path between two citiesMediumgolang
872. Leaf similar treesEasygolang
1026. Maximum difference between node and ancestorMediumgolang
1339. Maximum product of splitted binary treeMediumgolang
2496. Maximum value of a string in an arrayEasygolang
2497. Maximum star sum of a graphMediumgolang
2498. Frog jump iiMediumgolang
124. Binary tree maximum path sumHardgolang
931. Minimum falling path sumMediumgolang
198. House robberMediumgolang
231. Power of twoEasygolang
257. Binary tree pathsEasygolang
283. Move zeroesEasygolang
290. Word patternEasygolang
1143. Longest common subsequenceMediumgolang
1971. Find if path exists in graphEasygolang
841. Keys and roomsMediumgolang
309. Best time to buy and sell stock with cooldownMediumgolang
790. Domino and tromino tilingMediumgolang
55. Jump gameMediumgolang
2389. Longest subsequence with limited sumEasygolang
2279. Maximum bags with full capacity of rocksMediumgolang
1962. Remove stones to minimize the totalMediumgolang
520. Detect capitalEasygolang
944. Delete columns to make sortedEasygolang
2244. Minimum rounds to complete all tasksMediumgolang
452. Minimum number of arrows to burst balloonsMediumgolang
1833. Maximum ice cream barsMediumgolang
134. Gas stationMediumgolang
1519. Number of nodes in the sub tree with the same labelMediumgolang
1061. Lexicographically smallest equivalent stringMediumgolang
1071. Greatest common divisor of stringsEasygolang
953. Verifying an alien dictionaryEasygolang
567. Permutation in stringMediumgolang
438. Find all anagrams in a stringMediumgolang
904. Fruit into basketsMediumgolang
45. Jump game iiMediumgolang
54. Spiral matrixMediumgolang
78. SubsetsMediumgolang
199. Binary tree right side viewMediumgolang
2306. Naming a companyHardgolang
1162. As far from land as possibleMediumgolang
1129. Shortest path with alternating colorsMediumgolang
2565. Subsequence with the minimum scoreHardgolang
2562. Find the array concatenation valueEasygolang
2563. Count the number of fair pairsMediumgolang
2564. Substring xor queriesMediumgolang
2477. Minimum fuel cost to report to the capitalMediumgolang
1523. Count odd numbers in an interval rangeEasygolang
349. Intersection of two arraysEasygolang
350. Intersection of two arrays iiEasygolang
367. Valid perfect squareEasygolang
389. Find the differenceEasygolang
404. Sum of left leavesEasygolang
405. Convert a number to hexadecimalEasygolang
412. Fizz buzzEasygolang
414. Third maximum numberEasygolang
415. Add stringsEasygolang
434. Number of segments in a stringEasygolang
441. Arranging coinsEasygolang
448. Find all numbers disappeared in an arrayEasygolang
68. Text justificationHardgolang
989. Add to array form of integerEasygolang
783. Minimum distance between bst nodesEasygolang
2566. Maximum difference by remapping a digitEasygolang
2567. Minimum score by changing two elementsMediumgolang
2568. Minimum impossible orMediumgolang
2570. Merge two 2d arrays by summing valuesEasygolang
2571. Minimum operations to reduce an integer to 0Mediumgolang
103. Binary tree zigzag level order traversalMediumgolang
540. Single element in a sorted arrayMediumgolang
1011. Capacity to ship packages within d daysMediumgolang
502. IpoHardgolang
1675. Minimize deviation in arrayHardgolang
2574. Left and right sum differencesEasygolang
72. Edit distanceHardgolang
427. Construct quad treeMediumgolang
2558. Take gifts from the richest pileEasygolang
2553. Separate the digits in an arrayEasygolang
2549. Count distinct numbers on boardEasygolang
2544. Alternating digit sumEasygolang
652. Find duplicate subtreesMediumgolang
718. Maximum length of repeated subarrayMediumgolang
443. String compressionMediumgolang
2554. Maximum number of integers to choose from a range iMediumgolang
2555. Maximize win from two segmentsMediumgolang
2444. Count subarrays with fixed boundsHardgolang
2578. Split with minimum sumEasygolang
2579. Count total number of colored cellsMediumgolang
2580. Count ways to group overlapping rangesMediumgolang
1345. Jump game ivHardgolang
1539. Kth missing positive numberEasygolang
875. Koko eating bananasMediumgolang
2187. Minimum time to complete tripsMediumgolang
724. Find pivot indexEasygolang
74. Search a 2d matrixMediumgolang
240. Search a 2d matrix iiMediumgolang
142. Linked list cycle iiMediumgolang
382. Linked list random nodeMediumgolang
109. Convert sorted list to binary search treeMediumgolang
1122. Relative sort arrayEasygolang
589. N ary tree preorder traversalEasygolang
386. Lexicographical numbersMediumgolang
1051. Height checkerEasygolang
129. Sum root to leaf numbersMediumgolang
958. Check completeness of a binary treeMediumgolang
49. Group anagramsMediumgolang
50. Powx nMediumgolang
106. Construct binary tree from inorder and postorder traversalMediumgolang
73. Set matrix zeroesMediumgolang
105. Construct binary tree from preorder and inorder traversalMediumgolang
116. Populating next right pointers in each nodeMediumgolang
122. Best time to buy and sell stock iiMediumgolang
130. Surrounded regionsMediumgolang
1472. Design browser historyMediumgolang
746. Min cost climbing stairsEasygolang
2591. Distribute money to maximum childrenEasygolang
2592. Maximize greatness of an arrayMediumgolang
2594. Minimum time to repair carsMediumgolang
605. Can place flowersEasygolang
2348. Number of zero filled subarraysMediumpython
292. Nim gameEasygolang
303. Range sum query immutableEasygolang
461. Hamming distanceEasygolang
455. Assign cookiesEasygolang
1319. Number of operations to make network connectedMediumgolang
1466. Reorder routes to make all paths lead to the city zeroMediumgolang
2316. Count unreachable pairs of nodes in an undirected graphMediumgolang
2360. Longest cycle in a graphHardgolang
64. Minimum path sumMediumgolang
983. Minimum cost for ticketsMediumgolang
1402. Reducing dishesHardgolang
87. Scramble stringHardgolang
2605. Form smallest number from two digit arraysEasygolang
2606. Find the substring with maximum costMediumgolang
2300. Successful pairs of spells and potionsMediumgolang
881. Boats to save peopleMediumgolang
771. Jewels and stonesEasypython, golang
2405. Optimal partition of stringMediumpython
1020. Number of enclavesMediumpython
2390. Removing stars from a stringMediumpython
2336. Smallest number in infinite setMediumpython
319. Bulb switcherMediumpython
1491. Average salary excluding the minimum and maximum salaryEasygolang
1822. Sign of the product of an arrayEasygolang
2215. Find the difference of two arraysEasygolang
1456. Maximum number of vowels in a substring of given lengthMediumpython
1964. Find the longest valid obstacle course at each positionHardgolang
1572. Matrix diagonal sumEasypython
2130. Maximum twin sum of a linked listMediumgolang
2542. Maximum subsequence scoreMediumgolang
2101. Detonate the maximum bombsMediumgolang
1376. Time needed to inform all employeesMediumgolang
1232. Check if it is a straight lineEasygolang
1502. Can make arithmetic progression from sequenceEasygolang
1318. Minimum flips to make a or b equal to cMediumgolang
1351. Count negative numbers in a sorted matrixEasygolang
137. Single number iiMediumgolang
1493. Longest subarray of 1s after deleting one elementMediumgolang
209. Minimum size subarray sumMediumgolang
2024. Maximize the confusion of an examMediumgolang
2272. Substring with largest varianceHardgolang
735. Asteroid collisionMediumgolang
77. CombinationsMediumgolang
215. Kth largest element in an arrayMediumgolang
2833. Furthest point from originEasygolang
2828. Check if a string is an acronym of wordsEasygolang
2824. Count pairs whose sum is less than targetEasygolang
2815. Max pair sum in an arrayEasygolang
2810. Faulty keyboardEasygolang
2707. Extra characters in a stringMediumgolang
2839. Check if strings can be made equal with operations iEasygolang
92. Reverse linked list iiMediumgolang
1282. Group the people given the group size they belong toMediumgolang
135. CandyHardgolang
847. Shortest path visiting all nodesHardgolang
779. K th symbol in grammarMediumgolang
2706. Buy two chocolatesEasygolang
1637. Widest vertical area between two points containing no pointsMediumgolang
2610. Convert an array into a 2d array with conditionsMediumgolang
709. To lower caseEasygolang
717. 1 bit and 2 bit charactersEasygolang
3019. Number of changing keysEasygolang
3005. Count elements with maximum frequencyEasygolang
2974. Minimum number gameEasygolang
3014. Minimum number of pushes to type word iEasygolang
3010. Divide an array into subarrays with minimum cost iEasygolang
2970. Count the number of incremovable subarrays iEasygolang
2966. Divide array into arrays with max differenceMediumgolang
3024. Type of triangle iiEasygolang
3028. Ant on the boundaryEasygolang
2960. Count tested devices after test operationsEasygolang
2997. Minimum number of operations to make array xor equal to kMediumgolang
3016. Minimum number of pushes to type word iiMediumgolang
2947. Count beautiful substrings iMediumgolang
728. Self dividing numbersEasygolang
744. Find smallest letter greater than targetEasygolang
766. Toeplitz matrixEasygolang
999. Available captures for rookEasygolang
1252. Cells with odd values in a matrixEasygolang
1217. Minimum cost to move chips to the same positionEasygolang
1221. Split a string in balanced stringsEasygolang
368. Largest divisible subsetMediumgolang
1463. Cherry pickup iiHardgolang
1299. Replace elements with greatest element on right sideEasygolang
1295. Find numbers with even number of digitsEasygolang
1290. Convert binary number in a linked list to integerEasygolang
2108. Find first palindromic string in the arrayEasygolang
43. Multiply stringsMediumgolang
2149. Rearrange array elements by signMediumgolang
2971. Find polygon with the largest perimeterMediumgolang
1481. Least number of unique integers after k removalsMediumgolang
948. Bag of tokensMediumgolang
1750. Minimum length of string after deleting similar endsMediumgolang
2540. Minimum common valueEasygolang
621. Task schedulerMediumgolang
2958. Length of longest subarray with at most k frequencyMediumgolang
2962. Count subarrays where max element appears at least k timesMediumgolang
678. Valid parenthesis stringMediumgolang
1700. Number of students unable to eat lunchEasygolang
2073. Time needed to buy ticketsEasygolang
950. Reveal cards in increasing orderMediumgolang
402. Remove k digitsMediumgolang
42. Trapping rain waterHardgolang
988. Smallest string starting from leafMediumgolang
2000. Reverse prefix of wordEasygolang
2441. Largest positive integer that exists with its negativeEasygolang
165. Compare version numbersMediumgolang
2807. Insert greatest common divisors in linked listMediumgolang
2265. Count nodes equal to average of subtreeMediumgolang
1038. Binary search tree to greater sum treeMediumgolang
2816. Double a number represented as a linked listMediumgolang
506. Relative ranksEasygolang
3075. Maximize happiness of selected childrenMediumgolang
786. K th smallest prime fractionMediumgolang
857. Minimum cost to hire k workersHardgolang
2373. Largest local values in a matrixEasygolang
861. Score after flipping matrixMediumgolang
1219. Path with maximum goldMediumgolang
2733. Neither minimum nor maximumEasygolang
2331. Evaluate boolean binary treeEasygolang
1325. Delete leaves with a given valueMediumgolang
3068. Find the maximum sum of node valuesHardgolang
1863. Sum of all subset xor totalsEasygolang
131. Palindrome partitioningMediumgolang
2597. The number of beautiful subsetsMediumgolang
1255. Maximum score words formed by lettersHardgolang
1608. Special array with x elements greater than or equal xEasygolang
1208. Get equal substrings within budgetMediumgolang
1404. Number of steps to reduce a number in binary representation to oneMediumgolang
1442. Count triplets that can form two arrays of equal xorMediumgolang
260. Single number iiiMediumgolang
3110. Score of a stringEasygolang
1002. Find common charactersEasygolang
846. Hand of straightsMediumgolang
1296. Divide array in sets of k consecutive numbersMediumgolang
648. Replace wordsMediumgolang
330. Patching arrayHardgolang
633. Sum of square numbersMediumgolang
826. Most profit assigning workMediumgolang
2037. Minimum number of moves to seat everyoneEasygolang
1482. Minimum number of days to make m bouquetsMediumgolang
1052. Grumpy bookstore ownerMediumgolang
1438. Longest continuous subarray with absolute diff less than or equal to limitMediumgolang
995. Minimum number of k consecutive bit flipsHardgolang
1382. Balance a binary search treeMediumgolang
2285. Maximum total importance of roadsMediumgolang
1550. Three consecutive oddsEasygolang
1509. Minimum difference between largest and smallest value in three movesMediumgolang
2058. Find the minimum and maximum number of nodes between critical pointsMediumgolang
2582. Pass the pillowEasygolang
1518. Water bottlesEasygolang
1823. Find the winner of the circular gameMediumgolang
1701. Average waiting timeMediumgolang
1598. Crawler log folderEasygolang
1190. Reverse substrings between each pair of parenthesesMediumgolang
1110. Delete nodes and return forestMediumgolang
1530. Number of good leaf nodes pairsMediumgolang
2418. Sort the peopleEasygolang
1636. Sort array by increasing frequencyEasygolang
2191. Sort the jumbled numbersMediumgolang
2976. Minimum cost to convert string iMediumgolang
1653. Minimum deletions to make string balancedMediumgolang
2678. Number of senior citizensEasygolang
1460. Make two arrays equal by reversing subarraysEasygolang
1508. Range sum of sorted subarray sumsMediumgolang
2053. Kth distinct string in an arrayEasygolang
2396. Strictly palindromic numberMediumgolang
840. Magic squares in gridMediumgolang
650. 2 keys keyboardMediumgolang
664. Strange printerHardgolang
476. Number complementEasygolang
1009. Complement of base 10 integerEasygolang
592. Fraction addition and subtractionMediumgolang
965. Univalued binary treeEasygolang
993. Cousins in binary treeEasygolang
114. Flatten binary tree to linked listMediumgolang
590. N ary tree postorder traversalEasygolang
1514. Path with maximum probabilityMediumgolang
1905. Count sub islandsMediumgolang
748. Shortest completing wordEasygolang
821. Shortest distance to a characterEasygolang
725. Split linked list in partsMediumgolang
1684. Count the number of consistent stringsEasygolang
731. My calendar iiMediumgolang
641. Design circular dequeMediumgolang
1381. Design a stack with increment operationMediumgolang
1497. Check if array pairs are divisible by kMediumgolang
1331. Rank transform of an arrayEasygolang
1590. Make sum divisible by pMediumgolang
1813. Sentence similarity iiiMediumgolang
2696. Minimum string length after removing substringsEasygolang
1963. Minimum number of swaps to make the string balancedMediumgolang
921. Minimum add to make parentheses validMediumgolang
670. Maximum swapMediumgolang
3163. String compression iiiMediumgolang
2914. Minimum number of changes to make binary string beautifulMediumgolang
3011. Find if array can be sortedMediumgolang
2275. Largest combination with bitwise and greater than zeroMediumgolang
1829. Maximum xor for each queryMediumgolang
3133. Minimum array endMediumgolang
2064. Minimized maximum of products distributed to any storeMediumgolang

adventofcode/2024

DaySolution
Day 1golang
Day 2golang
Day 3golang
Day 4golang
Day 5golang
Day 6golang
Day 7golang
Day 8golang
Day 9golang
Day 10golang
Day 11golang
Day 12golang

adventofcode/2022

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

codeforces

Problems solved in total: 99

Solutions by difficultySolutions by tags
by_difficultyby_tags
ProblemDifficultySolution
112A. Petya and Strings800python
158A. Next Round800python
231A. Team800python
236A. Boy or Girl800python
263A. Beautiful Matrix800python
266A. Stones on the Table800python
281A. Word Capitalization800python
282A. Bit++800python
339A. Helpful Maths800python
4A. Watermelon800python
50A. Domino piling800python
546A. Soldier and Bananas800python
71A. Way Too Long Words800python
133A. HQ9+900python
160A. Twins900python
318A. Even Odds900python
580A. Kefa and First Steps900python
96A. Football900python
118A. String Task1000python
122A. Lucky Division1000python
1A. Theatre Square1000python
58A. Chat room1000python
69A. Young Physicist1000python
1669A. Division?800golang
1660B. Vlad and Candies800golang
1674A. Number Transformation800golang
1674B. Dictionary800golang
1674C. Infinite Replacement1000golang
1674D. A-B-C Sort800golang
1692A. Marathon800golang
1692B. All Distinct800golang
1692C. Where's the Bishop?800golang
1692D. The Clock1100golang
1692F. 3SUM1300golang
1714A. Everyone Loves to Sleep900golang
1714B. Remove Prefix800golang
1714C. Minimum Varied Number800golang
1714E. Add Modulo 101400golang
1729A. Two Elevators800golang
1729B. Decode String800golang
1729C. Jumping on Tiles1100golang
1703A. YES or YES?800golang
1703B. ICPC Balloons800golang
1741A. Compare T-Shirt Sizes800golang
1741B. Funny Permutation800golang
1741C. Minimize the Thickness1100golang
1741D. Masha and a Beautiful Tree1300golang
1744A. Number Replacement800golang
1744B. Even-Odd Increments 800golang
1744C. Traffic Light1000golang
1744D. Divisibility by 2^n1200golang
1741E. Sending a Sequence Over the Network1600golang
1749A. Cowardly Rooks800golang
1749B. Death's Blessing900golang
1747A. Two Groups800golang
1747B. BAN BAN900golang
1747C. Swap Game1200golang
1760A. Medium Number800golang
1760B. Atilla's Favorite Problem800golang
1760C. Advantage800golang
1760D. Challenging Valleys1000golang
1760E. Binary Inversions1100golang
1760F. Quests1500golang
1676A. Lucky?800golang
1676B. Equal Candies800golang
1676C. Most Similar Words800golang
1676D. X-Sum1000golang
1760G. SlavicG's Favorite Problem1700golang
1690D. Black and White Stripe1000golang
1766A. Extremely Round800golang
1766B. Notepad#1000golang
1766C. Hamiltonian Wall1300golang
1772A. A+B?800golang
1772B. Matrix Rotation800golang
1772C. Different Differences1000golang
1772D. Absolute Sorting1400golang
1772E. Permutation Game1700golang
1791A. Codeforces Checking800golang
1791B. Following Directions800golang
1791C. Prepend and Append800golang
1791D. Distinct Split1000golang
1791E. Negatives and Positives1100golang
1800A. Is It a Cat?800golang
1800B. Count the Number of Pairs1000golang
1800C1. Powering the Hero (easy version)1000golang
1800C2. Powering the Hero (hard version)1100golang
1800D. Remove Two Letters1200golang
1800E1. Unforgivable Curse (easy version)1400golang
1800E2. Unforgivable Curse (hard version)1500golang
1794A. Prefix and Suffix Array800golang
1794B. Not Dividing900golang
1794C. Scoring Subsequences1300golang
1804A. Lame King800golang
1804B. Vaccination1000golang
1798A. Showstopper800golang
1798B. Three Sevens1000golang
1798D. Shocking Arrangement1600golang
1812A. Are You a Robot?golang
1812B. Was it Rated?golang

acm.timus

ProblemSolutionDifficultyTagsUniversity course module
1005. Stone Pilec++84problem for beginners1
1155. Troubleduonsc++305none1
1296. Hyperjumpc++80none1
1401. Gamersc++321none1
2025. Line Fightingc++77none1
1207. Median on the Planec++177geometry2
1322. Spyc++324none2
1444. Elephpotamusc++639geometry2
1604. Country of Foolsc++220none2
1726. Visitsc++197none2
1067. Disk Treec++486data structures3
1494. Monobilliardsc++131data structures3
1521. War Games 2c++192data structures3
1628. White Streaksc++293data structures3
1650. Billionairesc++339data structures3
1080. Map Coloringc++229graph theory4
1160. Networkc++226graph theory4
1162. Currency Exchangec++342graph theory4
1450. Russian Pipelinesc++225graph theory4
1806. Mobile Telegraphsc++402graph theory4