Better HN
topnewbestaskshowjobs
Log inSign up

re-space

4 karma · joined Mar 5, 2017 (9y ago) · 2 submissions

Submissions

comment 9y ago · link · parent

In the programmingzen blog, Antonio Cangiano, a ruby programmer and author of several ruby books, there is a post about an interview for a job at IBM in which the question is to explain how the red-black tree algorithm works.

Hey, I googled for it, here it is: http://programmingzen.com/things-ive-learned-from-hiring-int...

comment 9y ago · link · parent

if the numbers are preceded by a space or another symbol your regular expression fails to parse them. You should be more cautious in your assignments.