Hacker News new | past | comments | ask | show | jobs | submit login

I'd probably go for 4 if() checks, some 'less than'/'greater than'/'&&' checks should do it.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: