|
|
|
|
|
by 79d697i6fdif
3428 days ago
|
|
Anything you could write in less than a half hour. Lets take fizzbuzz for example. These types of problems almost always require manipulating strings and dumping them to the console in the simplest scenario possible. Usually the main method or equivalent in a console program. It would be easy as hell except they don't let you use google or an IDE, so you need to memorize the syntax for the main method and string manipulation. 1) In real life you almost never write directly to the console.
2) In real life, you never manipulate strings using sub-string or regex really... In fact the only time I do this a lot is for terrible reasons in bad code.
2) Main method? If your real life app even has one it was written by the first guy 10 years ago and is 3 lines long, just some function that looks like this: var app= new BootStrapMainApp();
app.run();
logger.log("App crashed if we get here");
|
|
And don't assimilate fizzbuzz with half hour problems. There are for sure some difficult half hour interviews questions; they are not comparable to trivial exercises like printing the numbers from 1 to 10.
P.S. If you never use console, strings or regex. I really wonder what kind of applications you're writing.