Question
If in the number '283562741', 2 is added to all odd
digits then how many pairs of digits are there in the new number which have as many digits between them both forward and backward as between them in the number series?Solution
2         8         3         5         6         2         7         4         1 2         8         5         7         6         2         9         4         3 So, there are six pairs '26', ’58, ‘24’, ‘34’, ‘25’ and ‘67’ in the new number which have as many digits between them (only forward) as between them in the number series.
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: