Recent questions tagged goclasses-cs-dpp-day-89

2 2 votes
2 2 answers
397
397 views
You are given a sorted array of $n$ locations on a highway where charging stations are present. You need to select $k$ of these locations to install new fast chargers. Th...
4 4 votes
2 2 answers
419
419 views
A Perfectly balanced binary search tree (BST) contains 15 distinct integers.The largest element is stored at the rightmost node of the tree.Which of the following element...
1 1 vote
1 1 answer
389
389 views
Consider a scheduling problem with $n$ tasks and $k$ distinct resources. Each task $i$ is represented by a tuple ( $s_{-} i, f_{-} i, r_{-} i$ ), where $s_{-} i$ is the s...
3 3 votes
1 1 answer
319
319 views
You are given a rod of length $n$ and an array prices where prices[i] is the selling price of a piece of length i . A fixed cost c is incurred for every cut made. Let $P[...
2 2 votes
1 1 answer
426
426 views
The time complexity of a recursive algorithm is given by the recurrence relation:$$\begin{aligned}& T(n)=\sqrt{n} T(\sqrt{n})+n \\& T(n)=1 \text { for } n \leq 2\end{alig...
To see more, click for the full list of questions or popular tags.