Question
The sum of the first 10 terms of an arithmetic sequence
is 60 and the 10th term is 5. What is the first term of the sequence?Solution
Sn = (n/2) [2a + (n - 1)d] 60 = 10/2 [2a + (10 - 1)d] 60 = 5 [2a + 9d] 2a + 9d = 12 ------ (i) Given 10th term is 5, so => a10 = a + 9d => a + 9d = 5 ------ (ii) Solving eqn (i) and (ii) we get, => a = 7
Which data structure is typically used to implement Breadth-First Search (BFS)?
In a binary tree, if the number of leaf nodes is L, what is the number of nodes with two children?
Which of the following sorting algorithms is a non-comparison-based sort?
Dynamic Programming is useful when a problem has:
Recursive problems are implemented by
In a binary search tree (BST), what is true about the left child of a node?
Which is not true about minimum spanning tree?
In Data Communication, what protocol is used to ensure reliable transmission of data over a network?
A unique piece of information that is used in encryption.
What is the space complexity of Bubble Sort?