Question 1 | MCQ
Solution
Solution
Solution
Solution
Solution
Consider the following statements:
1. A single stack can be used to check whether a word is palindrome or not
2. A stack can be used to evaluate expressions.
3. The last element to be inserted into a stack will always be the last element to be taken out of the stack.
Choose the correct option regarding the given statements.
Note:A palindrome is a word that spells the same from both sides. Eg: radar
1. A single stack can be used to check whether a word is palindrome or not
2. A stack can be used to evaluate expressions.
3. The last element to be inserted into a stack will always be the last element to be taken out of the stack.
Choose the correct option regarding the given statements.
Note:A palindrome is a word that spells the same from both sides. Eg: radar
Solution
According to the conventional definition, an array is a fixed size data structure whose values are contiguously located in memory, whereas a linked list is a dynamic collection (size can change) of values that are not contiguously located in memory.
Considering the above definitions, if we use a Binary search algorithm to find a value from a linked list, then what would be the worst-case time complexity of Binary search?
Considering the above definitions, if we use a Binary search algorithm to find a value from a linked list, then what would be the worst-case time complexity of Binary search?
Solution
Solution
Consider a connected, directed graph on which DFS is executed. Which of the following options are true regarding pre and post numbering used in the DFS algorithm on the graph?
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Consider a DAG with V = {A, B, C, D, E, F, G}, shown below. Which of the following is/arevalid topological orderings of the DAG?

Solution
NOTE:Enter your answer to the nearest integer.
Solution
Shape
Thickness [ / ]
3
All colors