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

0 0 votes
1 1 answer
232
232 views
Let $T$ be a Binary Tree (not necessarily a BST) with $n$ nodes. Let $\operatorname{Pre}(T), \operatorname{In}(T)$, and $\operatorname{Post}(T)$ denote the Pre-order, In-...
3 3 votes
1 1 answer
215
215 views
Consider a set of $n=4$ distinct keys $\left\{K_1, K_2, K_3, K_4\right\}$. We construct a Binary Search Tree (BST) by inserting these keys in a random order, where each o...
2 2 votes
1 1 answer
192
192 views
Consider a hash table with $m=100$ slots. We insert $n=10$ distinct keys into the table using uniform hashing. What is the probability that there are no collisions during...
2 2 votes
1 1 answer
229
229 views
Which of the following statements regarding Python data structures is FALSE?A TUPLE CAN BE USED AS A DICTIONARY KEY IF ALL ITS ELEMENTS ARE IMMUTABLE. THE TIME COMPLEXITY...
1 1 vote
1 1 answer
244
244 views
Consider the following Python code snippet:x = [i 2 for i in range(5) if i % 2 == 0] y = x x[0] = 10 print(y[0] + len(x))What is the output of the code?
To see more, click for the full list of questions or popular tags.