Recent posts

[Lucky Algorithm] Find Digits(26/77)

less than 1 minute read

Find Digits (Hacker Rank) Given an integer, , traverse its digits (1,2,…,n) and determine how many digits evenly divide (i.e.: count the number of times di...

[Lucky Algorithm] The Hurdle Race(25/77)

less than 1 minute read

The Hurdle Race (Hacker Rank) Dan is playing a video game in which his character competes in a hurdle race by jumping over hurdles with heights . He can ini...

[Lucky Algorithm] Cats and a Mouse(24/77)

1 minute read

Cats and a Mouse (Hacker Rank) Two cats named and are standing at integral points on the x-axis. Cat is standing at point and cat is standing at point ....

[Lucky Algorithm] Electronics Shop (23/77)

1 minute read

Electronics Shop (Hacker Rank) Monica wants to buy exactly one keyboard and one USB drive from her favorite electronics store. The store sells different bra...

[Lucky Algorithm] Counting Valleys (22/77)

1 minute read

Counting Valleys (Hacker Rank) Gary is an avid hiker. He tracks his hikes meticulously, paying close attention to small details like topography. During his l...