Hacker Newsnew | past | comments | ask | show | jobs | submit | chopin's commentslogin

Which, of course, isn't true.

You should know the trade-offs of different algorithms, though. Many libraries let you choose the implementation for a spcific problem. For instance tree vs. hash map where you trade memory for speed.


Is there a O(n) shuffling algorithm? In place, I don't think so.


Um, the "Knuth Shuffle" aka "Fisher-Yates" ?

https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle


But now you have both...


1970-01-01


If you were born at midnight, it would be “epoch.”


I'd love this for a Fairphone.



Your first one gets me puzzled. Normally, you take the shorter time to the full hour. Nobody says 'fünfundvierzig vor zwölf', for example. I never said or heard 'fünfunddreißig vor zwölf'. Before half past an hour everyone says '... nach elf'.


It's absolutely correct German. Native speaker here.


Me too. I know. Doesn't change that it sounds plain wrong to me. I guess probably how "dreiviertel X" sounds to you and others. Germany isn't uniform and only a nation state for some short time.

If I try to rationalize it, it is probably that a quarter (to me) is not a distance or difference, but a single thing. So my internal parser expects a Genitiv or another thing after it, not a preposition like 'vor' or 'nach'. 'Zehn Minuten vor/nach X' sounds fine to me, 'eine viertel Stunde vor/nach X' too, but 'viertel vor/nach X' just doesn't.


Where was that? Berlin by any chance? That's not representative for Germany.


I’ve had similar experiences in other, smaller cities. Luckily they are the exception rather than the rule.


Ah yeah, north Germans. I do agree south Germans act differently.


I regularly need reference docs in hour 2 of trying something new as the examples don't cover my use case.


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

Search: