Skip to content

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HackerRank Solutions in Python3

This is an attempt to learn Python3 by completing challenges on HackerRank. The purpose here is to review coding challenges while learning a new languages. I am still new to the data structures in Python, so some of the solutions may be a little less than elegant:-) I hope to make a second pass to improve upon the code one I get more familure.

This Readme table of contents/progress is autogenerated. See util directory for the tools used to do so, and util/README.md for script execution order.

Index

Algorithms

Warmup

# Challenge Solution
1 Solve Me First Solution
2 Simple Array Sum Solution
3 Compare the Triplets Solution
4 A Very Big Sum Solution
5 Diagonal Difference Solution
6 Plus Minus Solution
7 Staircase Solution
8 Mini-Max Sum Solution
9 Birthday Cake Candles Solution
10 Time Conversion Solution

Implementation

# Challenge Solution
1 Grading Students No Attempt
2 Apple and Orange No Attempt
3 Kangaroo No Attempt
4 Between Two Sets No Attempt
5 Breaking the Records No Attempt
6 Birthday Chocolate No Attempt
7 Divisible Sum Pairs No Attempt
8 Migratory Birds No Attempt
9 Day of the Programmer No Attempt
10 Bon Appétit No Attempt
11 Sock Merchant No Attempt
12 Drawing Book No Attempt
13 Counting Valleys No Attempt
14 Electronics Shop No Attempt
15 Cats and a Mouse No Attempt
16 Forming a Magic Square No Attempt
17 Picking Numbers No Attempt
18 Climbing the Leaderboard No Attempt
19 The Hurdle Race No Attempt
20 Designer PDF Viewer No Attempt
21 Utopian Tree No Attempt
22 Angry Professor No Attempt
23 Beautiful Days at the Movies No Attempt
24 Viral Advertising No Attempt
25 Save the Prisoner! No Attempt
26 Circular Array Rotation No Attempt
27 Sequence Equation No Attempt
28 Jumping on the Clouds: Revisited No Attempt
29 Find Digits No Attempt
30 Extra Long Factorials No Attempt
31 Append and Delete No Attempt
32 Sherlock and Squares No Attempt
33 Library Fine No Attempt
34 Cut the sticks No Attempt
35 Non-Divisible Subset No Attempt
36 Repeated String No Attempt
37 Jumping on the Clouds No Attempt
38 Equalize the Array No Attempt
39 Queen's Attack II No Attempt
40 ACM ICPC Team No Attempt
41 Taum and B'day No Attempt
42 Organizing Containers of Balls No Attempt
43 Encryption No Attempt
44 Bigger is Greater No Attempt
45 Modified Kaprekar Numbers No Attempt
46 Beautiful Triplets No Attempt
47 Minimum Distances No Attempt
48 Halloween Sale No Attempt
49 The Time in Words No Attempt
50 Chocolate Feast No Attempt
51 Service Lane No Attempt
52 Lisa's Workbook No Attempt
53 Flatland Space Stations No Attempt
54 Fair Rations No Attempt
55 Cavity Map No Attempt
56 Manasa and Stones No Attempt
57 The Grid Search No Attempt
58 Happy Ladybugs Solution
59 Strange Counter No Attempt
60 3D Surface Area No Attempt
61 Absolute Permutation No Attempt
62 The Bomberman Game Unsuccessful Attempt
63 Ema's Supercomputer No Attempt
64 Larry's Array No Attempt
65 Almost Sorted No Attempt
66 Matrix Layer Rotation No Attempt

Strings

# Challenge Solution
1 Super Reduced String No Attempt
2 CamelCase No Attempt
3 Strong Password No Attempt
4 Two Characters No Attempt
5 Caesar Cipher No Attempt
6 Mars Exploration No Attempt
7 HackerRank in a String! No Attempt
8 Pangrams No Attempt
9 Weighted Uniform Strings No Attempt
10 Separate the Numbers No Attempt
11 Funny String No Attempt
12 Gemstones No Attempt
13 Alternating Characters No Attempt
14 Beautiful Binary String No Attempt
15 The Love-Letter Mystery No Attempt
16 Determining DNA Health No Attempt
17 Palindrome Index No Attempt
18 Anagram No Attempt
19 Making Anagrams No Attempt
20 Game of Thrones - I No Attempt
21 Two Strings No Attempt
22 String Construction No Attempt
23 Sherlock and the Valid String No Attempt
24 Highest Value Palindrome No Attempt
25 Maximum Palindromes No Attempt
26 Sherlock and Anagrams No Attempt
27 Common Child No Attempt
28 Bear and Steady Gene No Attempt
29 Morgan and a String No Attempt
30 Count Strings No Attempt
31 String Function Calculation No Attempt
32 Build a Palindrome No Attempt
33 Build a String No Attempt
34 Gridland Provinces No Attempt
35 Cards Permutation No Attempt
36 Ashton and String No Attempt
37 String Similarity No Attempt
38 Super Functional Strings No Attempt
39 Circular Palindromes No Attempt
40 Similar Strings No Attempt
41 Save Humanity No Attempt
42 Find Strings No Attempt
43 Palindromic Border No Attempt
44 Two Two No Attempt
45 Two Strings Game No Attempt
46 Letter Islands No Attempt
47 Pseudo-Isomorphic Substrings No Attempt
48 How Many Substrings? No Attempt

Sorting

# Challenge Solution
1 Big Sorting No Attempt
2 Intro to Tutorial Challenges No Attempt
3 Insertion Sort - Part 1 No Attempt
4 Insertion Sort - Part 2 No Attempt
5 Correctness and the Loop Invariant No Attempt
6 Running Time of Algorithms No Attempt
7 Quicksort 1 - Partition No Attempt
8 Counting Sort 1 No Attempt
9 Counting Sort 2 No Attempt
10 The Full Counting Sort No Attempt
11 Closest Numbers No Attempt
12 Find the Median No Attempt
13 Insertion Sort Advanced Analysis No Attempt
14 Fraudulent Activity Notifications No Attempt
15 Lily's Homework No Attempt

Search

# Challenge Solution
1 Hackerland Radio Transmitters No Attempt
2 Gridland Metro No Attempt
3 Ice Cream Parlor No Attempt
4 KnightL on a Chessboard No Attempt
5 Minimum Loss No Attempt
6 Missing Numbers No Attempt
7 Pairs No Attempt
8 Sherlock and Array No Attempt
9 Maximum Subarray Sum No Attempt
10 Connected Cells in a Grid No Attempt
11 Short Palindrome No Attempt
12 Maximizing Mission Points No Attempt
13 Count Luck No Attempt
14 Cut the Tree No Attempt
15 Making Candies No Attempt
16 Gena Playing Hanoi No Attempt
17 Beautiful Quadruples No Attempt
18 Red Knight's Shortest Path No Attempt
19 Bike Racers No Attempt
20 Task Scheduling No Attempt
21 Similar Pair No Attempt
22 Absolute Element Sums No Attempt
23 Almost Integer Rock Garden No Attempt
24 Sorted Subsegments No Attempt
25 Distant Pairs No Attempt
26 King Richard's Knights No Attempt

Graph Theory

# Challenge Solution
1 Frog in Maze No Attempt
2 Roads and Libraries No Attempt
3 Journey to the Moon No Attempt
4 Synchronous Shopping No Attempt
5 Subset Component No Attempt
6 Breadth First Search: Shortest Reach No Attempt
7 Kruskal (MST): Really Special Subtree No Attempt
8 Even Tree No Attempt
9 Snakes and Ladders: The Quickest Way Up No Attempt
10 Dijkstra: Shortest Reach 2 No Attempt
11 The Story of a Tree No Attempt
12 Prim's (MST) : Special Subtree No Attempt
13 Toll Cost Digits No Attempt
14 Real Estate Broker No Attempt
15 Clique No Attempt
16 Minimum Penalty Path No Attempt
17 Demanding Money No Attempt
18 The Value of Friendship No Attempt
19 Coprime Paths No Attempt
20 Minimum MST Graph No Attempt
21 Jack goes to Rapture No Attempt
22 Crab Graphs No Attempt
23 Bead Ornaments No Attempt
24 Jeanie's Route No Attempt
25 Floyd : City of Blinding Lights No Attempt
26 Roads in HackerLand No Attempt
27 Kingdom Connectivity No Attempt
28 Computer Game No Attempt
29 Rust & Murderer No Attempt
30 Problem solving No Attempt
31 Journey Scheduling No Attempt
32 Matrix No Attempt
33 Recording Episodes No Attempt
34 Repair Roads No Attempt
35 Kth Ancestor No Attempt
36 ByteLandian Tours No Attempt
37 Find the Path No Attempt
38 Savita And Friends No Attempt
39 Liars No Attempt
40 Jumping Rooks No Attempt
41 Tripartite Matching No Attempt
42 Tree Flow No Attempt
43 DAG Queries No Attempt
44 Favorite sequence No Attempt
45 Jogging Cats No Attempt
46 Quadrant Queries No Attempt
47 Hacker Country No Attempt
48 HackerX No Attempt
49 Huarongdao No Attempt
50 Training the army No Attempt
51 Jim and his LAN Party No Attempt
52 Travel in HackerLand No Attempt
53 Alex vs Fedor No Attempt
54 Vertical Paths No Attempt
55 Drive No Attempt
56 Travelling Salesman in a Grid No Attempt
57 Road Network No Attempt
58 Going to the Office No Attempt
59 Tree Splitting No Attempt
60 Ticket No Attempt
61 DFS Edges No Attempt
62 Diameter Minimization No Attempt
63 Airports No Attempt
64 Definite Random Walks No Attempt

Greedy

# Challenge Solution
1 Minimum Absolute Difference in an Array No Attempt
2 Marc's Cakewalk No Attempt
3 Grid Challenge No Attempt
4 Luck Balance No Attempt
5 Maximum Perimeter Triangle No Attempt
6 Candies No Attempt
7 Beautiful Pairs No Attempt
8 Sherlock and The Beast No Attempt
9 Priyanka and Toys No Attempt
10 Largest Permutation No Attempt
11 Mark and Toys No Attempt
12 Greedy Florist No Attempt
13 Max Min No Attempt
14 Jim and the Orders No Attempt
15 Permuting Two Arrays No Attempt
16 Cutting Boards No Attempt
17 Reverse Shuffle Merge No Attempt
18 Goodland Electricity No Attempt
19 Cloudy Day No Attempt
20 Chief Hopper No Attempt
21 Sherlock and MiniMax No Attempt
22 Accessory Collection No Attempt
23 Team Formation No Attempt
24 Fighting Pits No Attempt

Dynamic Programming

# Challenge Solution
1 The Coin Change Problem No Attempt
2 Equal No Attempt
3 Sherlock and Cost No Attempt
4 Construct the Array No Attempt
5 Kingdom Division No Attempt
6 Sam and substrings No Attempt
7 Fibonacci Modified No Attempt
8 Abbreviation No Attempt
9 Prime XOR No Attempt
10 Decibinary Numbers No Attempt
11 Fair Cut No Attempt
12 The Maximum Subarray No Attempt
13 Angry Children 2 No Attempt
14 Sherlock's Array Merging Algorithm No Attempt
15 Prime Digit Sums No Attempt
16 HackerRank City No Attempt
17 Summing Pieces No Attempt
18 Mr K marsh No Attempt
19 Substring Diff No Attempt
20 Xor and Sum No Attempt
21 Lego Blocks No Attempt
22 Brick Tiling No Attempt
23 Alien Languages No Attempt
24 Stock Maximize No Attempt
25 Two Robots No Attempt
26 Cut Tree No Attempt
27 Tara's Beautiful Permutations No Attempt
28 Wet Shark and Two Subsequences No Attempt
29 Nikita and the Game No Attempt
30 Choosing White Balls No Attempt
31 Mandragora Forest No Attempt
32 Red John is Back No Attempt
33 LCS Returns No Attempt
34 Grid Walking No Attempt
35 Matrix Land No Attempt
36 Knapsack No Attempt
37 Bricks Game No Attempt
38 The Longest Increasing Subsequence No Attempt
39 Coin on the Table No Attempt
40 The Longest Common Subsequence No Attempt
41 Play with words No Attempt
42 Black and White Tree No Attempt
43 Counting Special Sub-Cubes No Attempt
44 Interval Selection No Attempt
45 String Reduction No Attempt
46 Far Vertices No Attempt
47 Counting Road Networks No Attempt
48 Superman Celebrates Diwali No Attempt
49 Hexagonal Grid No Attempt
50 Queens on Board No Attempt
51 Shashank and the Palindromic Strings No Attempt
52 Points in a Plane No Attempt
53 Turn Off the Lights No Attempt
54 Animal Transport No Attempt
55 The Indian Job No Attempt
56 Requirement No Attempt
57 A Super Hero No Attempt
58 Clues on a Binary Path No Attempt
59 Road Maintenance No Attempt
60 Billboards No Attempt
61 Beautiful Strings No Attempt
62 Covering the stains No Attempt
63 GCD Matrix No Attempt
64 Fairy Chess No Attempt
65 Suffix Rotation No Attempt
66 New Year Present No Attempt
67 Travel around the world No Attempt
68 Longest Palindromic Subsequence No Attempt
69 Candles Counting No Attempt
70 Hyper Strings No Attempt
71 Swap Permutation No Attempt
72 Extremum Permutations No Attempt
73 Square Subsequences No Attempt
74 Dorsey Thief No Attempt
75 Mining No Attempt
76 Police Operation No Attempt
77 Zurikela's Graph No Attempt
78 Modify The Sequence No Attempt
79 Longest Mod Path No Attempt
80 P-sequences No Attempt
81 Robot No Attempt
82 Lucky Numbers No Attempt
83 Unfair Game No Attempt
84 Oil Well No Attempt
85 Find the Seed No Attempt
86 The Blacklist No Attempt
87 Tree Pruning No Attempt
88 Ones and Twos No Attempt
89 Count Scorecards No Attempt
90 Vim War No Attempt
91 Best spot No Attempt
92 Divisible Numbers No Attempt
93 Unique Divide And Conquer No Attempt
94 King and Four Sons No Attempt
95 Dortmund Dilemma No Attempt
96 Super Kth LIS No Attempt
97 Counting the Ways No Attempt
98 Hard Disk Drives No Attempt
99 Separate the chocolate No Attempt

Constructive Algorithms

# Challenge Solution
1 Lena Sort No Attempt
2 Flipping the Matrix No Attempt
3 Gaming Array No Attempt
4 New Year Chaos No Attempt
5 Bonetrousle No Attempt
6 Yet Another KMP Problem No Attempt
7 Beautiful 3 Set No Attempt
8 Inverse RMQ No Attempt
9 Two Subarrays No Attempt
10 Lovely Triplets No Attempt
11 Array Construction No Attempt

Bit Manipulation

# Challenge Solution
1 Lonely Integer No Attempt
2 Maximizing XOR No Attempt
3 Counter game No Attempt
4 Xor-sequence No Attempt
5 Sum vs XOR No Attempt
6 The Great XOR No Attempt
7 Flipping bits No Attempt
8 Yet Another Minimax Problem No Attempt
9 Sansa and XOR No Attempt
10 AND Product No Attempt
11 Winning Lottery Ticket No Attempt
12 Xoring Ninja No Attempt
13 Cipher No Attempt
14 XOR Matrix No Attempt
15 What's Next? No Attempt
16 String Transmission No Attempt
17 A or B No Attempt
18 Manipulative Numbers No Attempt
19 Stone Game No Attempt
20 2's complement No Attempt
21 Changing Bits No Attempt
22 XOR key No Attempt
23 Maximizing the Function No Attempt
24 XOR Subsequences No Attempt
25 Iterate It No Attempt
26 Hamming Distance No Attempt
27 Mixing proteins No Attempt

Recursion

# Challenge Solution
1 The Power Sum No Attempt
2 Crossword Puzzle No Attempt
3 Recursive Digit Sum No Attempt
4 Simplified Chess Engine No Attempt
5 Password Cracker No Attempt
6 Arithmetic Expressions No Attempt
7 Stone Division, Revisited No Attempt
8 K Factorization No Attempt
9 Bowling Pins No Attempt
10 Simplified Chess Engine II No Attempt
11 Repetitive K-Sums No Attempt

Game Theory

# Challenge Solution
1 Game of Stones No Attempt
2 Tower Breakers No Attempt
3 A Chessboard Game No Attempt
4 Introduction to Nim Game No Attempt
5 Misère Nim No Attempt
6 Nimble Game No Attempt
7 Alice and Bob's Silly Game No Attempt
8 Poker Nim No Attempt
9 Tower Breakers, Revisited! No Attempt
10 Tower Breakers, Again! No Attempt
11 Zero-Move Nim No Attempt
12 Chessboard Game, Again! No Attempt
13 Digits Square Board No Attempt
14 Fun Game No Attempt
15 Stone Division No Attempt
16 Chocolate in Box No Attempt
17 Kitty and Katty No Attempt
18 Powers Game No Attempt
19 Deforestation No Attempt
20 Bob and Ben No Attempt
21 Tower Breakers - The Final Battle No Attempt
22 Simple Game No Attempt
23 Permutation game No Attempt
24 Move the Coins No Attempt
25 Play on benders No Attempt
26 New Year Game No Attempt
27 Stone Piles No Attempt
28 Chocolate Game No Attempt
29 The Prime Game No Attempt
30 Vertical Rooks No Attempt
31 A stones game No Attempt
32 Tastes Like Winning No Attempt

NP Complete

# Challenge Solution
1 Walking the Approximate Longest Path No Attempt
2 Sam's Puzzle (Approximate) No Attempt
3 Spies, Revised No Attempt
4 TBS Problem No Attempt

Debugging

# Challenge Solution
1 Prime Dates No Attempt
2 XOR Strings No Attempt
3 Smart Number No Attempt
4 Minimum Operations No Attempt
5 Zig Zag Sequence No Attempt

Data Structures

Arrays

# Challenge Solution
1 Arrays - DS No Attempt
2 2D Array - DS No Attempt
3 Dynamic Array No Attempt
4 Left Rotation No Attempt
5 Sparse Arrays No Attempt
6 Array Manipulation No Attempt

Linked Lists

# Challenge Solution
1 Print the Elements of a Linked List No Attempt
2 Insert a Node at the Tail of a Linked List No Attempt
3 Insert a node at the head of a linked list No Attempt
4 Insert a node at a specific position in a linked list No Attempt
5 Delete a Node No Attempt
6 Print in Reverse No Attempt
7 Reverse a linked list No Attempt
8 Compare two linked lists No Attempt
9 Merge two sorted linked lists No Attempt
10 Get Node Value No Attempt
11 Delete duplicate-value nodes from a sorted linked list No Attempt
12 Cycle Detection No Attempt
13 Find Merge Point of Two Lists No Attempt
14 Inserting a Node Into a Sorted Doubly Linked List No Attempt
15 Reverse a doubly linked list No Attempt

Trees

# Challenge Solution
1 Tree: Preorder Traversal No Attempt
2 Tree: Postorder Traversal No Attempt
3 Tree: Inorder Traversal No Attempt
4 Tree: Height of a Binary Tree No Attempt
5 Tree : Top View No Attempt
6 Tree: Level Order Traversal No Attempt
7 Binary Search Tree : Insertion No Attempt
8 Tree: Huffman Decoding No Attempt
9 Binary Search Tree : Lowest Common Ancestor No Attempt
10 Swap Nodes [Algo] No Attempt
11 Kitty's Calculations on a Tree No Attempt
12 Is This a Binary Search Tree? No Attempt
13 Square-Ten Tree No Attempt
14 Balanced Forest No Attempt
15 Jenny's Subtrees No Attempt
16 Tree Coordinates No Attempt
17 Array Pairs No Attempt

Balanced Trees

# Challenge Solution
1 Self Balancing Tree No Attempt
2 Array and simple queries No Attempt
3 Median Updates No Attempt

Stacks

# Challenge Solution
1 Maximum Element No Attempt
2 Balanced Brackets No Attempt
3 Equal Stacks No Attempt
4 Game of Two Stacks No Attempt
5 Largest Rectangle No Attempt
6 Simple Text Editor No Attempt
7 Poisonous Plants No Attempt
8 AND xor OR No Attempt
9 Waiter No Attempt

Queues

# Challenge Solution
1 Queue using Two Stacks No Attempt
2 Castle on the Grid No Attempt
3 Down to Zero II No Attempt
4 Truck Tour No Attempt
5 Queries with Fixed Length No Attempt

Heap

# Challenge Solution
1 QHEAP1 No Attempt
2 Jesse and Cookies No Attempt
3 Find the Running Median No Attempt
4 Minimum Average Waiting Time No Attempt

Disjoint Set

# Challenge Solution
1 Merging Communities No Attempt
2 Components in a graph No Attempt
3 Kundu and Tree No Attempt
4 Super Maximum Cost Queries No Attempt

Multiple Choice

# Challenge Solution
1 Data Structures MCQ 1 No Attempt
2 Data Structures MCQ 2 No Attempt
3 Data Structures MCQ 3 No Attempt

Trie

# Challenge Solution
1 Contacts No Attempt
2 No Prefix Set No Attempt

Advanced

# Challenge Solution
1 Kindergarten Adventures No Attempt
2 Cube Summation No Attempt
3 Mr. X and His Shots No Attempt
4 Direct Connections No Attempt
5 Subsequence Weighting No Attempt
6 Jim and the Skyscrapers No Attempt
7 Palindromic Subsets No Attempt
8 Counting On a Tree No Attempt
9 Polynomial Division No Attempt
10 Costly Intervals No Attempt
11 The Strange Function No Attempt
12 Self-Driving Bus No Attempt
13 Unique Colors No Attempt
14 Fibonacci Numbers Tree No Attempt
15 Pair Sums No Attempt
16 Functional Palindromes No Attempt
17 Lazy White Falcon No Attempt
18 Ticket to Ride No Attempt
19 Heavy Light White Falcon No Attempt
20 Sum of the Maximums No Attempt
21 Number Game on a Tree No Attempt
22 Heavy Light 2 White Falcon No Attempt
23 Library Query No Attempt
24 Starfleet No Attempt
25 Almost Equal - Advanced No Attempt
26 Almost sorted interval No Attempt
27 Burger Happiness No Attempt
28 Roy and alpha-beta trees No Attempt
29 Coloring Tree No Attempt
30 Recalling Early Days GP with Trees No Attempt
31 Swaps and Sum No Attempt
32 Arithmetic Progressions No Attempt
33 Coolguy and Two Subsequences No Attempt
34 White Falcon And Tree No Attempt
35 Subtrees And Paths No Attempt
36 Triplets No Attempt
37 Beautiful Segments No Attempt
38 Divisibility No Attempt
39 BST maintenance No Attempt
40 Find Maximum Index Product No Attempt
41 Taxicab Driver's Problem No Attempt
42 Jaggu Playing with Balloons No Attempt
43 Dynamic Summation No Attempt
44 Two Array Problem No Attempt
45 Rooted Tree No Attempt
46 The crazy helix No Attempt
47 Network administration No Attempt
48 Easy Addition No Attempt
49 Find the permutation No Attempt
50 Company Retreat No Attempt
51 Box Operations No Attempt
52 Max Transform No Attempt
53 Array and Queries No Attempt

Mathematics

Fundamentals

# Challenge Solution
1 Find the Point No Attempt
2 Maximum Draws No Attempt
3 Handshake No Attempt
4 Minimum Height Triangle No Attempt
5 Army Game No Attempt
6 Leonardo's Prime Factors No Attempt
7 Connecting Towns No Attempt
8 Cutting Paper Squares No Attempt
9 Summing the N series No Attempt
10 Sherlock and Moving Tiles No Attempt
11 Best Divisor No Attempt
12 Restaurant No Attempt
13 Reverse Game No Attempt
14 Strange Grid Again No Attempt
15 Diwali Lights No Attempt
16 Sherlock and Divisors No Attempt
17 Sherlock and Permutations No Attempt
18 Even Odd Query No Attempt
19 Special Multiple No Attempt
20 Matrix Tracing No Attempt
21 Die Hard 3 No Attempt
22 Halloween party No Attempt
23 Filling Jars No Attempt
24 Is Fibo No Attempt
25 K Candy Store No Attempt
26 Sumar and the Floating Rocks No Attempt
27 Russian Peasant Exponentiation No Attempt
28 Bus Station No Attempt
29 Most Distant No Attempt
30 Jim and the Jokes No Attempt
31 Possible Path No Attempt
32 Mutual Recurrences No Attempt

Number Theory

# Challenge Solution
1 Constructing a Number No Attempt
2 Closest Number No Attempt
3 Sherlock and GCD No Attempt
4 Primitive Problem No Attempt
5 Identify Smith Numbers No Attempt
6 Euler's Criterion No Attempt
7 Twins No Attempt
8 Fibonacci Finding (easy) No Attempt
9 Little Panda Power No Attempt
10 Mehta and his Laziness No Attempt
11 Minimal Distance to Pi No Attempt
12 Help Mike No Attempt
13 Dancing in Pairs No Attempt
14 The Chosen One No Attempt
15 Power of large numbers No Attempt
16 Salary Blues No Attempt
17 Akhil and GF No Attempt
18 Little Ashish's Huge Donation No Attempt
19 Manasa and Factorials No Attempt
20 Number of zero-xor subsets No Attempt
21 Breaking Sticks No Attempt
22 Cheese and Random Toppings No Attempt
23 Easy GCD No Attempt
24 Satisfactory Pairs No Attempt
25 Manasa loves Maths No Attempt
26 Largest Non-Coprime Submatrix No Attempt
27 John and GCD list No Attempt
28 Divisor Exploration II No Attempt
29 Strange numbers No Attempt
30 Easy math No Attempt
31 Equations No Attempt
32 Binomial Coefficients No Attempt
33 Lucy and Flowers No Attempt
34 Divisor Exploration 3 No Attempt
35 Superpowers of 2 No Attempt
36 Sherlock Puzzle No Attempt
37 Divisibility of Power No Attempt
38 Devu Vs Police No Attempt
39 A Weird Function No Attempt
40 Coprime Conundrum No Attempt
41 Long Permutation No Attempt
42 Megaprime Numbers No Attempt
43 Divisor Exploration No Attempt
44 Ants No Attempt
45 Ichigo and Cubes No Attempt
46 Scalar Products No Attempt
47 Prime Sum No Attempt
48 Number of M-Coprime Arrays No Attempt
49 Hyperrectangle GCD No Attempt
50 nCr No Attempt
51 Chandrima and XOR No Attempt
52 Find The Operations No Attempt
53 Fibonacci GCD No Attempt
54 Ichigo and Rooms No Attempt
55 A Very Special Multiple No Attempt
56 Fibonacci LCM No Attempt
57 Unfriendly Numbers No Attempt
58 HackerRank Number No Attempt
59 Ajob Subsequence No Attempt
60 GCD Product No Attempt
61 The Bouncing Flying Ball No Attempt
62 Eugene and Big Number No Attempt
63 Matrix Tree No Attempt
64 Period No Attempt
65 Nice Clique No Attempt
66 Order of Prime in Factorial No Attempt
67 Degree of an algebraic number No Attempt
68 Computer Virus No Attempt
69 GCD Sequence No Attempt
70 Coprime Power Sum No Attempt
71 Fun with 1010 No Attempt
72 GCD mocktail No Attempt
73 Laser Beam No Attempt
74 Down the Rabbit Hole No Attempt
75 Minion of the Year No Attempt
76 Bear And Cryptography No Attempt

Combinatorics

# Challenge Solution
1 nCr table No Attempt
2 Coinage No Attempt
3 Building a List No Attempt
4 Merge List No Attempt
5 A Chocolate Fiesta No Attempt
6 Mehta and the Typical Supermarket No Attempt
7 Choose and Calculate No Attempt
8 Sherlock and Pairs No Attempt
9 Consecutive Subsequences No Attempt
10 Anti-Palindromic Strings No Attempt
11 Lexicographic paths No Attempt
12 Number List No Attempt
13 Game Of Thrones - II No Attempt
14 Journey to Mars No Attempt
15 Super Humble Matrix No Attempt
16 Volleyball Match No Attempt
17 Picking Cards No Attempt
18 Cyclic Quadruples No Attempt
19 Permutation Problem No Attempt
20 Longest Increasing Subsequence Arrays No Attempt
21 Digit Products No Attempt
22 Towers No Attempt
23 Introduction to Representation Theory No Attempt
24 Tile Painting: Revisited! No Attempt
25 Beautiful Sets No Attempt
26 Alien Flowers No Attempt
27 Tower 3-coloring No Attempt
28 Count Fox Sequences No Attempt
29 Manasa and Combinatorics No Attempt
30 Coloring Grid No Attempt
31 Grid Lines No Attempt
32 Div and Span No Attempt
33 Highway Construction No Attempt
34 Value of all Permutations No Attempt
35 Farmer No Attempt
36 Irresponsible Numbers No Attempt
37 Academy Surveillance No Attempt
38 Parity Party No Attempt
39 Ichigo and Revenge No Attempt
40 String Modification No Attempt
41 Binomial Coefficients Revenge No Attempt
42 Circles Math No Attempt
43 To Heap or Not to Heap No Attempt
44 Sasha and Swaps No Attempt
45 k-balance number No Attempt
46 Powercode No Attempt
47 Insane DFS No Attempt
48 How Many Trees? No Attempt
49 Strongly Connected Digraphs No Attempt
50 Robanukkah Tree No Attempt
51 Teleporters No Attempt
52 Costly Graphs No Attempt
53 Bridges and Harbors No Attempt
54 Count Palindromes No Attempt
55 Cycle Representation No Attempt
56 To Infinity and Beyond No Attempt
57 Byteland Itinerary No Attempt

Algebra

# Challenge Solution
1 Combo Meal No Attempt
2 Stepping Stones Game No Attempt
3 Shashank and List No Attempt
4 Triangle Numbers No Attempt
5 Little Gaurav and Sequence No Attempt
6 Easy sum No Attempt
7 Difference and Product No Attempt
8 Pythagorean Triple No Attempt
9 Pairwise Sum and Divide No Attempt
10 Number Groups No Attempt
11 Tell the Average No Attempt
12 Game Of Rotation No Attempt
13 Hackonacci Matrix Rotations No Attempt
14 Power Calculation No Attempt
15 Wet Shark and 42 No Attempt
16 Sherlock and Square No Attempt
17 Birthday Triplets No Attempt
18 Sherlock and Queries No Attempt
19 Manasa and Sub-sequences No Attempt
20 Count Solutions No Attempt
21 Summing the K-N series No Attempt
22 XOR love No Attempt
23 Manasa and Calculations No Attempt
24 Simple One No Attempt
25 The Simplest Sum No Attempt
26 Circle Summation No Attempt
27 Girlfriend & Necklace No Attempt
28 Manasa and Pizza No Attempt
29 Signal Tower No Attempt
30 Summing the K-N-R Series No Attempt
31 The Axis of Awesome No Attempt
32 Emma and sum of products No Attempt
33 Fun With Series No Attempt
34 Permutation Equations No Attempt
35 Counting Equations No Attempt
36 Calculate It No Attempt
37 Rational Sums No Attempt
38 Introduction to Algebra No Attempt
39 Cross Matrix No Attempt
40 Introduction to Algebra 2 No Attempt
41 The Black Box No Attempt
42 Black Hole No Attempt
43 Minimal Cyclic Shift No Attempt

Geometry

# Challenge Solution
1 Points On a Line No Attempt
2 Rectangular Game No Attempt
3 Sherlock and Counting No Attempt
4 Sherlock and Planes No Attempt
5 Circle City No Attempt
6 Xrange's Pancakes No Attempt
7 Spheres No Attempt
8 Baby Step, Giant Step No Attempt
9 Points on a Rectangle No Attempt
10 A Circle and a Square No Attempt
11 Jim Beam No Attempt
12 Hyperspace Travel No Attempt
13 Solve Equations No Attempt
14 Stars No Attempt
15 Polar Angles No Attempt
16 Sherlock and Geometry No Attempt
17 Good Point No Attempt
18 Hard Homework No Attempt
19 Polygons No Attempt
20 Polygon No Attempt
21 Meeting Point No Attempt
22 House Location No Attempt
23 Jim and the Challenge No Attempt
24 The Letter N No Attempt
25 Best Sum No Attempt
26 Geometry Queries No Attempt
27 Count Triangles No Attempt
28 Isosceles Triangles No Attempt
29 Elastic rope No Attempt
30 Painting Figures No Attempt

Probability

# Challenge Solution
1 Random number generator No Attempt
2 Sherlock and Probability No Attempt
3 Day 4: Normal Distribution #1 No Attempt
4 Day 4: Normal Distribution #2 No Attempt
5 Vertical Sticks No Attempt
6 Normal Distribution #3 No Attempt
7 B'day Gift No Attempt
8 Extremely Dangerous Virus No Attempt
9 The Matchstick Experiment No Attempt
10 Palindromes No Attempt
11 Lazy Sorting No Attempt
12 Binomial Distribution #1 No Attempt
13 Binomial Distribution #2 No Attempt
14 Binomial Distribution #3 No Attempt
15 Kevin and Expected Value No Attempt
16 The White Lotus and Caterpillar game No Attempt
17 Assignment Problem No Attempt
18 Connect the country No Attempt
19 Random Integers Random Bits No Attempt
20 Dice Stats No Attempt
21 Magic Number Tree No Attempt
22 Random Number Generator No Attempt
23 Zombie March*** No Attempt
24 Bear and Dancing No Attempt
25 Randomness No Attempt
26 Random No Attempt
27 Mathematical Expectation No Attempt
28 Colorful Polygon No Attempt

Linear Algebra Foundations

# Challenge Solution
1 Linear Algebra Foundations #1 - Matrix Addition No Attempt
2 Linear Algebra Foundations #2 - Matrix Subtraction No Attempt
3 Linear Algebra Foundations #3- Matrix Multiplication No Attempt
4 Linear Algebra Foundations #4- Matrix Multiplication No Attempt
5 Linear Algebra Foundations #5 - The 100th Power of a Matrix No Attempt
6 Linear Algebra Foundations #6 - An Equation involving Matrices No Attempt
7 Linear Algebra Foundations #7 - The 1000th Power of a Matrix No Attempt
8 Linear Algebra Foundations #8 - Systems of Equations No Attempt
9 Linear Algebra Foundations #9 - Eigenvalues No Attempt
10 Linear Algebra Foundations #10 - Eigenvectors No Attempt
11 Determinant of the matrix #1 No Attempt
12 Determinant of the matrix #2 No Attempt
13 Determinant of the matrix #3 No Attempt
14 Eigenvalue of a Matrix I No Attempt
15 Eigenvalue of matrix #2 No Attempt
16 Eigenvalue of matrix #3 No Attempt
17 Eigenvalue of matrix #4 No Attempt

About

Learning a new language, Practice Coding Challenges, etc.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages