DEV Community

Daily Challenge #96 - Easter Egg Crush Test

dev.to staff on October 21, 2019

Eulampy has a collection of some almost identical Fabergè eggs. One day his friend Tempter said to him: Do you see that skyscraper? And can you t...
Collapse
 
qm3ster profile image
Mihail Malo • Edited

I don't understand, what is the difference between a try and an egg?

Seems to me like it's

const height = (n, m) => 2 ** Math.min(n, m)

I don't understand how the example results were produced.

Collapse
 
aminnairi profile image
Amin

You can't make mayonnaise out of a try. But you can try to make mayonnaise out of an egg (don't forget the oil and the mustard though).

Collapse
 
qm3ster profile image
Mihail Malo

Jesus Christ

Collapse
 
qm3ster profile image
Mihail Malo • Edited

Maybe because 🅱️inary search is 🅱️rogramming? 🤷

Edit: 🅱️ 🅱️ 🅱️ 🅱️

Collapse
 
peledzohar profile image
Zohar Peled

I was once asked a similar question in an interview. I didn't know it back then and I can't remember it now..