Recent posts

[Lucky Algorithm] Mini-Max Sum (6/77)

less than 1 minute read

Mini-Max Sum (Hacker Rank) Given five positive integers, find the minimum and maximum values that can be calculated by summing exactly four of the five integ...

[Lucky Algorithm] Staircase (5/77)

less than 1 minute read

Staircase (Hacker Rank) Consider a staircase of size : # ## ### #### Observe that its base and height are both equal to , and the image is dr...

[Lucky Algorithm] Plus Minus (4/77)

1 minute read

Plus Minus (Hacker Rank) Given an array of integers, calculate which fraction of its elements are positive, which fraction of its elements are negative, and ...