Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
vinayak0505
Data-Structures
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Data-Structures
Public
Notifications
You must be signed in to change notification settings
Fork
0
(
0
)
Star
0
(
0
)
You must be signed in to star a repository
About
This contains all my data structures code
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
624 Commits
624 Commits
Folders and files
Name
Name
Last commit message
Last commit date
.vscode
.vscode
Amount of Time for Binary Tree to Be Infected.cpp
Amount of Time for Binary Tree to Be Infected.cpp
Code Testcase Testcase Test Result 3389. Minimum Operations to Make Character Frequencies Equal.java
Code Testcase Testcase Test Result 3389. Minimum Operations to Make Character Frequencies Equal.java
Count All Possible Routes.cpp
Count All Possible Routes.cpp
Count Nodes With the Highest Score.cpp
Count Nodes With the Highest Score.cpp
Custom Sort String.cpp
Custom Sort String.cpp
Factorial Trailing Zeroes.cpp
Factorial Trailing Zeroes.cpp
Largest Number.cpp
Largest Number.cpp
Lexicographical Numbers.cpp
Lexicographical Numbers.cpp
Max Points on a Line.cpp
Max Points on a Line.cpp
Maximum Bags With Full Capacity of Rocks.cpp
Maximum Bags With Full Capacity of Rocks.cpp
Non-decreasing Array.cpp
Non-decreasing Array.cpp
Number of Provinces.cpp
Number of Provinces.cpp
Repeated DNA Sequences.cpp
Repeated DNA Sequences.cpp
Throne Inheritance.cpp
Throne Inheritance.cpp
Total Hamming Distance.cpp
Total Hamming Distance.cpp
.DS_Store
.DS_Store
1353. Maximum Number of Events That Can Be Attended.java
1353. Maximum Number of Events That Can Be Attended.java
3016. Minimum Number of Pushes to Type Word II.java
3016. Minimum Number of Pushes to Type Word II.java
3021. Alice and Bob Playing Flower Game.java
3021. Alice and Bob Playing Flower Game.java
3022. Minimize OR of Remaining Elements Using Operations.java
3022. Minimize OR of Remaining Elements Using Operations.java
3031. Minimum Time to Revert Word to Initial State II.java
3031. Minimum Time to Revert Word to Initial State II.java
3035. Maximum Palindromes After Operations.java
3035. Maximum Palindromes After Operations.java
3036. Number of Subarrays That Match a Pattern II.java
3036. Number of Subarrays That Match a Pattern II.java
3044. Most Frequent Prime.java
3044. Most Frequent Prime.java
3045. Count Prefix and Suffix Pairs II.java
3045. Count Prefix and Suffix Pairs II.java
3048. Earliest Second to Mark Indices I.java
3048. Earliest Second to Mark Indices I.java
3071. Minimum Operations to Write the Letter Y on a Grid.java
3071. Minimum Operations to Write the Letter Y on a Grid.java
3072. Distribute Elements Into Two Arrays II.java
3072. Distribute Elements Into Two Arrays II.java
3076. Shortest Uncommon Substring in an Array.java
3076. Shortest Uncommon Substring in an Array.java
3077. Maximum Strength of K Disjoint Subarrays.java
3077. Maximum Strength of K Disjoint Subarrays.java
3085. Minimum Deletions to Make String K-Special.java
3085. Minimum Deletions to Make String K-Special.java
3092. Most Frequent IDs.java
3092. Most Frequent IDs.java
3093. Longest Common Suffix Queries.java
3093. Longest Common Suffix Queries.java
3101. Count Alternating Subarrays.java
3101. Count Alternating Subarrays.java
3102. Minimize Manhattan Distances.java
3102. Minimize Manhattan Distances.java
3107. Minimum Operations to Make Median of Array Equal to K.java
3107. Minimum Operations to Make Median of Array Equal to K.java
3116. Kth Smallest Amount With Single Denomination Combination.java
3116. Kth Smallest Amount With Single Denomination Combination.java
3117. Minimum Sum of Values by Dividing Array.java
3117. Minimum Sum of Values by Dividing Array.java
3122. Minimum Number of Operations to Satisfy Conditions.java
3122. Minimum Number of Operations to Satisfy Conditions.java
3123. Find Edges in Shortest Paths.java
3123. Find Edges in Shortest Paths.java
3133. Minimum Array End.java
3133. Minimum Array End.java
3134. Find the Median of the Uniqueness Array.java
3134. Find the Median of the Uniqueness Array.java
3138. Minimum Length of Anagram Concatenation.java
3138. Minimum Length of Anagram Concatenation.java
3139. Minimum Cost to Equalize Array.java
3139. Minimum Cost to Equalize Array.java
3148. Maximum Difference Score in a Grid.java
3148. Maximum Difference Score in a Grid.java
3153. Sum of Digit Differences of All Pairs.java
3153. Sum of Digit Differences of All Pairs.java
3154. Find Number of Ways to Reach the K-th Stair.java
3154. Find Number of Ways to Reach the K-th Stair.java
3164. Find the Number of Good Pairs II.java
3164. Find the Number of Good Pairs II.java
3165. Maximum Sum of Subsequence With Non-adjacent Elements.java
3165. Maximum Sum of Subsequence With Non-adjacent Elements.java
3171. Find Subarray With Bitwise OR Closest to K.java
3171. Find Subarray With Bitwise OR Closest to K.java
3180. Maximum Total Reward Using Operations I3180. Maximum Total Reward Using Operations I.java
3180. Maximum Total Reward Using Operations I3180. Maximum Total Reward Using Operations I.java
3181. Maximum Total Reward Using Operations II.java
3181. Maximum Total Reward Using Operations II.java
3186. Maximum Total Damage With Spell Casting.java
3186. Maximum Total Damage With Spell Casting.java
3187. Peaks in Array.java
3187. Peaks in Array.java
3196. Maximize Total Cost of Alternating Subarrays.java
3196. Maximize Total Cost of Alternating Subarrays.java
3197. Find the Minimum Area to Cover All Ones II.java
3197. Find the Minimum Area to Cover All Ones II.java
3202. Find the Maximum Length of Valid Subsequence II.java
3202. Find the Maximum Length of Valid Subsequence II.java
3203. Find Minimum Diameter After Merging Two Trees.java
3203. Find Minimum Diameter After Merging Two Trees.java
3212. Count Submatrices With Equal Frequency of X and Y.java
3212. Count Submatrices With Equal Frequency of X and Y.java
3213. Construct String with Minimum Cost.java
3213. Construct String with Minimum Cost.java
3218. Minimum Cost for Cutting Cake I.java
3218. Minimum Cost for Cutting Cake I.java
3219. Minimum Cost for Cutting Cake II.java
3219. Minimum Cost for Cutting Cake II.java
3228. Maximum Number of Operations to Move Ones to the End.java
3228. Maximum Number of Operations to Move Ones to the End.java
3229. Minimum Operations to Make Array Equal to Target.java
3229. Minimum Operations to Make Array Equal to Target.java
3234. Count the Number of Substrings With Dominant Ones.java
3234. Count the Number of Substrings With Dominant Ones.java
3235. Check if the Rectangle Corner Is Reachable.java
3235. Check if the Rectangle Corner Is Reachable.java
3244. Shortest Distance After Road Addition Queries II.java
3244. Shortest Distance After Road Addition Queries II.java
3250. Find the Count of Monotonic Pairs II.java
3250. Find the Count of Monotonic Pairs II.java
3260. Find the Largest Palindrome Divisible by K.java
3260. Find the Largest Palindrome Divisible by K.java
3261. Count Substrings That Satisfy K-Constraint II.java
3261. Count Substrings That Satisfy K-Constraint II.java
3267. Count Almost Equal Pairs II.java
3267. Count Almost Equal Pairs II.java
3276. Select Cells in Grid With Maximum Score.java
3276. Select Cells in Grid With Maximum Score.java
3277. Maximum XOR Score Subarray Queries.java
3277. Maximum XOR Score Subarray Queries.java
3282. Reach End of Array With Max Score.java
3282. Reach End of Array With Max Score.java
3283. Maximum Number of Moves to Kill All Pawns.java
3283. Maximum Number of Moves to Kill All Pawns.java
3291. Minimum Number of Valid Strings to Form Target I.java
3291. Minimum Number of Valid Strings to Form Target I.java
3292. Minimum Number of Valid Strings to Form Target II.java
3292. Minimum Number of Valid Strings to Form Target II.java
3297. Count Substrings That Can Be Rearranged to Contain a String II.java
3297. Count Substrings That Can Be Rearranged to Contain a String II.java
3307. Find the K-th Character in String Game II.java
3307. Find the K-th Character in String Game II.java
3311. Construct 2D Grid Matching Graph Layout.java
3311. Construct 2D Grid Matching Graph Layout.java
3312. Sorted GCD Pair Queries.java
3312. Sorted GCD Pair Queries.java
3320. Count The Number of Winning Sequences.java
3320. Count The Number of Winning Sequences.java
3321. Find X-Sum of All K-Long Subarrays II.java
3321. Find X-Sum of All K-Long Subarrays II.java
3326. Minimum Division Operations to Make Array Non Decreasing.java
3326. Minimum Division Operations to Make Array Non Decreasing.java
3327. Check if DFS Strings Are Palindromes.java
3327. Check if DFS Strings Are Palindromes.java
3336. Find the Number of Subsequences With Equal GCD.java
3336. Find the Number of Subsequences With Equal GCD.java
3351. Sum of Good Subsequences.java
3351. Sum of Good Subsequences.java
3352. Count K-Reducible Numbers Less Than N.java
3352. Count K-Reducible Numbers Less Than N.java
3357. Minimize the Maximum Adjacent Element Difference.java
3357. Minimize the Maximum Adjacent Element Difference.java
3366. Minimum Array Sum.java
3366. Minimum Array Sum.java
3367. Maximize Sum of Weights after Edge Removals.java
3367. Maximize Sum of Weights after Edge Removals.java
3381. Maximum Subarray Sum With Length Divisible by K.java
3381. Maximum Subarray Sum With Length Divisible by K.java
3382. Maximum Area Rectangle With Point Constraints II.java
3382. Maximum Area Rectangle With Point Constraints II.java
3388. Count Beautiful Splits in an Array.java
3388. Count Beautiful Splits in an Array.java
3398. Smallest Substring With Identical Characters I.java
3398. Smallest Substring With Identical Characters I.java
3399. Smallest Substring With Identical Characters II.java
3399. Smallest Substring With Identical Characters II.java
3404. Count Special Subsequences.java
3404. Count Special Subsequences.java
3405. Count the Number of Arrays with K Matching Adjacent Elements.java
3405. Count the Number of Arrays with K Matching Adjacent Elements.java
3413. Maximum Coins From K Consecutive Bags.java
3413. Maximum Coins From K Consecutive Bags.java
View all files
About
This contains all my data structures code
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.