Hacker News new | ask | show | jobs
by throwaway29292 3273 days ago
I'd probably go for 4 if() checks, some 'less than'/'greater than'/'&&' checks should do it.