https://github.com/kartheekcic/hackerrank_solutions
This repository contains the solution to a bunch of hackerrank problems that I have solved.
https://github.com/kartheekcic/hackerrank_solutions
algorithms data-structures programming
Last synced: 3 months ago
JSON representation
This repository contains the solution to a bunch of hackerrank problems that I have solved.
- Host: GitHub
- URL: https://github.com/kartheekcic/hackerrank_solutions
- Owner: KARTHEEKCIC
- Created: 2018-07-09T11:05:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-25T14:53:18.000Z (over 3 years ago)
- Last Synced: 2023-03-08T17:32:40.716Z (almost 3 years ago)
- Topics: algorithms, data-structures, programming
- Language: C++
- Homepage:
- Size: 8.71 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
* [10 Days of Statistics](#10-days-of-statistics)
* [Algorithms](#algorithms)
* [Data Structures](#data-structures)
Solutions are coded using C++
# 10 Days of Statistics
| Day | Challenge | Points | Solution |
|:---:|:--------------------------------------------------------------------------------------------------------------------------:|:------:|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
| 0 | [Mean, Median, and Mode](https://www.hackerrank.com/challenges/s10-basic-statistics) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day0/%20Mean%20Median%20Mode/solution.cpp) |
| 0 | [Weighted Mean](https://www.hackerrank.com/challenges/s10-weighted-mean) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day0/Weighted%20Mean/solution.cpp) |
| 1 | [Quartiles](https://www.hackerrank.com/challenges/s10-quartiles) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day1/Quartile/solution.cpp) |
| 1 | [Interquartile Range](https://www.hackerrank.com/challenges/s10-interquartile-range) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day1/Interquartile%20Range/solution.cpp) |
| 1 | [Standard Deviation](https://www.hackerrank.com/challenges/s10-standard-deviation) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day1/Standard%20Deviation/solution.cpp) |
| 2 | [Basic Probability](https://www.hackerrank.com/challenges/s10-mcq-1) | 10 | [solution](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day2/Basic%20Probability/solution.txt)|
| 2 | [More Dice](https://www.hackerrank.com/challenges/s10-mcq-2) | 10 | [solution](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day2/More%20Dice/solution.txt) |
| 2 | [Compound Event Probability](https://www.hackerrank.com/challenges/s10-mcq-3) | 10 | [solution](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day2/Compound%20Event%20Probability/solution.txt) |
| 3 | [Conditional Probability](https://www.hackerrank.com/challenges/s10-mcq-4) | 10 | [solution](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day3/Conditional%20Probability/solution.txt) |
| 3 | [Cards of the Same Suit](https://www.hackerrank.com/challenges/s10-mcq-5) | 10 | [solution](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day3/Cards%20of%20the%20Same%20Suit/solution.txt) |
| 3 | [Drawing Marbles](https://www.hackerrank.com/challenges/s10-mcq-6) | 10 | [solution](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day3/Drawing%20Marbles/solution.txt)|
| 4 | [Binomial Distribution I](https://www.hackerrank.com/challenges/s10-binomial-distribution-1) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day4/%20Binomial%20Distribution%20I/solution.cpp) |
| 4 | [Binomial Distribution II](https://www.hackerrank.com/challenges/s10-binomial-distribution-2) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day4/Binomial%20Distribution%20II/solution.cpp) |
| 4 | [Geometric Distribution I](https://www.hackerrank.com/challenges/s10-geometric-distribution-1) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day4/Geometric%20Distribution%20I/solution.cpp) |
| 4 | [Geometric Distribution II](https://www.hackerrank.com/challenges/s10-geometric-distribution-2) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day4/Geometric%20Distribution%20II/solution.cpp) |
| 5 | [Poisson Distribution I](https://www.hackerrank.com/challenges/s10-poisson-distribution-1) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day5/Poisson%20Distribution%20I/solution.cpp) |
| 5 | [Poisson Distribution II](https://www.hackerrank.com/challenges/s10-poisson-distribution-2) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day5/Poisson%20Distribution%20II/solution.cpp) |
| 5 | [Normal Distribution I](https://www.hackerrank.com/challenges/s10-normal-distribution-1) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day5/Normal%20Distribution%20I/solution.cpp) |
| 5 | [Normal Distribution II](https://www.hackerrank.com/challenges/s10-normal-distribution-2) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day5/Normal%20Distribution%20II/solution.cpp) |
| 6 | [The Central Limit Theorem I](https://www.hackerrank.com/challenges/s10-the-central-limit-theorem-1) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day6/The%20Central%20Limit%20Theorem%20I/solution.cpp) |
| 6 | [The Central Limit Theorem II](https://www.hackerrank.com/challenges/s10-the-central-limit-theorem-2) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day6/The%20Central%20Limit%20Theorem%20II/solution.cpp) |
| 6 | [The Central Limit Theorem III](https://www.hackerrank.com/challenges/s10-the-central-limit-theorem-3) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day6/The%20Central%20Limit%20Theorem%20III/solution.cpp) |
| 7 | [Pearson Correlation Coefficient I](https://www.hackerrank.com/challenges/s10-pearson-correlation-coefficient) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day7/Pearson%20Correlation%20Coefficient%20I/solution.cpp) |
| 7 | [Spearman's Rank Correlation Coefficient](https://www.hackerrank.com/challenges/s10-spearman-rank-correlation-coefficient) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day7/Spearman's%20Rank%20Correlation%20Coefficient/solution.cpp) |
| 8 | [Least Square Regression Line](https://www.hackerrank.com/challenges/s10-least-square-regression-line) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day8/Least%20Square%20Regression%20Line/solution.cpp) |
| 8 | [Pearson Correlation Coefficient II](https://www.hackerrank.com/challenges/s10-mcq-7) | 30 | [solution](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day8/Pearson%20Correlation%20Coefficient%20II/solution.txt) |
| 9 | [Multiple Linear Regression](https://www.hackerrank.com/challenges/s10-multiple-linear-regression) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/10_days_of_stats/Day9/Multiple%20Linear%20Regression/solution.cpp) |
# Algorithms
| Subdomain | Challenge | Points | Solution |
|:-----------------------:|:-----------------------------------------------------------------------------------------------------------------------------------:|:------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
| Sorting | [Correctness and the Loop Invariant](https://www.hackerrank.com/challenges/correctness-invariant/problem?h_r=internal-search) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Sorting/Correctness%20and%20Loop%20Invariant/solution.cpp) |
| Sorting | [Insertion Sort - Part 1](https://www.hackerrank.com/challenges/insertionsort1) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Sorting/Insertion%20Sort-1/solution.cpp) |
| Sorting | [Insertion Sort - Part 2](https://www.hackerrank.com/challenges/insertionsort2) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Sorting/Insertion%20Sort-2/solution.cpp) |
| Sorting | [Running Time of Algorithms](https://www.hackerrank.com/challenges/runningtime) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Sorting/Running%20Time%20of%20Algorithms/solution.cpp) |
| Strings | [HackerRank in a String!](https://www.hackerrank.com/challenges/hackerrank-in-a-string/problem?h_r=internal-search) | 20 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Strings/Hackerrank%20In%20a%20String/solution.cpp) |
| Strings | [Making Anagrams](https://www.hackerrank.com/challenges/making-anagrams/problem?h_r=internal-search) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Strings/Making%20Anagrams/solution.cpp) |
| Graph Theory | [Breadth First Search: Shortest Reach](https://www.hackerrank.com/challenges/bfsshortreach/problem?h_r=internal-search) | 55 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Graph%20Theory/Breadth%20First%20Search/solution.cpp) |
| Graph Theory | [Even Tree](https://www.hackerrank.com/challenges/even-tree/problem?h_r=internal-search) | 50 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Graph%20Theory/Even%20Tree/solution.cpp) |
| Graph Theory | [Journey to the Moon](https://www.hackerrank.com/challenges/journey-to-the-moon/problem?h_r=internal-search) | 50 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Graph%20Theory/Journey%20To%20Moon/solution.cpp) |
| Graph Theory | [Kruskal (MST): Really Special Subtree](https://www.hackerrank.com/challenges/kruskalmstrsub/problem?h_r=internal-search) | 50 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Graph%20Theory/Krushkal%20MST/solution.cpp) |
| Graph Theory | [Prim's (MST) : Special Subtree](https://www.hackerrank.com/challenges/primsmstsub/problem?h_r=internal-search) | 60 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Graph%20Theory/Prim's%20MST/solution.cpp) |
| Graph Theory | [Roads and Libraries](https://www.hackerrank.com/challenges/torque-and-development/problem?h_r=internal-search) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Graph%20Theory/Roads%20And%20Libraries/solution.cpp) |
| Implementation | [Angry Professor](https://www.hackerrank.com/challenges/angry-professor/problem?h_r=internal-search) | 20 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Implementation/Angry%20Professor/solution.cpp) |
| Implementation | [Apple and Orange](https://www.hackerrank.com/challenges/apple-and-orange/problem?h_r=internal-search) | 10 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Implementation/Apple%20and%20Orange/solution.cpp) |
| Implementation | [Between Two Sets](https://www.hackerrank.com/challenges/between-two-sets/problem?h_r=internal-search) | 10 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Implementation/Between%20Two%20Sets/solution.cpp) |
| Implementation | [Bon Appétit](https://www.hackerrank.com/challenges/bon-appetit/problem?h_r=internal-search) | 10 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Implementation/Bon%20App%C3%A9tit/solution.cpp) |
| Implementation | [Circular Array Rotation](https://www.hackerrank.com/challenges/circular-array-rotation/problem?h_r=internal-search) | 20 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Implementation/Circular%20Array%20Rotation/solution.cpp) |
| Implementation | [Day of the Programmer](https://www.hackerrank.com/challenges/day-of-the-programmer/problem?h_r=internal-search) | 15 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Implementation/Day%20of%20the%20Programmer/solution.cpp) |
| Implementation | [Designer PDF Viewer](https://www.hackerrank.com/challenges/designer-pdf-viewer/problem?h_r=internal-search) | 20 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Implementation/Designer%20PDF%20Viewer/solution.cpp) |
| Implementation | [Divisible Sum Pairs](https://www.hackerrank.com/challenges/divisible-sum-pairs/problem?h_r=internal-search) | 10 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Implementation/Divisible%20Sum%20Pairs/solution.cpp) |
| Implementation | [Grading Students](https://www.hackerrank.com/challenges/grading/problem?h_r=internal-search) | 10 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Implementation/Grading%20Students/solution.cpp) |
| Implementation | [Kangaroo](https://www.hackerrank.com/challenges/kangaroo/problem?h_r=internal-search) | 10 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Implementation/Kangaroo/solution.cpp) |
| Implementation | [Forming a Magic Square](https://www.hackerrank.com/challenges/magic-square-forming/problem) | 20 | [solution.py](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Implementation/Forming%20a%20Magic%20Square/magic_square.py)
| Implementation | [Picking Numbers](https://www.hackerrank.com/challenges/picking-numbers/problem?isFullScreen=false) | 20 | [solution.py](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Implementation/Picking%20Numbers/solution.py) |
| Warmup | [A Very Big Sum](https://www.hackerrank.com/challenges/a-very-big-sum/problem?h_r=internal-search) | 10 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Warm%20Up/A%20very%20big%20sum/solution.cpp) |
| Warmup | [Birthday Cake Candles](https://www.hackerrank.com/challenges/birthday-cake-candles/problem?h_r=internal-search) | 10 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Warm%20Up/Birthday%20Cake%20Candles/solution.cpp) |
| Warmup | [Compare the Triplets](https://www.hackerrank.com/challenges/compare-the-triplets/problem?h_r=internal-search) | 10 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Warm%20Up/Compare%20the%20Triplets/solution.cpp) |
| Warmup | [Diagonal Difference](https://www.hackerrank.com/challenges/diagonal-difference/problem?h_r=internal-search) | 10 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Warm%20Up/Diagonal%20Difference/solution.cpp) |
| Warmup | [Mini-Max Sum](https://www.hackerrank.com/challenges/mini-max-sum/problem?h_r=internal-search) | 10 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Warm%20Up/Min%20Max%20Sum/solution.cpp) |
| Warmup | [Plus Minus](https://www.hackerrank.com/challenges/plus-minus/problem?h_r=internal-search) | 10 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Warm%20Up/Plus%20Minus/solution.cpp) |
| Warmup | [Simple Array Sum](https://www.hackerrank.com/challenges/simple-array-sum/problem?h_r=internal-search) | 10 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Warm%20Up/Simple%20Array%20Sum/solution.cpp) |
| Warmup | [Solve Me First](https://www.hackerrank.com/challenges/solve-me-first/problem?h_r=internal-search) | 1 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Warm%20Up/Solve%20Me%20First/solution.cpp) |
| Warmup | [Staircase](https://www.hackerrank.com/challenges/staircase/problem?h_r=internal-search) | 10 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Warm%20Up/Staircase/solution.cpp) |
| Warmup | [Time Conversion](https://www.hackerrank.com/challenges/time-conversion/problem?h_r=internal-search) | 15 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Warm%20Up/Time%20Conversion/solution.cpp) |
| Search | [Ice Cream Parlor](https://www.hackerrank.com/challenges/icecream-parlor/problem?h_r=internal-search) | 30 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Search/Ice%20Cream%20Parlour/solution.cpp) |
| Search | [Missing Numbers](https://www.hackerrank.com/challenges/missing-numbers/problem?h_r=internal-search) | 45 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Search/Missing%20Numbers/solution.cpp) |
| Dynamic Programming | [Bricks Game](https://www.hackerrank.com/challenges/play-game/problem?h_r=internal-search) | 55 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Dynamic%20Programming/Bricks%20Game/solution.cpp) |
| Dynamic Programming | [Fibonacci Modified](https://www.hackerrank.com/challenges/fibonacci-modified/problem?h_r=internal-search) | 45 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Algorithms/Dynamic%20Programming/Fibonacci%20Modified/solution.cpp) |
# Data Structures
| Subdomain | Challenge | Points | Solution |
|:---------------:|:------------------------------------------------------------------------------------------------------------------------------------------------------:|:------:|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
| Arrays | [Array Manipulation](https://www.hackerrank.com/challenges/crush/problem?h_r=internal-search) | 60 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Data%20Structures/Arrays/Array%20Manipulation/solution.cpp) |
| Arrays | [Sparse Arrays](https://www.hackerrank.com/challenges/sparse-arrays) | 25 | [solution.cpp](https://github.com/KARTHEEKCIC/Hackerrank_solutions/blob/master/Data%20Structures/Arrays/Sparse%20Arrays/solution.cpp) |