Recent questions tagged goclasses-da-dpp-day-95

0 0 votes
1 1 answer
256
256 views
data = {'a': 1, 'b': 2, 'c': 3} keys_view = data.keys() values_view = data.values() data['d'] = 4 data['a'] = 10 print(len(keys_view), sum(values_view))What is the output...
0 0 votes
1 1 answer
192
192 views
Consider the following Python code:matrix = [[1, 2], [3, 4], [5, 6]] result = [x for row in matrix for x in row if x % 2 == 0] final = [result[i] * i for i in range(len(r...
1 1 vote
1 1 answer
243
243 views
Consider the following three functions defined by recurrence relations $($where $T(1)=1):$$f(n)=2 f(n / 2)+n \log n$ $g(n)=4 g(n / 2)+n^2$ $h(n)=8 h(n / 2)+n^2$Which of t...
1 1 vote
1 1 answer
203
203 views
Consider the following traversal sequences of a binary tree:Post-order$: \mathrm{D, E, B, F, G, C, A}$In- order$:\mathrm{D}, \mathrm{B}, \mathrm{E}, \mathrm{A}, \mathrm{F...
1 1 vote
1 1 answer
250
250 views
A hash table of size $M=11$ uses double hashing with the primary hash function $h_1(k)=k (\bmod 11)$ and the secondary hash function $h_2(k)=1+(k(\bmod 10))$. The keys $2...
To see more, click for the full list of questions or popular tags.