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

The point is "like FizzBuzz" not "actually FizzBuzz". This could just as easily be:

- Add all the odd integers in an array

- Count the number of vowels in a String (bonus points if they ask about Unicode vs ASCII in the context of what constitutes a vowel). ASCII is the easy case. Unicode is a little more involved. Handle upper and lower case (they should figure out this is an issue).

- Given a set of Strings find all the characters (or words if you prefer) that are unique to only one of the Strings

- Given an ordered sequence 1..10 and the operators {+,-,/,*} where you can put any operator between two numbers but maintain the number order and operator precedence, find the number of operator combinations that yield 5 digit positive integers. Brute force is totally fine. Pick any category of answers you like in fact. Writing this one will take longer than FizzBuzz but the important point here is no specialist algorithmic knowledge other than how arithmetic works is needed and there is no special trick memorization.

I can come up with a million examples like this.




> Count the number of vowels in a String

Unicode is a little more involved?

I wouldn't even know where to start for the mostly trivial western European languages, and that's without leaving high bit ASCII territory.

I'd probably end up making a list by hand of every possible vowel. But that's not doable for Unicode. What does it even mean for things like ideographic characters?




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: