Question
A and B started a retail store with initial investments
in the ratio 8:9 and their annual profits were in the ratio 2:3. If A invested the money for 6 months, then for how many months did B invest his money?ÂSolution
Suppose A invested Rs. 8x for 6 months and B invested 9x for y months then, ⇒  (8x × 6)/(9x × y) = 2/3 ⇒  y = (48x × 3)/(9x × 2) ⇒  y = 144x/18x ⇒  y = 8
Which of the following correctly describes the primary difference between Cross-Site Request Forgery (CSRF) and Cross-Site Scripting (XSS)?
...What is the time complexity for inserting a node at the end of a singly linked list if you only have a pointer to the head?
Given a singly linked list with 'n' nodes, what is the time complexity to delete the last node?
Which of the following best describes the mechanism of a Cross-Site Scripting (XSS) attack?
What is "rubber duck debugging"?
What is the best-case time complexity of the binary search algorithm ?
If a stack is implemented using a fixed-size array, what is a significant disadvantage when the stack grows beyond its initial capacity?
KMP pattern matching avoids:
Which tree traversal gives nodes in non-decreasing order for a BST?
Suffix Trees are useful for: