Better HN
topnewbestaskshowjobs
Log inSign up

alta22433

1 karma · joined Aug 15, 2014 (12y ago) · 2 submissions

Submissions

comment 12y ago · link · parent

Yeah, seems like the article implies an upper bound of 2^n for a greedy solution, so your example would be pretty bad with a worst case of 2^1000?

comment 12y ago · link · parent

I was asked this on a recent programming interview. As a recent college graduate, I'm not sure this is a fair question to ask under that context given the complexity of the problem. Nice article though.