This repository contains code (mostly C++) responsible
for Algorithms & Data Structures.
Algorithms
implementations of popular algorithms.
Data Structures
directory contains implementation of data structures.
Problems
solutions for Leetcode & Codeforces problems.
Library
code for competitive programming related patterns, which is my cheatsheet.
Cpp
notes & code related to C++ itself, not any specific algorithm.
- 3. Longest Substring Without Repeating Characters
- 6. Zigzag Conversion
- 7. Reverse Integer
- 11. Container With Most Water
- 12. Integer to Roman
- 15. 3Sum
- 19. Remove Nth Node From End of List
- 33. Search in Rotated Sorted Array
- 45. Jump Game II
- 49. Group Anagrams
- 53. Maximum Subarray
- 55. Jump Game
- 56. Merge Intervals
- 80. Remove Duplicated from Sorted Array II
- 81. Search in Rotated Sorted Array II
- 122. Best Time to Buy and Sell Stock II
- 128. Longest Consecutive Sequence
- 134. Gas Station
- 148. Sort List
- 151. Reverse Words in a String
- 167. Two Sum || Input Array Is Sorted
- 189. Rotate Array
- 200. Number of Islands
- 209. Minimum Size Subarray Sum
- 238. Product of Array Except Self
- 274. H-Index
- 380. Insert Delete GetRandom O(1)
- 382. Linked List Random Node
- 451. Sort Characters By Frequency
- 518. Coim Change II
- 849. Maximize Distance to Closest Person
- 852. Peak Index in a Mountain Array
- 921. Minimum Add to Make Parentheses Valid
- 1282. Group the People Given the Group Size They Belong to
- 1476. Subrectangle Queries
- 1492. The kth Factor of n
- 1525. Number of Good Ways to Split a String
- 1615. Maximal Network Rank
- 1689. Partitioning Into Minimum Number of Deci-Binary Numbers
- 1769. Minimum Number of Operations to Move All Balls to Each Box
- 1828. Queries on Number of Points Inside a Circle
- 2130. Maximum Twin Sum of a Linked List
- 2181. Merge Nodes in Between Zeros
- 2134. Minimum Swaps to Group All 1's Together II
- 2428. Maximum Sum of an Hourglass
- 2616. Minimze the Maximum Difference on Pairs
ranked >= 1200, sorted descending
- 1623C Balanced Stone Heaps { 1600 | binary search | greedy }
- 1886C Decreasing String { 1600 | implementation | strings}
- 1851E Nastya And Potions { 1500 | dfs and similar | dp | graphs | sortings}
- 1898B Milena and Admirer {1500 | greedy | math}
- 982C Cut 'em All{ 1500 | dfs and similar | dp | graphs | greedy | trees }
- 1891C Smilo and Monsters {1500 | binary search | constructive algorithms | greedy | sortings | two pointers}
- 165B Burning Midnight Oil { 1500 | binary search | implementation }
- 279B Books { 1400 | binary search | brute force | implementation | two pointers }
- 1612C Chat Ban { 1300 | binary search | math}
- 1902C Insert and Equalize {1300 | brute force | constructive algorithms | greedy | math | number theory}
- 1900C Anji's Binary Tree {1300 | dfs and similar | dp | trees}
- 474B Worms { 1200 | binary search | implementation }
- 1221C Perfect Team { 1200 | binary search | math}
- 1886B - Fear of the Dark { 1200 | binary search | geometry | math}
My profiles on algorithmic sites: