This repository consists list of solution files for HackerRank website Python practice questions.
These Python practice Questions can be found in HackerRank.
This repository is prepared for the reference purpose of the UnSolved questions, THIS CODE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. Please refer to LICENCE
Raise your voice on GitHub issues to let me know if I've broked it somewhere.
Stuff used to make this:
Meet the Author:
I always love talking with people to build big things. catch me @ My studio
Page 2
This repository consists list of solution files for HackerRank website Python practice questions.
These Python practice Questions can be found in HackerRank.
This repository is prepared for the reference purpose of the UnSolved questions, THIS CODE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. Please refer to LICENCE
Raise your voice on GitHub issues to let me know if I've broked it somewhere.
Stuff used to make this:
Meet the Author:
I always love talking with people to build big things. catch me @ My studio
Python-Hackerrank-Solutions
Code files:
- Say Hello, World! With Python
- Python If-Else
- Arithmetic Operators
- Python: Division
- Loops
- Write a function
- Print Function
- List Comprehensions
- Find the Runner Up Score
- Nested Lists
- Finding the Percentage
- Lists
- Tuples
- sWAP cASE
- String Split and Join
- What's your name
- Mutations
- Find a String
- String Validators
- Text Alignment
- Text Wrap
- Alphabet Rangoli
- Arrays
- Shape and Reshape
- Transpose and Flatten
- Concatenate
- Zeros and Ones
- Eye and Identity
- Array Mathematics
- Floor,Ceil and Rint
- Sum and Prod
- Min and Max
- Mean, Variance and Standard Deviation
- Dot and Cross
- Inner and Outer
- Polynomials
- Linear Algebra
- String Formatting
- Capitalize!
- The Minion Game
- Merge the Tools
- itertools.product()
- collections.counter()
- itertools.permutations()
- Polar Coordinates
- DefaultDict Tutorial
- Collections.namedtuple()
- Find Angle MBC
- Collections.OrderedDict()
- itertools.combinations()
- itertools.combinations_with_replacement()
- Word Order
- Collections.deque()
- Compress the string!
- CompanyLogo
- Piling Up!
- Triangle Quest 2
- iterables and iterators
- Mod Divmod
- Power - Mod Power
- Maximize it!
- set.difference() Operation
- Integers Come in All Sizes
- Set.symmetric_difference() Operation
- Set Mutations
- Triangle Quest
- The Captain's Room
- Check Subset
- Check Strict Superset
- Find the Torsional Angle
- ginortS
- Group(),Groups() and GroupDict()
- re.findall() & re.finditer()
- Hex Color Code
- HTML Parser - Part 1
- HTML Parser - Part 2
- Detect HTML Tags, Attributes and Attribute Values
HackerRank Solutions in Python3
This is a collection of my HackerRank solutions written in Python3. The goal of this series is to keep the code as concise and efficient as possible. It might not be perfect due to the limitation of my ability and skill, so feel free to make suggestions if you spot something that can be improved.
The index below is auto-generated. See update-challenge-list.py and generate-indices.py.
Index
- Algorithms (60/409)
- Data Structures (11/114)
- Mathematics (1/250)
Algorithms
- Warmup (9/9)
- Implementation (8/59)
- Strings (11/45)
- Sorting (5/18)
- Search (3/23)
- Graph Theory (2/58)
- Greedy (8/22)
- Dynamic Programming (8/94)
- Constructive Algorithms (2/11)
- Bit Manipulation (0/25)
- Recursion (3/10)
- Game Theory (1/31)
- NP Complete (0/4)
Warmup
#
Challenge
Solution
1 |
Solve Me First |
Solution & Comment |
2 |
Simple Array Sum |
Solution & Comment |
3 |
Compare the Triplets |
Solution & Comment |
4 |
A Very Big Sum |
Solution & Comment |
5 |
Diagonal Difference |
Solution & Comment |
6 |
Plus Minus |
Solution & Comment |
7 |
Staircase |
Solution & Comment |
8 |
Mini-Max Sum |
Solution & Comment |
9 |
Time Conversion |
Solution & Comment |
Implementation
#
Challenge
Solution
1 |
Grading Students |
Solution & Comment |
2 |
Apple and Orange |
Solution & Comment |
3 |
Kangaroo |
Solution & Comment |
4 |
Between Two Sets |
Solution & Comment |
5 |
Divisible Sum Pairs |
Solution & Comment |
6 |
Breaking the Records |
WIP |
7 |
Migratory Birds |
WIP |
8 |
Bon App¨¦tit |
Solution & Comment |
9 |
Sock Merchant |
Solution & Comment |
10 |
Drawing Book |
WIP |
11 |
Cats and a Mouse |
WIP |
12 |
Picking Numbers |
WIP |
13 |
Climbing the Leaderboard |
WIP |
14 |
The Hurdle Race |
WIP |
15 |
Designer PDF Viewer |
WIP |
16 |
Utopian Tree |
WIP |
17 |
Angry Professor |
WIP |
18 |
Beautiful Days at the Movies |
WIP |
19 |
Viral Advertising |
WIP |
20 |
Save the Prisoner! |
WIP |
21 |
Circular Array Rotation |
WIP |
22 |
Sequence Equation |
WIP |
23 |
Jumping on the Clouds: Revisited |
WIP |
24 |
Find Digits |
WIP |
25 |
Extra Long Factorials |
WIP |
26 |
Append and Delete |
WIP |
27 |
Sherlock and Squares |
WIP |
28 |
Library Fine |
WIP |
29 |
Cut the sticks |
WIP |
30 |
Non-Divisible Subset |
WIP |
31 |
Repeated String |
WIP |
32 |
Jumping on the Clouds |
WIP |
33 |
Equalize the Array |
WIP |
34 |
Queen's Attack II |
WIP |
35 |
ACM ICPC Team |
WIP |
36 |
Taum and B'day |
WIP |
37 |
Organizing Containers of Balls |
WIP |
38 |
Encryption |
WIP |
39 |
Bigger is Greater |
WIP |
40 |
Modified Kaprekar Numbers |
WIP |
41 |
Beautiful Triplets |
WIP |
42 |
Minimum Distances |
WIP |
43 |
The Time in Words |
WIP |
44 |
Chocolate Feast |
WIP |
45 |
Service Lane |
WIP |
46 |
Lisa's Workbook |
WIP |
47 |
Flatland Space Stations |
WIP |
48 |
Fair Rations |
WIP |
49 |
Cavity Map |
WIP |
50 |
Manasa and Stones |
WIP |
51 |
The Grid Search |
WIP |
52 |
Happy Ladybugs |
WIP |
53 |
Strange Counter |
WIP |
54 |
Absolute Permutation |
WIP |
55 |
The Bomberman Game |
WIP |
56 |
Ema's Supercomputer |
WIP |
57 |
Larry's Array |
Solution & Comment |
58 |
Almost Sorted |
WIP |
59 |
Matrix Layer Rotation |
WIP |
Strings
#
Challenge
Solution
1 |
Super Reduced String |
Solution & Comment |
2 |
CamelCase |
WIP |
3 |
Two Characters |
Solution & Comment |
4 |
Caesar Cipher |
WIP |
5 |
Mars Exploration |
WIP |
6 |
HackerRank in a String! |
Solution & Comment |
7 |
Pangrams |
WIP |
8 |
Weighted Uniform Strings |
WIP |
9 |
Separate the Numbers |
WIP |
10 |
Funny String |
Solution & Comment |
11 |
Gemstones |
WIP |
12 |
Alternating Characters |
WIP |
13 |
Beautiful Binary String |
Solution & Comment |
14 |
The Love-Letter Mystery |
Solution & Comment |
15 |
Determining DNA Health |
WIP |
16 |
Palindrome Index |
Solution & Comment |
17 |
Anagram |
Solution & Comment |
18 |
Making Anagrams |
Solution & Comment |
19 |
Game of Thrones - I |
WIP |
20 |
Two Strings |
Solution & Comment |
21 |
String Construction |
WIP |
22 |
Sherlock and Valid String |
Solution & Comment |
23 |
Richie Rich |
WIP |
24 |
Sherlock and Anagrams |
WIP |
25 |
Common Child |
WIP |
26 |
Bear and Steady Gene |
WIP |
27 |
Morgan and a String |
WIP |
28 |
Count Strings |
WIP |
29 |
String Function Calculation |
WIP |
30 |
Build a Palindrome |
WIP |
31 |
Build a String |
WIP |
32 |
Gridland Provinces |
WIP |
33 |
Ashton and String |
WIP |
34 |
String Similarity |
WIP |
35 |
Super Functional Strings |
WIP |
36 |
Circular Palindromes |
WIP |
37 |
Similar Strings |
WIP |
38 |
Save Humanity |
WIP |
39 |
Find Strings |
WIP |
40 |
Palindromic Border |
WIP |
41 |
Two Two |
WIP |
42 |
Two Strings Game |
WIP |
43 |
Letter Islands |
WIP |
44 |
Pseudo-Isomorphic Substrings |
WIP |
45 |
How Many Substrings? |
WIP |
Sorting
#
Challenge
Solution
1 |
Intro to Tutorial Challenges |
Solution & Comment |
2 |
Insertion Sort - Part 1 |
Solution & Comment |
3 |
Insertion Sort - Part 2 |
Solution & Comment |
4 |
Correctness and the Loop Invariant |
Solution & Comment |
5 |
Running Time of Algorithms |
WIP |
6 |
Quicksort 1 - Partition |
WIP |
7 |
Quicksort 2 - Sorting |
WIP |
8 |
Quicksort In-Place |
WIP |
9 |
Running Time of Quicksort |
WIP |
10 |
Counting Sort 1 |
WIP |
11 |
Counting Sort 2 |
WIP |
12 |
Counting Sort 3 |
WIP |
13 |
The Full Counting Sort |
WIP |
14 |
Closest Numbers |
WIP |
15 |
Find the Median |
WIP |
16 |
Insertion Sort Advanced Analysis |
WIP |
17 |
Fraudulent Activity Notifications |
WIP |
18 |
Lily's Homework |
Solution & Comment |
Search
#
Challenge
Solution
1 |
Hackerland Radio Transmitters |
Solution & Comment |
2 |
Ice Cream Parlor |
Solution & Comment |
3 |
Gridland Metro |
WIP |
4 |
Missing Numbers |
WIP |
5 |
KnightL on a Chessboard |
Solution & Comment |
6 |
Pairs |
WIP |
7 |
Sherlock and Array |
WIP |
8 |
Maximum Subarray Sum |
WIP |
9 |
Connected Cells in a Grid |
WIP |
10 |
Short Palindrome |
WIP |
11 |
Maximizing Mission Points |
WIP |
12 |
Count Luck |
WIP |
13 |
Cut the Tree |
WIP |
14 |
Making Candies |
WIP |
15 |
Gena Playing Hanoi |
WIP |
16 |
Beautiful Quadruples |
WIP |
17 |
Bike Racers |
WIP |
18 |
Task Scheduling |
WIP |
19 |
Similar Pair |
WIP |
20 |
Absolute Element Sums |
WIP |
21 |
Sorted Subsegments |
WIP |
22 |
Distant Pairs |
WIP |
23 |
King Richard's Knights |
WIP |
Graph Theory
#
Challenge
Solution
1 |
Roads and Libraries |
WIP |
2 |
Journey to the Moon |
WIP |
3 |
Synchronous Shopping |
WIP |
4 |
Subset Component |
WIP |
5 |
Breadth First Search: Shortest Reach |
WIP |
6 |
Kruskal (MST): Really Special Subtree |
WIP |
7 |
Even Tree |
WIP |
8 |
Snakes and Ladders: The Quickest Way Up |
WIP |
9 |
The Story of a Tree |
WIP |
10 |
Dijkstra: Shortest Reach 2 |
WIP |
11 |
Prim's (MST) : Special Subtree |
WIP |
12 |
Toll Cost Digits |
WIP |
13 |
Clique |
Solution & Comment |
14 |
Minimum Penalty Path |
WIP |
15 |
Demanding Money |
WIP |
16 |
Coprime Paths |
WIP |
17 |
Minimum MST Graph |
WIP |
18 |
Jack goes to Rapture |
WIP |
19 |
Crab Graphs |
WIP |
20 |
Bead Ornaments |
WIP |
21 |
Jeanie's Route |
Solution & Comment |
22 |
Floyd : City of Blinding Lights |
WIP |
23 |
Roads in HackerLand |
WIP |
24 |
Kingdom Connectivity |
WIP |
25 |
Computer Game |
WIP |
26 |
Rust & Murderer |
WIP |
27 |
Problem solving |
WIP |
28 |
Journey Scheduling |
WIP |
29 |
Matrix |
WIP |
30 |
Recording Episodes |
WIP |
31 |
Repair Roads |
WIP |
32 |
Kth Ancestor |
WIP |
33 |
ByteLandian Tours |
WIP |
34 |
Find the Path |
WIP |
35 |
Savita And Friends |
WIP |
36 |
Liars |
WIP |
37 |
Jumping Rooks |
WIP |
38 |
Tripartite Matching |
WIP |
39 |
Tree Flow |
WIP |
40 |
DAG Queries |
WIP |
41 |
Favorite sequence |
WIP |
42 |
Jogging Cats |
WIP |
43 |
Quadrant Queries |
WIP |
44 |
Hacker Country |
WIP |
45 |
HackerX |
WIP |
46 |
Huarongdao |
WIP |
47 |
Training the army |
WIP |
48 |
Jim and his LAN Party |
WIP |
49 |
Travel in HackerLand |
WIP |
50 |
Alex vs Fedor |
WIP |
51 |
Vertical Paths |
WIP |
52 |
Drive |
WIP |
53 |
Travelling Salesman in a Grid |
WIP |
54 |
Road Network |
WIP |
55 |
Going to the Office |
WIP |
56 |
Tree Splitting |
WIP |
57 |
Ticket |
WIP |
58 |
DFS Edges |
WIP |
Greedy
#
Challenge
Solution
1 |
Minimum Absolute Difference in an Array |
Solution & Comment |
2 |
Marc's Cakewalk |
WIP |
3 |
Grid Challenge |
WIP |
4 |
Luck Balance |
Solution & Comment |
5 |
Maximum Perimeter Triangle |
WIP |
6 |
Beautiful Pairs |
Solution & Comment |
7 |
Sherlock and The Beast |
Solution & Comment |
8 |
Priyanka and Toys |
WIP |
9 |
Largest Permutation |
Solution & Comment |
10 |
Mark and Toys |
Solution & Comment |
11 |
Greedy Florist |
WIP |
12 |
Max Min |
WIP |
13 |
Jim and the Orders |
WIP |
14 |
Permuting Two Arrays |
WIP |
15 |
Cutting Boards |
WIP |
16 |
Reverse Shuffle Merge |
Solution & Comment |
17 |
Goodland Electricity |
WIP |
18 |
Chief Hopper |
Solution & Comment |
19 |
Sherlock and MiniMax |
WIP |
20 |
Accessory Collection |
WIP |
21 |
Team Formation |
WIP |
22 |
Fighting Pits |
WIP |
Dynamic Programming
#
Challenge
Solution
1 |
The Coin Change Problem |
WIP |
2 |
Equal |
WIP |
3 |
Sherlock and Cost |
Solution & Comment |
4 |
Kingdom Division |
WIP |
5 |
Vertical Sticks |
Solution & Comment |
6 |
Candies |
Solution & Comment |
7 |
Sam and sub-strings |
Solution & Comment |
8 |
Fibonacci Modified |
Solution & Comment |
9 |
Abbreviation |
Solution & Comment |
10 |
Decibinary Numbers |
WIP |
11 |
Fair Cut |
WIP |
12 |
The Maximum Subarray |
WIP |
13 |
Angry Children 2 |
WIP |
14 |
Sherlock's Array Merging Algorithm |
WIP |
15 |
Prime Digit Sums |
WIP |
16 |
HackerRank City |
WIP |
17 |
Summing Pieces |
WIP |
18 |
Mr K marsh |
WIP |
19 |
Substring Diff |
WIP |
20 |
Xor and Sum |
WIP |
21 |
Lego Blocks |
WIP |
22 |
Brick Tiling |
WIP |
23 |
Alien Languages |
WIP |
24 |
Stock Maximize |
WIP |
25 |
Two Robots |
WIP |
26 |
Cut Tree |
WIP |
27 |
Tara's Beautiful Permutations |
WIP |
28 |
Wet Shark and Two Subsequences |
WIP |
29 |
Nikita and the Game |
WIP |
30 |
Mandragora Forest |
WIP |
31 |
Red John is Back |
WIP |
32 |
LCS Returns |
WIP |
33 |
Grid Walking |
WIP |
34 |
Knapsack |
WIP |
35 |
Bricks Game |
WIP |
36 |
The Longest Increasing Subsequence |
WIP |
37 |
Coin on the Table |
WIP |
38 |
The Longest Common Subsequence |
WIP |
39 |
Play with words |
WIP |
40 |
Black and White Tree |
WIP |
41 |
Counting Special Sub-Cubes |
WIP |
42 |
Interval Selection |
WIP |
43 |
String Reduction |
WIP |
44 |
Far Vertices |
WIP |
45 |
Counting Road Networks |
WIP |
46 |
Superman Celebrates Diwali |
WIP |
47 |
Hexagonal Grid |
WIP |
48 |
Queens on Board |
WIP |
49 |
Shashank and the Palindromic Strings |
WIP |
50 |
Points in a Plane |
WIP |
51 |
The Indian Job |
Solution & Comment |
52 |
Requirement |
WIP |
53 |
A Super Hero |
WIP |
54 |
Clues on a Binary Path |
WIP |
55 |
Road Maintenance |
WIP |
56 |
Billboards |
WIP |
57 |
Beautiful Strings |
Solution & Comment |
58 |
Covering the stains |
WIP |
59 |
GCD Matrix |
WIP |
60 |
Fairy Chess |
WIP |
61 |
Travel around the world |
WIP |
62 |
New Year Present |
WIP |
63 |
Longest Palindromic Subsequence |
WIP |
64 |
Candles Counting |
WIP |
65 |
Hyper Strings |
WIP |
66 |
Swap Permutation |
WIP |
67 |
Extremum Permutations |
WIP |
68 |
Square Subsequences |
WIP |
69 |
Dorsey Thief |
WIP |
70 |
Mining |
WIP |
71 |
Police Operation |
WIP |
72 |
Zurikela's Graph |
WIP |
73 |
Modify The Sequence |
WIP |
74 |
Longest Mod Path |
WIP |
75 |
P-sequences |
WIP |
76 |
Robot |
WIP |
77 |
Lucky Numbers |
WIP |
78 |
Unfair Game |
WIP |
79 |
Oil Well |
WIP |
80 |
Find the Seed |
WIP |
81 |
The Blacklist |
WIP |
82 |
Tree Pruning |
WIP |
83 |
Ones and Twos |
WIP |
84 |
Count Scorecards |
WIP |
85 |
Vim War |
WIP |
86 |
Best spot |
WIP |
87 |
Divisible Numbers |
WIP |
88 |
Unique Divide And Conquer |
WIP |
89 |
King and Four Sons |
WIP |
90 |
Dortmund Dilemma |
WIP |
91 |
Super Kth LIS |
WIP |
92 |
Counting the Ways |
WIP |
93 |
Hard Disk Drives |
WIP |
94 |
Separate the chocolate |
WIP |
Constructive Algorithms
#
Challenge
Solution
1 |
Lena Sort |
WIP |
2 |
Flipping the Matrix |
WIP |
3 |
Gaming Array |
Solution & Comment |
4 |
New Year Chaos |
WIP |
5 |
Bonetrousle |
Solution & Comment |
6 |
Yet Another KMP Problem |
WIP |
7 |
Beautiful 3 Set |
WIP |
8 |
Inverse RMQ |
WIP |
9 |
Two Subarrays |
WIP |
10 |
Lovely Triplets |
WIP |
11 |
Array Construction |
WIP |
Bit Manipulation
#
Challenge
Solution
1 |
Lonely Integer |
WIP |
2 |
Maximizing XOR |
WIP |
3 |
Counter game |
WIP |
4 |
Xor-sequence |
WIP |
5 |
Sum vs XOR |
WIP |
6 |
Flipping bits |
WIP |
7 |
Yet Another Minimax Problem |
WIP |
8 |
Sansa and XOR |
WIP |
9 |
AND Product |
WIP |
10 |
Xoring Ninja |
WIP |
11 |
Cipher |
WIP |
12 |
XOR Matrix |
WIP |
13 |
What's Next? |
WIP |
14 |
String Transmission |
WIP |
15 |
A or B |
WIP |
16 |
Manipulative Numbers |
WIP |
17 |
Stone game |
WIP |
18 |
2's complement |
WIP |
19 |
Changing Bits |
WIP |
20 |
XOR key |
WIP |
21 |
Maximizing the Function |
WIP |
22 |
XOR Subsequences |
WIP |
23 |
Iterate It |
WIP |
24 |
Hamming Distance |
WIP |
25 |
Mixing proteins |
WIP |
Recursion
#
Challenge
Solution
1 |
The Power Sum |
Solution & Comment |
2 |
Crossword Puzzle |
Solution & Comment |
3 |
Recursive Digit Sum |
WIP |
4 |
Simplified Chess Engine |
WIP |
5 |
Password Cracker |
WIP |
6 |
Arithmetic Expressions |
Solution & Comment |
7 |
K Factorization |
WIP |
8 |
Bowling Pins |
WIP |
9 |
Simplified Chess Engine II |
WIP |
10 |
Repetitive K-Sums |
WIP |
Game Theory
#
Challenge
Solution
1 |
Game of Stones |
Solution & Comment |
2 |
Tower Breakers |
WIP |
3 |
A Chessboard Game |
WIP |
4 |
Introduction to Nim Game |
WIP |
5 |
Mis¨¨re Nim |
WIP |
6 |
Nimble Game |
WIP |
7 |
Alice and Bob's Silly Game |
WIP |
8 |
Poker Nim |
WIP |
9 |
Tower Breakers, Revisited! |
WIP |
10 |
Tower Breakers, Again! |
WIP |
11 |
Zero-Move Nim |
WIP |
12 |
Chessboard Game, Again! |
WIP |
13 |
Digits Square Board |
WIP |
14 |
Fun Game |
WIP |
15 |
Stone Division |
WIP |
16 |
Chocolate in Box |
WIP |
17 |
Kitty and Katty |
WIP |
18 |
Powers Game |
WIP |
19 |
Deforestation |
WIP |
20 |
Bob and Ben |
WIP |
21 |
Tower Breakers - The Final Battle |
WIP |
22 |
Simple Game |
WIP |
23 |
Permutation game |
WIP |
24 |
Move the Coins |
WIP |
25 |
Play on benders |
WIP |
26 |
New Year Game |
WIP |
27 |
Stone Piles |
WIP |
28 |
Chocolate Game |
WIP |
29 |
Manasa and Prime game |
WIP |
30 |
Vertical Rooks |
WIP |
31 |
A stones game |
WIP |
NP Complete
#
Challenge
Solution
1 |
Walking the Approximate Longest Path |
WIP |
2 |
Sam's Puzzle (Approximate) |
WIP |
3 |
Spies, Revised |
WIP |
4 |
TBS Problem |
WIP |
Data Structures
- Arrays (6/6)
- Linked Lists (0/15)
- Trees (0/15)
- Balanced Trees (0/3)
- Stacks (0/9)
- Queues (0/5)
- Heap (0/4)
- Disjoint Set (4/4)
- Multiple Choice (0/3)
- Trie (0/2)
- Advanced (1/48)
Arrays
#
Challenge
Solution
1 |
Arrays - DS |
Solution & Comment |
2 |
2D Array - DS |
Solution & Comment |
3 |
Dynamic Array |
Solution & Comment |
4 |
Left Rotation |
Solution & Comment |
5 |
Sparse Arrays |
Solution & Comment |
6 |
Algorithmic Crush |
Solution & Comment |
Linked Lists
#
Challenge
Solution
1 |
Print the Elements of a Linked List |
WIP |
2 |
Insert a Node at the Tail of a Linked List |
WIP |
3 |
Insert a node at the head of a linked list |
WIP |
4 |
Insert a node at a specific position in a linked list |
WIP |
5 |
Delete a Node |
WIP |
6 |
Print in Reverse |
WIP |
7 |
Reverse a linked list |
WIP |
8 |
Compare two linked lists |
WIP |
9 |
Merge two sorted linked lists |
WIP |
10 |
Get Node Value |
WIP |
11 |
Delete duplicate-value nodes from a sorted linked list |
WIP |
12 |
Cycle Detection |
WIP |
13 |
Find Merge Point of Two Lists |
WIP |
14 |
Inserting a Node Into a Sorted Doubly Linked List |
WIP |
15 |
Reverse a doubly linked list |
WIP |
Trees
#
Challenge
Solution
1 |
Tree: Preorder Traversal |
WIP |
2 |
Tree: Postorder Traversal |
WIP |
3 |
Tree: Inorder Traversal |
WIP |
4 |
Tree: Height of a Binary Tree |
WIP |
5 |
Tree : Top View |
WIP |
6 |
Tree: Level Order Traversal |
WIP |
7 |
Binary Search Tree : Insertion |
WIP |
8 |
Tree: Huffman Decoding |
WIP |
9 |
Binary Search Tree : Lowest Common Ancestor |
WIP |
10 |
Swap Nodes [Algo] |
WIP |
11 |
Kitty's Calculations on a Tree |
WIP |
12 |
Is This a Binary Search Tree? |
WIP |
13 |
Square-Ten Tree |
WIP |
14 |
Balanced Forest |
WIP |
15 |
Tree Coordinates |
WIP |
Balanced Trees
#
Challenge
Solution
1 |
Self Balancing Tree |
WIP |
2 |
Array and simple queries |
WIP |
3 |
Median Updates |
WIP |
Stacks
#
Challenge
Solution
1 |
Maximum Element |
WIP |
2 |
Balanced Brackets |
WIP |
3 |
Equal Stacks |
WIP |
4 |
Game of Two Stacks |
WIP |
5 |
Largest Rectangle |
WIP |
6 |
Simple Text Editor |
WIP |
7 |
Poisonous Plants |
WIP |
8 |
AND xor OR |
WIP |
9 |
Waiter |
WIP |
Queues
#
Challenge
Solution
1 |
Queue using Two Stacks |
WIP |
2 |
Castle on the Grid |
WIP |
3 |
Down to Zero II |
WIP |
4 |
Truck Tour |
WIP |
5 |
Queries with Fixed Length |
WIP |
Heap
#
Challenge
Solution
1 |
QHEAP1 |
WIP |
2 |
Jesse and Cookies |
WIP |
3 |
Find the Running Median |
WIP |
4 |
Minimum Average Waiting Time |
WIP |
Disjoint Set
#
Challenge
Solution
1 |
Merging Communities |
Solution & Comment |
2 |
Components in a graph |
Solution & Comment |
3 |
Kundu and Tree |
Solution & Comment |
4 |
Super Maximum Cost Queries |
Solution & Comment |
Multiple Choice
#
Challenge
Solution
1 |
Data Structures MCQ 1 |
WIP |
2 |
Data Structures MCQ 2 |
WIP |
3 |
Data Structures MCQ 3 |
WIP |
Trie
#
Challenge
Solution
1 |
Contacts |
WIP |
2 |
No Prefix Set |
WIP |
Advanced
#
Challenge
Solution
1 |
Kindergarten Adventures |
Solution & Comment |
2 |
Cube Summation |
WIP |
3 |
Mr. X and His Shots |
WIP |
4 |
Direct Connections |
WIP |
5 |
Subsequence Weighting |
WIP |
6 |
Jim and the Skyscrapers |
WIP |
7 |
Palindromic Subsets |
WIP |
8 |
Counting On a Tree |
WIP |
9 |
Unique Colors |
WIP |
10 |
Polynomial Division |
WIP |
11 |
Self-Driving Bus |
WIP |
12 |
Fibonacci Numbers Tree |
WIP |
13 |
Functional Palindromes |
WIP |
14 |
Lazy White Falcon |
WIP |
15 |
Ticket to Ride |
WIP |
16 |
Heavy Light White Falcon |
WIP |
17 |
Sum of the Maximums |
WIP |
18 |
Number Game on a Tree |
WIP |
19 |
Heavy Light 2 White Falcon |
WIP |
20 |
Library Query |
WIP |
21 |
Starfleet |
WIP |
22 |
Almost Equal - Advanced |
WIP |
23 |
Almost sorted interval |
WIP |
24 |
Burger Happiness |
WIP |
25 |
Roy and alpha-beta trees |
WIP |
26 |
Coloring Tree |
WIP |
27 |
Recalling Early Days GP with Trees |
WIP |
28 |
Swaps and Sum |
WIP |
29 |
Arithmetic Progressions |
WIP |
30 |
Coolguy and Two Subsequences |
WIP |
31 |
White Falcon And Tree |
WIP |
32 |
Subtrees And Paths |
WIP |
33 |
Triplets |
WIP |
34 |
Beautiful Segments |
WIP |
35 |
Divisibility |
WIP |
36 |
BST maintenance |
WIP |
37 |
Find Maximum Index Product |
WIP |
38 |
Taxicab Driver's Problem |
WIP |
39 |
Jaggu Playing with Balloons |
WIP |
40 |
Dynamic Summation |
WIP |
41 |
Two Array Problem |
WIP |
42 |
Rooted Tree |
WIP |
43 |
The crazy helix |
WIP |
44 |
Network administration |
WIP |
45 |
Easy Addition |
WIP |
46 |
Find the permutation |
WIP |
47 |
Company Retreat |
WIP |
48 |
Box Operations |
WIP |
Mathematics
- Fundamentals (0/28)
- Number Theory (0/67)
- Combinatorics (0/53)
- Algebra (0/35)
- Geometry (1/26)
- Probability (0/24)
- Linear Algebra Foundations (0/17)
Fundamentals
#
Challenge
Solution
1 |
Find the Point |
WIP |
2 |
Maximum Draws |
WIP |
3 |
Handshake |
WIP |
4 |
Leonardo's Prime Factors |
WIP |
5 |
Connecting Towns |
WIP |
6 |
Summing the N series |
WIP |
7 |
Sherlock and Moving Tiles |
WIP |
8 |
Restaurant |
WIP |
9 |
Reverse Game |
WIP |
10 |
Strange Grid Again |
WIP |
11 |
Diwali Lights |
WIP |
12 |
Sherlock and Divisors |
WIP |
13 |
Sherlock and Permutations |
WIP |
14 |
Even Odd Query |
WIP |
15 |
Special Multiple |
WIP |
16 |
Matrix Tracing |
WIP |
17 |
Die Hard 3 |
WIP |
18 |
Halloween party |
WIP |
19 |
Filling Jars |
WIP |
20 |
Is Fibo |
WIP |
21 |
K Candy Store |
WIP |
22 |
Sumar and the Floating Rocks |
WIP |
23 |
Russian Peasant Exponentiation |
WIP |
24 |
Bus Station |
WIP |
25 |
Most Distant |
WIP |
26 |
Jim and the Jokes |
WIP |
27 |
Possible Path |
WIP |
28 |
Mutual Recurrences |
WIP |
Number Theory
#
Challenge
Solution
1 |
Closest Number |
WIP |
2 |
Sherlock and GCD |
WIP |
3 |
Identify Smith Numbers |
WIP |
4 |
Euler's Criterion |
WIP |
5 |
Fibonacci Finding (easy) |
WIP |
6 |
Little Panda Power |
WIP |
7 |
Mehta and his Laziness |
WIP |
8 |
Minimal Distance to Pi |
WIP |
9 |
Help Mike |
WIP |
10 |
Dancing in Pairs |
WIP |
11 |
The Chosen One |
WIP |
12 |
Power of large numbers |
WIP |
13 |
Salary Blues |
WIP |
14 |
Akhil and GF |
WIP |
15 |
Little Ashish's Huge Donation |
WIP |
16 |
Manasa and Factorials |
WIP |
17 |
Number of zero-xor subsets |
WIP |
18 |
Cheese and Random Toppings |
WIP |
19 |
Easy GCD |
WIP |
20 |
Manasa loves Maths |
WIP |
21 |
Largest Non-Coprime Submatrix |
WIP |
22 |
John and GCD list |
WIP |
23 |
Strange numbers |
WIP |
24 |
Easy math |
WIP |
25 |
Equations |
WIP |
26 |
Binomial Coefficients |
WIP |
27 |
Lucy and Flowers |
WIP |
28 |
Superpowers of 2 |
WIP |
29 |
Sherlock Puzzle |
WIP |
30 |
Divisibility of Power |
WIP |
31 |
Devu Vs Police |
WIP |
32 |
A Weird Function |
WIP |
33 |
Coprime Conundrum |
WIP |
34 |
Long Permutation |
WIP |
35 |
Divisor Exploration |
WIP |
36 |
Ants |
WIP |
37 |
Ichigo and Cubes |
WIP |
38 |
Scalar Products |
WIP |
39 |
Prime Sum |
WIP |
40 |
Hyperrectangle GCD |
WIP |
41 |
nCr |
WIP |
42 |
Chandrima and XOR |
WIP |
43 |
Find The Operations |
WIP |
44 |
Fibonacci GCD |
WIP |
45 |
Ichigo and Rooms |
WIP |
46 |
A Very Special Multiple |
WIP |
47 |
Fibonacci LCM |
WIP |
48 |
Unfriendly Numbers |
WIP |
49 |
HackerRank Number |
WIP |
50 |
Ajob Subsequence |
WIP |
51 |
GCD Product |
WIP |
52 |
The Bouncing Flying Ball |
WIP |
53 |
Eugene and Big Number |
WIP |
54 |
Matrix Tree |
WIP |
55 |
Period |
WIP |
56 |
Nice Clique |
WIP |
57 |
Order of Prime in Factorial |
WIP |
58 |
Degree of an algebraic number |
WIP |
59 |
Computer Virus |
WIP |
60 |
GCD Sequence |
WIP |
61 |
Coprime Power Sum |
WIP |
62 |
Fun with 1010 |
WIP |
63 |
GCD mocktail |
WIP |
64 |
Laser Beam |
WIP |
65 |
Down the Rabbit Hole |
WIP |
66 |
Minion of the Year |
WIP |
67 |
Bear And Cryptography |
WIP |
Combinatorics
#
Challenge
Solution
1 |
nCr table |
WIP |
2 |
Coinage |
WIP |
3 |
Building a List |
WIP |
4 |
Merge List |
WIP |
5 |
A Chocolate Fiesta |
WIP |
6 |
Mehta and the Typical Supermarket |
WIP |
7 |
Choose and Calculate |
WIP |
8 |
Sherlock and Pairs |
WIP |
9 |
Consecutive Subsequences |
WIP |
10 |
Anti-Palindromic Strings |
WIP |
11 |
Lexicographic paths |
WIP |
12 |
Number List |
WIP |
13 |
Game Of Thrones - II |
WIP |
14 |
Journey to Mars |
WIP |
15 |
Super Humble Matrix |
WIP |
16 |
Volleyball Match |
WIP |
17 |
Picking Cards |
WIP |
18 |
Cyclic Quadruples |
WIP |
19 |
Permutation Problem |
WIP |
20 |
Longest Increasing Subsequence Arrays |
WIP |
21 |
Digit Products |
WIP |
22 |
Towers |
WIP |
23 |
Introduction to Representation Theory |
WIP |
24 |
Tile Painting: Revisited! |
WIP |
25 |
Alien Flowers |
WIP |
26 |
Count Fox Sequences |
WIP |
27 |
Manasa and Combinatorics |
WIP |
28 |
Coloring Grid |
WIP |
29 |
Grid Lines |
WIP |
30 |
Div and Span |
WIP |
31 |
Value of all Permutations |
WIP |
32 |
Farmer |
WIP |
33 |
Irresponsible Numbers |
WIP |
34 |
Academy Surveillance |
WIP |
35 |
Ichigo and Revenge |
WIP |
36 |
String Modification |
WIP |
37 |
Binomial Coefficients Revenge |
WIP |
38 |
Circles Math |
WIP |
39 |
To Heap or Not to Heap |
WIP |
40 |
Sasha and Swaps |
WIP |
41 |
k-balance number |
WIP |
42 |
Powercode |
WIP |
43 |
Insane DFS |
WIP |
44 |
How Many Trees? |
WIP |
45 |
Strongly Connected Digraphs |
WIP |
46 |
Robanukkah Tree |
WIP |
47 |
Teleporters |
WIP |
48 |
Costly Graphs |
WIP |
49 |
Bridges and Harbors |
WIP |
50 |
Count Palindromes |
WIP |
51 |
Cycle Representation |
WIP |
52 |
To Infinity and Beyond |
WIP |
53 |
Byteland Itinerary |
WIP |
Algebra
#
Challenge
Solution
1 |
Stepping Stones Game |
WIP |
2 |
Shashank and List |
WIP |
3 |
Triangle Numbers |
WIP |
4 |
Little Gaurav and Sequence |
WIP |
5 |
Easy sum |
WIP |
6 |
Difference and Product |
WIP |
7 |
Pairwise Sum and Divide |
WIP |
8 |
Tell the Average |
WIP |
9 |
Game Of Rotation |
WIP |
10 |
Hackonacci Matrix Rotations |
WIP |
11 |
Power Calculation |
WIP |
12 |
Sherlock and Square |
WIP |
13 |
Wet Shark and 42 |
WIP |
14 |
Sherlock and Queries |
WIP |
15 |
Manasa and Sub-sequences |
WIP |
16 |
Summing the K-N series |
WIP |
17 |
XOR love |
WIP |
18 |
Manasa and Calculations |
WIP |
19 |
Simple One |
WIP |
20 |
Circle Summation |
WIP |
21 |
Girlfriend & Necklace |
WIP |
22 |
Manasa and Pizza |
WIP |
23 |
Signal Tower |
WIP |
24 |
Summing the K-N-R Series |
WIP |
25 |
Emma and sum of products |
WIP |
26 |
Fun With Series |
WIP |
27 |
Permutation Equations |
WIP |
28 |
Counting Equations |
WIP |
29 |
Calculate It |
WIP |
30 |
Introduction to Algebra |
WIP |
31 |
Cross Matrix |
WIP |
32 |
Introduction to Algebra 2 |
WIP |
33 |
The Black Box |
WIP |
34 |
Black Hole |
WIP |
35 |
Minimal Cyclic Shift |
WIP |
Geometry
#
Challenge
Solution
1 |
Points On a Line |
WIP |
2 |
Rectangular Game |
Solution & Comment |
3 |
Sherlock and Counting |
WIP |
4 |
Sherlock and Planes |
WIP |
5 |
Circle City |
WIP |
6 |
Xrange's Pancakes |
WIP |
7 |
Spheres |
WIP |
8 |
Baby Step, Giant Step |
WIP |
9 |
Jim Beam |
WIP |
10 |
Hyperspace Travel |
WIP |
11 |
Solve Equations |
WIP |
12 |
Stars |
WIP |
13 |
Polar Angles |
WIP |
14 |
Sherlock and Geometry |
WIP |
15 |
Good Point |
WIP |
16 |
Polygons |
WIP |
17 |
Polygon |
WIP |
18 |
Meeting Point |
WIP |
19 |
House Location |
WIP |
20 |
Jim and the Challenge |
WIP |
21 |
The Letter N |
WIP |
22 |
Best Sum |
WIP |
23 |
Geometry Queries |
WIP |
24 |
Count Triangles |
WIP |
25 |
Isosceles Triangles |
WIP |
26 |
Elastic rope |
WIP |
Probability
#
Challenge
Solution
1 |
Random number generator |
WIP |
2 |
Sherlock and Probability |
WIP |
3 |
Day 4: Normal Distribution #1 |
WIP |
4 |
Day 4: Normal Distribution #2 |
WIP |
5 |
B'day Gift |
WIP |
6 |
Normal Distribution #3 |
WIP |
7 |
Palindromes |
WIP |
8 |
Lazy Sorting |
WIP |
9 |
Binomial Distribution #1 |
WIP |
10 |
Kevin and Expected Value |
WIP |
11 |
Binomial Distribution #2 |
WIP |
12 |
The White Lotus and Caterpillar game |
WIP |
13 |
Binomial Distribution #3 |
WIP |
14 |
Assignment Problem |
WIP |
15 |
Connect the country |
WIP |
16 |
Random Integers Random Bits |
WIP |
17 |
Dice Stats |
WIP |
18 |
Random Number Generator |
WIP |
19 |
Zombie March*** |
WIP |
20 |
Bear and Dancing |
WIP |
21 |
Randomness |
WIP |
22 |
Random |
WIP |
23 |
Mathematical Expectation |
WIP |
24 |
Colorful Polygon |
WIP |
Linear Algebra Foundations
#
Challenge
Solution
1 |
Linear Algebra Foundations #1 - Matrix Addition |
WIP |
2 |
Linear Algebra Foundations #2 - Matrix Subtraction |
WIP |
3 |
Linear Algebra Foundations #3- Matrix Multiplication |
WIP |
4 |
Linear Algebra Foundations #4- Matrix Multiplication |
WIP |
5 |
Linear Algebra Foundations #5 - The 100th Power of a Matrix |
WIP |
6 |
Linear Algebra Foundations #6 - An Equation involving Matrices |
WIP |
7 |
Linear Algebra Foundations #7 - The 1000th Power of a Matrix |
WIP |
8 |
Linear Algebra Foundations #8 - Systems of Equations |
WIP |
9 |
Linear Algebra Foundations #9 - Eigenvalues |
WIP |
10 |
Linear Algebra Foundations #10 - Eigenvectors |
WIP |
11 |
Determinant of the matrix #1 |
WIP |
12 |
Determinant of the matrix #2 |
WIP |
13 |
Determinant of the matrix #3 |
WIP |
14 |
Eigenvalue of a Matrix I |
WIP |
15 |
Eigenvalue of matrix #2 |
WIP |
16 |
Eigenvalue of matrix #3 |
WIP |
17 |
Eigenvalue of matrix #4 |
WIP |
Video liên quan