a series of coding questions based on recursion Activity Stars 0 stars Watchers 1 watching Forks 0 forks Report repository Releases No releases published Packages No packages published Languages C++ 100.0% Footer © 2025 GitHub, Inc. Footer navigation Terms Privacy Security Status Docs Contact Manage cookies Do not share my p...
These Java interview questions are based-on Core and advanced Java programming topics such as Core Java Concepts, Object-Oriented Programming (OOP), Java Collections Framework, Multithreading, Java I/O, Exception Handling, Java Memory Management, Java Annotations, Java Design Patterns, Java Streams ...
Create a function that, given a DOM Element on the page, will visit the element itself andallof its descendents (not just its immediate children). For each element visited, the function should pass that element to a provided callback function. ...
Depth-first search (DFS) is based on LIFO (last-in, first-out). A recursion is implemented with the LIFO stack data structure. Thus, the nodes are in a different order than in BFS. The path is stored in each iteration from root to leaf nodes in a linear fashion with space requirement...
You can also use recursion to print a Fibonacci sequence, because the Fibonacci number is generated by adding the previous two numbers in the sequence: F(N)=F(N-1)+ F(N-2) Copy The following example class shows how to use recursion to calculate a Fibonacci sequence that is 10 numbers ...
Walk me through a project you’ve worked on How do you find the third node from the end in a singly linked list? How do you find the sum of two linked lists using Stack? How can a given string be reversed using recursion? How do you count a number of vowels and consonants in a...
How could you develop a reliable communication protocol based on a non-reliable one? Million-Dollar Mistake Tony Hoare who invented the null reference once said "I call it my billion-dollar mistake" since it led to "innumerable errors, vulnerabilities, and system crashes, which have probably cau...
Inline: returns a table data type based on a single SELECT statement. Multi-statement: returns a tabular result-set but, unlike inline, multiple SELECT statements can be used inside the function body.9. What is a UNIQUE constraint? A UNIQUE constraint ensures that all values in a column are...
Further you can go through your past assignments you have done with the subject and make sure you are able to speak confidently on them. If you are fresher then interviewer does not expect you will answer very complex questions, rather you have to make your basics concepts very strong. ...
The output of one recursion operation is usually the direct input for the next iteration operation, and this process goes on. 36. How does bubble sort work? Bubble sort is one of the most used sorting techniques out there. It is applied to arrays where elements adjacent to each other are...