{"id":19150202,"url":"https://github.com/thanhngan22/dsa-writeups","last_synced_at":"2026-06-14T02:30:23.372Z","repository":{"id":147014059,"uuid":"525870717","full_name":"thanhngan22/dsa-writeups","owner":"thanhngan22","description":"💦 some exercises in Hackerrank and other sources used to practice","archived":false,"fork":false,"pushed_at":"2024-03-30T09:59:55.000Z","size":12968,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-03T18:13:22.875Z","etag":null,"topics":["algorithms","data-structures","hackerrank-solutions"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thanhngan22.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-08-17T16:21:13.000Z","updated_at":"2024-06-11T17:15:33.000Z","dependencies_parsed_at":"2024-03-30T10:36:31.914Z","dependency_job_id":null,"html_url":"https://github.com/thanhngan22/dsa-writeups","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thanhngan22%2Fdsa-writeups","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thanhngan22%2Fdsa-writeups/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thanhngan22%2Fdsa-writeups/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thanhngan22%2Fdsa-writeups/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thanhngan22","download_url":"https://codeload.github.com/thanhngan22/dsa-writeups/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240236198,"owners_count":19769571,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithms","data-structures","hackerrank-solutions"],"created_at":"2024-11-09T08:11:02.050Z","updated_at":"2026-06-14T02:30:18.291Z","avatar_url":"https://github.com/thanhngan22.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch2 style=\"color: green\"\u003e💦 HackerRank solutions\u003c/h2\u003e \n\n```tsx\n💦      This repository contains my solutions to HackerRank problems.\n        Solutions are presented in multiple languages such as c/cpp, python, java, typescript, etc.\n```\n\n\u003ch3 style=\"color:green\"\u003e 📜 Table of Contents \u003c/h3\u003e\n\n- [Implementation](./Implementation)\n- [Strings](./Strings)\n- [Sorting](./Sorting)\n- [Search](./Search)\n- [Graph Theory](./Graph.Theory)\n- [Greedy](./Greedy)\n- [Dynamic Programming](./Dynamic.Programming)\n- [Bit Manipulation](./Bit.Manipulation)\n- [Recursion](./Recursion)\n- [NP Complete](./NP.Complete)\n- [Constructive Algorithms](./Constructive.Algorithms)\n- [Warmup](./Warmup)\n\n_be constantly updated_\n\n\u003ch3 style=\"color:green\"\u003e📝 List of challenges\u003c/h3\u003e \n\n#### Bit Manipulation\n\n\n#### Constructive Alogorithms\n\n\n#### Dynamic Programming\n\n\n#### Game Theory\n\n\n#### Graph Theory\n\n\n#### Greedy\n- [Mark and Toys](./Greedy/Mark.and.Toys)\n\n\n#### Implementation\n- [3D Surface Area](./Implementation/3D.Surface.Area)\n- [Absolute Permutation](./Implementation/Absolute.Permutation)\n- [ACM ICPC Team](./Implementation/ACM.ICPC.Team)\n- [Almost Sorted](./Implementation/Almost.Sorted)\n- [Angry Professor](./Implementation/Angry.Professor)\n- [Append and Delete](./Implementation/Append.and.Delete)\n- [Apple Orange](./Implementation/Apple.Orange)\n- [Beautiful Days at the Movies](./Implementation/Beautiful.Days.at.the.Movies)\n- [Beautiful Triplets](./Implementation/Beautiful.Triplets)\n- [Between Two Sets](./Implementation/Between.Two.Sets)\n- [Bigger is Greater](./Implementation/Bigger.is.Greater)\n- [Bill Division](./Implementation/Bill.Division)\n- [Breaking The Records](./Implementation/Breaking.The.Records)\n- [Cat and a Mouse](./Implementation/Cat.and.a.Mouse)\n- [Cavity Map](./Implementation/Cavity.Map)\n- [Chocolate Feast](./Implementation/Chocolate.Feast)\n- [Circular Array Rotation](./Implementation/Circular.Array.Rotation)\n- [Climbing the Leaderboard](./Implementation/Climbing.the.Leaderboard)\n- [Counting Valleys](./Implementation/Counting.Valleys)\n- [Cut the Sticks](./Implementation/Cut.the.Sticks)\n- [Day of the Programer](./Implementation/Day.of.the.Programer)\n- [Designer PDF Viewer](./Implementation/Designer.PDF.Viewer)\n- [Divisible Sum Pairs](./Implementation/Divisible.Sum.Pairs)\n- [Drawing Book](./Implementation/Drawing.Book)\n- [Electronics Shop](./Implementation/Electronics.Shop)\n- [Ema's Supercomputer](./Implementation/Ema's.Supercomputer)\n- [Encryption](./Implementation/Encryption)\n- [Equalize the Array](./Implementation/Equalize.the.Array)\n- [Extra Long Factorials](./Implementation/Extra.Long.Factorials)\n- [Fair Rations](./Implementation/Fair.Rations)\n- [Find Digits](./Implementation/Find.Digits)\n- [Forming a Magic Square](./Implementation/Forming.a.Magic.Square)\n- [Grading Students](./Implementation/Grading.Students)\n- [Halloween Sale](./Implementation/Halloween.Sale)\n- [Happy Ladybugs](./Implementation/Happy.Ladybugs)\n- [Jumping on the Clouds](./Implementation/Jumping.on.the.Clouds)\n- [Jumping on the Clouds_Revisited](./Implementation/Jumping.on.the.Clouds_Revisited)\n- [Larry Array](./Implementation/Larry.Array)\n- [Library Fine](./Implementation/Library.Fine)\n- [Lisa Workbook](./Implementation/Lisa.Workbook)\n- [Manasa and Stones](./Implementation/Manasa.and.Stones)\n- [Matrix Layer Rotation](./Implementation/Matrix.Layer.Rotation)\n- [Migratory Birds](./Implementation/Migratory.Birds)\n- [Minimum Distances](./Implementation/Minimum.Distances)\n- [Modified Kaprekar Numbers](./Implementation/Modified.Kaprekar.Numbers)\n- [Non Divisible Subset](./Implementation/Non.Divisible.Subset)\n- [Number Line Jump](./Implementation/Number.Line.Jump)\n- [Oraganizing Containers of Balls](./Implementation/Oraganizing.Containers.of.Balls)\n- [Picking Numbers](./Implementation/Picking.Numbers)\n- [Queen Attack II](./Implementation/Queen.Attack.II)\n- [Repeated String](./Implementation/Repeated.String)\n- [Sales By Match](./Implementation/Sales.By.Match)\n- [Save the Prisoner](./Implementation/Save.the.Prisoner)\n- [Sequence Equation](./Implementation/Sequence.Equation)\n- [Service Lane](./Implementation/Service.Lane)\n- [Sherlock and Squares](./Implementation/Sherlock.and.Squares)\n- [Strange Counter](./Implementation/Strange.Counter)\n- [Subarray Divison](./Implementation/Subarray.Divison)\n- [Taum and B'day](./Implementation/Taum.and.B'day)\n- [The Bomberman Game](./Implementation/The.Bomberman.Game)\n- [The Grid Search](./Implementation/The.Grid.Search)\n- [The Hurdle Race](./Implementation/The.Hurdle.Race)\n- [The Time in Words](./Implementation/The.Time.in.Words)\n- [Utopian Tree](./Implementation/Utopian.Tree)\n- [Viral Advertising](./Implementation/Viral.Advertising)\n\n\n#### NP Complete\n\n\n#### Recursion\n- [Recursive Digit Sum](./Recursion/Recursive.Digit.Sum)\n\n\n#### Search\n- [Absolute Elements Sums](./Search/Absolute.Elements.Sums)\n- [Almost Integer Rock Garden](./Search/Almost.Integer.Rock.Garden)\n- [Beautiful Quadruples](./Search/Beautiful.Quadruples)\n- [Bike Racers](./Search/Bike.Racers)\n- [Connected Cells in a Grid](./Search/Connected.Cells.in.a.Grid)\n- [Count Luck](./Search/Count.Luck)\n- [Cut the Tree](./Search/Cut.the.Tree)\n- [Distant Pairs](./Search/Distant.Pairs)\n- [Gena Playing Hanoi](./Search/Gena.Playing.Hanoi)\n- [Gridland Metro](./Search/Gridland.Metro)\n- [Hackerland Radio Tr�nmitters](./Search/Hackerland.Radio.Tr�nmitters)\n- [Ice Cream Parlor](./Search/Ice.Cream.Parlor)\n- [King Richard Knights](./Search/King.Richard.Knights)\n- [KnightL on a Chessboard](./Search/KnightL.on.a.Chessboard)\n- [Making Candies](./Search/Making.Candies)\n- [Maximizing Mission Points](./Search/Maximizing.Mission.Points)\n- [Maximum Subarray Sum](./Search/Maximum.Subarray.Sum)\n- [Minimum Loss](./Search/Minimum.Loss)\n- [Missing Numbers](./Search/Missing.Numbers)\n- [Pairs](./Search/Pairs)\n- [Red Knight Shortest Path](./Search/Red.Knight.Shortest.Path)\n- [Sherlock and Array](./Search/Sherlock.and.Array)\n- [Short Palindrome](./Search/Short.Palindrome)\n- [Similar Pair](./Search/Similar.Pair)\n- [Sorted Subsegments](./Search/Sorted.Subsegments)\n- [Task Scheduling](./Search/Task.Scheduling)\n\n\n#### Sorting\n- [Big Sorting](./Sorting/Big.Sorting)\n- [Closest Numbers](./Sorting/Closest.Numbers)\n- [Correctness and the Loop Invariant](./Sorting/Correctness.and.the.Loop.Invariant)\n- [Counting sort 1](./Sorting/Counting.sort.1)\n- [Counting sort 2](./Sorting/Counting.sort.2)\n- [Find the Median](./Sorting/Find.the.Median)\n- [Fraudulent Activity Notifications](./Sorting/Fraudulent.Activity.Notifications)\n- [Insertion sort Advanced Analysis](./Sorting/Insertion.sort.Advanced.Analysis)\n- [Insertion sort Part 1](./Sorting/Insertion.sort.Part.1)\n- [Intro to tutorial Challenges](./Sorting/Intro.to.tutorial.Challenges)\n- [Lily Homework](./Sorting/Lily.Homework)\n- [Quicksort 1 Partition](./Sorting/Quicksort.1.Partition)\n- [Running time of Algorithms](./Sorting/Running.time.of.Algorithms)\n- [The full Counting sort](./Sorting/The.full.Counting.sort)\n\n\n#### Strings\n- [Alternating Characters](./Strings/Alternating.Characters)\n- [Anagram](./Strings/Anagram)\n- [Beautiful Binary String](./Strings/Beautiful.Binary.String)\n- [Caesar Cipher](./Strings/Caesar.Cipher)\n- [Camel Case](./Strings/Camel.Case)\n- [Common Child](./Strings/Common.Child)\n- [Funny String](./Strings/Funny.String)\n- [Game of Thrones](./Strings/Game.of.Thrones)\n- [Gemstones](./Strings/Gemstones)\n- [Hackerrank in a String](./Strings/Hackerrank.in.a.String)\n- [Highest Value Palindrome](./Strings/Highest.Value.Palindrome)\n- [Making Anagrams](./Strings/Making.Anagrams)\n- [Mars Exploration](./Strings/Mars.Exploration)\n- [Maximum Palindromes](./Strings/Maximum.Palindromes)\n- [Missing Characters](./Strings/Missing.Characters)\n- [Palindrome Index](./Strings/Palindrome.Index)\n- [Pangrams](./Strings/Pangrams)\n- [Reverse Words and Swap Cases](./Strings/Reverse.Words.and.Swap.Cases)\n- [Separate the Numbers](./Strings/Separate.the.Numbers)\n- [Sherlock and Anagrams](./Strings/Sherlock.and.Anagrams)\n- [Sherlock and the Valid String](./Strings/Sherlock.and.the.Valid.String)\n- [String Construction](./Strings/String.Construction)\n- [Strong Password](./Strings/Strong.Password)\n- [Super Reduced String](./Strings/Super.Reduced.String)\n- [The Love Letter Mystery](./Strings/The.Love.Letter.Mystery)\n- [Two Characters](./Strings/Two.Characters)\n- [Two Strings](./Strings/Two.Strings)\n- [Weighted Uniform Strings](./Strings/Weighted.Uniform.Strings)\n\n\n#### Warmup\n\n\n#### Others\n- [bin](./Others/bin)\n- [BinarySearchTree](./Others/BinarySearchTree)\n- [DailyCoding](./Others/DailyCoding)\n- [Graph](./Others/Graph)\n- [Heap](./Others/Heap)\n- [LinkedList](./Others/LinkedList)\n- [Recursion](./Others/Recursion)\n- [Search](./Others/Search)\n- [Sorting](./Others/Sorting)\n- [Stack](./Others/Stack)\n- [Tree](./Others/Tree)\n- [Warmup](./Others/Warmup)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthanhngan22%2Fdsa-writeups","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthanhngan22%2Fdsa-writeups","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthanhngan22%2Fdsa-writeups/lists"}