open navigation menu
AiFolder
Tools for a smarter you
Discover
Tools
AI
Games
Interviews
Blog
More
Search AiFolder
Toggle theme
Toggle theme
Sign in
Exit
00:00
Submit test
Recursion · Advanced
9 questions · Question 1 of 9
11%
Multiple Choice
Senior
How to recursively reverse a Linked List?
A
There are some: The binary tree search Check for a palyndrome Finding factorial Traversing the folder hierarchy of a directory tree as part of a file system Towers of Hanoi Merge sort Catalan numbers
B
When you use a function recursively, the compiler takes care of stack management for you, which is what makes recursion possible.
C
Start from the bottom up by asking and answering tiny questions: What is the reverse of null (the empty list)?
D
Memoization is when you store previous results of a function call (a real function always returns the same thing, given the same inputs).
Previous
Next