Question
A and B are travelling towards each other with a speed
of 30 km/hr and 40 km/hr. If they started at same time and A covered 20 km less distance than B before meeting him, then find the distance between them before starting.Solution
Since, the time taken by A and B is same, therefore the ratio of the distance covered by them will be equal to the ratio of their speeds. Therefore, ratio of the distance covered by A and B = 30:40 = 3:4 Let the distance covered by A and B be 3x km and 4x km According to the question, 4x – 3x = 20 Or, x = 20 Therefore, distance between them before starting = 3x + 4x = 7x = 140 km
Consider the following stack operations. What will be the content of the stack after executing all the operations?
Stackstack = new Stack... Tarjan’s algorithm is used to find:
Which data structure is most suitable for implementing a priority queue with logarithmic time complexity for insertion and deletion?
- Machine Learning
Which Machine Learning model is best suited for predicting stock market trends based on sequential time-series data?
In a graph, what is the maximum number of edges in a simple undirected graph with 'n' vertices?
If an algorithm takes $5n²  + 3n + 10$ steps for an input of size n, its Big O notation would be:
Which of the following statements about normalization in relational databases is correct?
What is the primary purpose of a B+ Tree in a database management system?
What is the primary purpose of an abstract class?
Which of the following represents the Preorder Traversal of the binary tree given below?
       A       / \      B   C   ...