DEV Community

loading...

Discussion on: Daily Challenge #133 - Suitcase Packing

Collapse
erezwanderman profile image
erezwanderman

JS

fit_in = (a,b,m,n) => ((a + b) <= m && a <= n && b <= n) || ((a + b) <= n && a <= m && b <= m)