Question
Four number pairs have been given, out of which three
are alike in some manner and one is different. Select the one that is different.Solution
The logic used here is: The difference between the second number and the first number in each pair should be 111. Option 1: (123, 234) βΒ 234 - 123 = 111. This follows the logic. Option 2: (345, 456) β 456 - 345 = 111. This follows the logic. Option 3: (567, 729) β 729 - 567 = 162. This does not follow the logic. Option 4: (678, 789) β 789 - 678 = 111. This follow the logic. Hence, option 3 is the odd one out.
Which tree traversal gives nodes in non-decreasing order for a BST?
In a data warehousing environment, what is the primary purpose of an OLAP (Online Analytical Processing) cube?
In a binary tree, what is the maximum number of children a node can have?
Which sorting algorithm has O(n log n) average case?
Which of the following data structures is best suited for implementing a "undo" mechanism in a text editor?
Which of the following best describes Abstraction in Object-Oriented Programming (OOP)?
What does Big O notation primarily describe?
A stack follows which principle for data access?
Which data structure uses LIFO (Last In, First Out) principle?
What is the difference between 'BFS' (Breadth-First Search) and 'DFS' (Depth-First Search) in graph traversal?