Question
The amortized time for inserting into a dynamic array
(like C++ vector) is:Solution
Occasional reallocation takes O(n), but averaged over all insertions the amortized cost is constant.
Find the missing term in the following number series:
1, 7, 8, ___, 23, 38, 61
Select the correct option that indicates the arrangement of the given words in the order in which they appear in an English dictionary.
1. Formal...
A question is given followed by two arguments. Decide which of the arguments is/are strong with respect to the question.
Question:
Shoul...
In a certain code language, βGAMEβ is coded as β8426β and βMUSTβ is coded as β7853β.
What is the code for βMβ in the given co...
This question is based on the five, three-digit numbers given below.
(Left) 847 429 517 371 386 (Right)
(Example- 697 β First digit = 6,...
Study the given diagram carefully and answer the question that follows. The numbers in different sections indicate the number of persons who have applie...
Based on the English alphabetical order, three of the following four letter-clusters are alike in a certain way and thus form a group. Which letter-clus...
Which of the following numbers will replace the question mark (?) in the given series?
115, 130, 122, 137, 129, ?
If A denotes β+β, B denotes βΓβ, C denotes βββ, and D denotes βΓ·β, then what will come in place of β?β in the following equation...
Seven people, U, M, K, G, B, R and D are sitting in a straight line, facing south. Only two people sit to the left of B. M sits third to the right of G....