Question
The digits of a two-digit number are in the ratio 5:2
(tens to units). If the sum of digits is 14, find the product of those digits.Solution
ATQ,
Let, ten’s digit and unit’s digit be 5x and 2x respectively. 5x + 2x = 14 7x = 14 x = 14/7 = 2 Therefore, required number = 52 So, product of digits = 5 × 2 = 10
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: