|
|
|
|
|
by amitutk
3284 days ago
|
|
YES! for the first 2 questions. My go to question is reverse an array (without using any library functions). Instead of asking a quirky question, it is better to have them solve a simple problem and judge on logic and structure. |
|
If you mean “functions provided by a library outside of the core” there are languages where this restriction doesn't prevent the kind of trivial solution you are trying to prevent.
If you mean “any predefined functions/methods” there are languages where this is impossible (e.g., since even literal array syntax is just syntactic sugar for the Array constructor method.)
Note that there are several languages that fall into both categories (e.g., Ruby.)
There are probably a very narrow slice of languages where this restriction, however you define it, really does what you intend.