Recent posts

[Lucky Algorithm] Drawing Book (21/77)

1 minute read

Drawing Book (Hacker Rank) Brie’s Drawing teacher asks her class to open their -page book to page number . Brie can either start turning pages from the front...

[Lucky Algorithm] Sock Merchant (19/77)

1 minute read

Sock Merchant (Hacker Rank) John’s clothing store has a pile of loose socks where each sock is labeled with an integer, , denoting its color. He wants to s...

[Lucky Algorithm] Bon Appétit (18/77)

1 minute read

Bon Appétit (Hacker Rank) Anna and Brian order items at a restaurant, but Anna declines to eat any of the item (where ) due to an allergy. When the check c...

[Lucky Algorithm] Migratory Birds (17/77)

1 minute read

Migratory Birds (Hacker Rank) A flock of birds is flying across the continent. Each bird has a type, and the different types are designated by the ID number...