My solutions to https://www.hackerrank.com problems.
- 1 Solve Me First
- 2 Simple Array Sum
- 3 Compare the Triplets
- 4 A Very Big Sum
- 5 Diagonal Difference
- 6 Plus Minus
- 7 Staircase
- 8 Mini-Max Sum
- 9 Birthday Cake Candles
- 10 Time Conversion
- 1 Grading Students
- 2 Apple and Orange
- 3 Number Line Jumps
- 4 Between Two Sets
- 5 Breaking the Records
- 6 Subarray Division
- 7 Divisible Sum Pairs
- 8 Migratory Birds
- 9 Day of the Programmer
- 10 Bill Division
- 11 Sales by Match
- 12 Drawing Book
- 13 Counting Valleys
- 14 Electronics Shop
- 15 Cats and a Mouse
- 16 Forming a Magic Square
- 17 Picking Numbers
- 18 Climbing the Leaderboard
- 19 The Hurdle Race
- 20 Designer PDF Viewer
- 21 Utopian Tree
- 22 Angry Professor
- 23 Beautiful Days at the Movies
- 24 Viral Advertising
- 25 Save the Prisoner!
- 26 Circular Array Rotation
- 27 Sequence Equation
- 28 Jumping on the Clouds: Revisited
- 29 Find Digits
- 30 Extra Long Factorials
- 31 Append and Delete
- 32 Sherlock and Squares
- 33 Library Fine
- 34 Cut the sticks
- 35 Non-Divisible Subset
- 36 Repeated String
- 37 Jumping on the Clouds
- 38 Equalize the Array
- 39 Queen's Attack II
- 40 ACM ICPC Team
- 41 Taum and B'day
- 42 Organizing Containers of Balls
- 43 Encryption
- 44 Bigger is Greater
- 45 Modified Kaprekar Numbers
- 46 Beautiful Triplets
- 47 Minimum Distances
- 48 Halloween Sale
- 49 The Time in Words
- 50 Chocolate Feast
- 1 Super Reduced String
- 2 CamelCase
- 3 Strong Password
- 4 Two Characters
- 5 Caesar Cipher
- 6 Mars Exploration
- 7 HackerRank in a String!
- 8 Pangrams
- 9 Weighted Uniform Strings
- 10 Separate the Numbers
- 11 Funny String
- 12 Gemstones
- 13 Alternating Characters
- 14 Beautiful Binary String
- 15 The Love-Letter Mystery
- 16 Determining DNA Health
- 17 Palindrome Index
- 18 Anagram
- 19 Making Anagrams
- 20 Game of Thrones - I
- 21 Two Strings
- 22 String Construction
- 23 Sherlock and the Valid String
- 24 Highest Value Palindrome
- 25 Maximum Palindromes
- 26 Sherlock and Anagrams
- 27 Common Child
- 28 Bear and Steady Gene
- 29 Morgan and a String
- 30 Count Strings
- 31 String Function Calculation
- 32 Build a Palindrome
- 33 Build a String
- 34 Gridland Provinces
- 35 Cards Permutation
- 36 Ashton and String
- 37 String Similarity
- 38 Super Functional Strings
- 39 Circular Palindromes
- 40 Similar Strings
- 41 Save Humanity
- 42 Find Strings
- 43 Palindromic Border
- 44 Two Two
- 45 Two Strings Game
- 46 Letter Islands
- 47 Pseudo-Isomorphic Substrings
- 48 How Many Substrings?
- 1 Big Sorting
- 2 Intro to Tutorial Challenges
- 3 Insertion Sort - Part 1
- 4 Insertion Sort - Part 2
- 5 Correctness and the Loop Invariant
- 6 Running Time of Algorithms
- 7 Quicksort 1 - Partition
- 8 Counting Sort 1
- 9 Counting Sort 2
- 10 The Full Counting Sort
- 11 Closest Numbers
- 12 Find the Median
- 13 Insertion Sort Advanced Analysis
- 14 Fraudulent Activity Notifications
- 15 Lily's Homework
- 1 Hackerland Radio Transmitters
- 2 Gridland Metro
- 3 Ice Cream Parlor
- 4 KnightL on a Chessboard
- 5 Minimum Loss
- 6 Missing Numbers
- 7 Pairs
- 8 Sherlock and Array
- 9 Maximum Subarray Sum
- 10 Connected Cells in a Grid
- 11 Short Palindrome
- 12 Maximizing Mission Points
- 13 Count Luck
- 14 Cut the Tree
- 15 Making Candies
- 16 Gena Playing Hanoi
- 17 Beautiful Quadruples
- 18 Red Knight's Shortest Path
- 19 Bike Racers
- 20 Task Scheduling
- 21 Similar Pair
- 22 Absolute Element Sums
- 23 Almost Integer Rock Garden
- 24 Sorted Subsegments
- 25 Distant Pairs
- 26 King Richard's Knights
- 1 Frog in Maze
- 2 Roads and Libraries
- 3 Journey to the Moon
- 4 Synchronous Shopping
- 5 Subset Component
- 6 Breadth First Search: Shortest Reach
- 7 Kruskal (MST): Really Special Subtree
- 8 Even Tree
- 9 Snakes and Ladders: The Quickest Way Up
- 10 Dijkstra: Shortest Reach 2
- 11 The Story of a Tree
- 12 Prim's (MST) : Special Subtree
- 13 Toll Cost Digits
- 14 Real Estate Broker
- 15 Clique
- 16 Minimum Penalty Path
- 17 Demanding Money
- 18 The Value of Friendship
- 19 Coprime Paths
- 20 Minimum MST Graph
- 21 Jack goes to Rapture
- 22 Crab Graphs
- 23 Bead Ornaments
- 24 Jeanie's Route
- 25 Floyd : City of Blinding Lights
- 26 Roads in HackerLand
- 27 Kingdom Connectivity
- 28 Computer Game
- 29 Rust & Murderer
- 30 Problem solving
- 31 Journey Scheduling
- 32 Matrix
- 33 Recording Episodes
- 34 Repair Roads
- 35 Kth Ancestor
- 36 ByteLandian Tours
- 37 Find the Path
- 38 Savita And Friends
- 39 Liars
- 40 Jumping Rooks
- 41 Tripartite Matching
- 42 Tree Flow
- 43 DAG Queries
- 44 Favorite sequence
- 45 Jogging Cats
- 46 Quadrant Queries
- 47 Hacker Country
- 48 HackerX
- 49 Huarongdao
- 50 Training the army
- 1 Minimum Absolute Difference in an Array
- 2 Marc's Cakewalk
- 3 Grid Challenge
- 4 Luck Balance
- 5 Maximum Perimeter Triangle
- 6 Beautiful Pairs
- 7 Candies
- 8 Sherlock and The Beast
- 9 Priyanka and Toys
- 10 Largest Permutation
- 11 Mark and Toys
- 12 Greedy Florist
- 13 Max Min
- 14 Jim and the Orders
- 15 Permuting Two Arrays
- 16 Cutting Boards
- 17 Reverse Shuffle Merge
- 18 Goodland Electricity
- 19 Cloudy Day
- 20 Chief Hopper
- 21 Sherlock and MiniMax
- 22 Accessory Collection
- 23 Team Formation
- 24 Fighting Pits
- 1 The Coin Change Problem
- 2 Equal
- 3 Sherlock and Cost
- 4 Construct the Array
- 5 Kingdom Division
- 6 Sam and substrings
- 7 Fibonacci Modified
- 8 Abbreviation
- 9 Prime XOR
- 10 Decibinary Numbers
- 11 Fair Cut
- 12 The Maximum Subarray
- 13 Angry Children 2
- 14 Sherlock's Array Merging Algorithm
- 15 Prime Digit Sums
- 16 HackerRank City
- 17 Summing Pieces
- 18 Mr K marsh
- 19 Substring Diff
- 20 Xor and Sum
- 21 Lego Blocks
- 22 Brick Tiling
- 23 Alien Languages
- 24 Stock Maximize
- 25 Two Robots
- 26 Cut Tree
- 27 Tara's Beautiful Permutations
- 28 Wet Shark and Two Subsequences
- 29 Nikita and the Game
- 30 Choosing White Balls
- 31 Mandragora Forest
- 32 Red John is Back
- 33 LCS Returns
- 34 Grid Walking
- 35 Matrix Land
- 36 Knapsack
- 37 Bricks Game
- 38 The Longest Increasing Subsequence
- 39 Coin on the Table
- 40 The Longest Common Subsequence
- 41 Play with words
- 42 Black and White Tree
- 43 Counting Special Sub-Cubes
- 44 Interval Selection
- 45 String Reduction
- 46 Far Vertices
- 47 Counting Road Networks
- 48 Superman Celebrates Diwali
- 49 Hexagonal Grid
- 50 Queens on Board
- 1 Lena Sort
- 2 Flipping the Matrix
- 3 Gaming Array
- 4 New Year Chaos
- 5 Bonetrousle
- 6 Yet Another KMP Problem
- 7 Beautiful 3 Set
- 8 Inverse RMQ
- 9 Two Subarrays
- 10 Lovely Triplets
- 11 Array Construction
- 1 Lonely Integer
- 2 Maximizing XOR
- 3 Counter game
- 4 Xor-sequence
- 5 Sum vs XOR
- 6 The Great XOR
- 7 Flipping bits
- 8 Yet Another Minimax Problem
- 9 Sansa and XOR
- 10 AND Product
- 11 Winning Lottery Ticket
- 12 Xoring Ninja
- 13 Cipher
- 14 XOR Matrix
- 15 What's Next?
- 16 String Transmission
- 17 A or B
- 18 Manipulative Numbers
- 19 Stone Game
- 20 2's complement
- 21 Changing Bits
- 22 XOR key
- 23 Maximizing the Function
- 24 XOR Subsequences
- 25 Iterate It
- 26 Hamming Distance
- 27 Mixing proteins
- 1 The Power Sum
- 2 Crossword Puzzle
- 3 Recursive Digit Sum
- 4 Simplified Chess Engine
- 5 Password Cracker
- 6 Arithmetic Expressions
- 7 Stone Division, Revisited
- 8 K Factorization
- 9 Bowling Pins
- 10 Simplified Chess Engine II
- 11 Repetitive K-Sums
- 1 Game of Stones
- 2 Tower Breakers
- 3 A Chessboard Game
- 4 Introduction to Nim Game
- 5 Misère Nim
- 6 Nimble Game
- 7 Alice and Bob's Silly Game
- 8 Poker Nim
- 9 Tower Breakers, Revisited!
- 10 Tower Breakers, Again!
- 11 Zero-Move Nim
- 12 Chessboard Game, Again!
- 13 Digits Square Board
- 14 Fun Game
- 15 Stone Division
- 16 Chocolate in Box
- 17 Kitty and Katty
- 18 Powers Game
- 19 Deforestation
- 20 Bob and Ben
- 21 Tower Breakers - The Final Battle
- 22 Simple Game
- 23 Permutation game
- 24 Move the Coins
- 25 Play on benders
- 26 New Year Game
- 27 Stone Piles
- 28 Chocolate Game
- 29 The Prime Game
- 30 Vertical Rooks
- 31 A stones game
- 32 Tastes Like Winning
- 1 Print the Elements of a Linked List
- 2 Insert a Node at the Tail of a Linked List
- 3 Insert a node at the head of a linked list
- 4 Insert a node at a specific position in a linked list
- 5 Delete a Node
- 6 Print in Reverse
- 7 Reverse a linked list
- 8 Compare two linked lists
- 9 Merge two sorted linked lists
- 10 Get Node Value
- 11 Delete duplicate-value nodes from a sorted linked list
- 12 Cycle Detection
- 13 Find Merge Point of Two Lists
- 14 Inserting a Node Into a Sorted Doubly Linked List
- 15 Reverse a doubly linked list
- 1 Tree: Preorder Traversal
- 2 Tree: Postorder Traversal
- 3 Tree: Inorder Traversal
- 4 Tree: Height of a Binary Tree
- 5 Tree : Top View
- 6 Tree: Level Order Traversal
- 7 Binary Search Tree : Insertion
- 8 Tree: Huffman Decoding
- 9 Binary Search Tree : Lowest Common Ancestor
- 10 Swap Nodes [Algo]
- 11 Kitty's Calculations on a Tree
- 12 Is This a Binary Search Tree?
- 13 Square-Ten Tree
- 14 Balanced Forest
- 15 Jenny's Subtrees
- 16 Tree Coordinates
- 17 Array Pairs
- 1 Maximum Element
- 2 Balanced Brackets
- 3 Equal Stacks
- 4 Game of Two Stacks
- 5 Largest Rectangle
- 6 Simple Text Editor
- 7 Poisonous Plants
- 8 AND xor OR
- 9 Waiter
- 1 Queue using Two Stacks
- 2 Castle on the Grid
- 3 Down to Zero II
- 4 Truck Tour
- 5 Queries with Fixed Length
- 1 Kindergarten Adventures
- 2 Cube Summation
- 3 Mr. X and His Shots
- 4 Direct Connections
- 5 Subsequence Weighting
- 6 Jim and the Skyscrapers
- 7 Palindromic Subsets
- 8 Counting On a Tree
- 9 Polynomial Division
- 10 Costly Intervals
- 11 The Strange Function
- 12 Self-Driving Bus
- 13 Unique Colors
- 14 Fibonacci Numbers Tree
- 15 Pair Sums
- 16 Functional Palindromes
- 17 Lazy White Falcon
- 18 Ticket to Ride
- 19 Heavy Light White Falcon
- 20 Sum of the Maximums
- 21 Number Game on a Tree
- 22 Heavy Light 2 White Falcon
- 23 Library Query
- 24 Starfleet
- 25 Almost Equal - Advanced
- 26 Almost sorted interval
- 27 Burger Happiness
- 28 Roy and alpha-beta trees
- 29 Coloring Tree
- 30 Recalling Early Days GP with Trees
- 31 Swaps and Sum
- 32 Arithmetic Progressions
- 33 Coolguy and Two Subsequences
- 34 White Falcon And Tree
- 35 Subtrees And Paths
- 36 Triplets
- 37 Beautiful Segments
- 38 Divisibility
- 39 BST maintenance
- 40 Find Maximum Index Product
- 41 Taxicab Driver's Problem
- 42 Jaggu Playing with Balloons
- 43 Dynamic Summation
- 44 Two Array Problem
- 45 Rooted Tree
- 46 The crazy helix
- 47 Network administration
- 48 Easy Addition
- 49 Find the permutation
- 50 Company Retreat