Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged goclasses-da-dpp-day-217
3
3 votes
2
2 answers
153
153 views
GO Classes DPP | GATE DA | Python & DSA | Membership Cost
Let $\text{L}$ contain $\text{N}$ items. What is the Big-O efficiency of the following function?def countSquares(L): count = 0 for item in L: square = item 2 if item != s...
GO Classes
153
views
asked
Jul 6
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-217
python-&-dsa
goclasses-python-&-dsa-practice-questions
time-complexity
+
–
1
1 vote
2
2 answers
123
123 views
GO Classes DPP | GATE DA | Python & DSA | Dependent Loops
Let $\text{N = n}$. What is the Big-O efficiency of the function below?def f1(n): ret = [] for i in range(n): for j in range(i + 1, n): ret.append(i + j) return ret$\math...
GO Classes
123
views
asked
Jul 6
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-217
python-&-dsa
goclasses-python-&-dsa-practice-questions
time-complexity
+
–
1
1 vote
2
2 answers
117
117 views
GO Classes DPP | GATE DA | Python & DSA | Tricky Loop
Describe the order of growth of the function below.def bonk(n): sum = 0 while n >= 2: sum += n n = n / 2 return sumConstantLogarithmicLinearQuadraticExponentialNone of th...
GO Classes
117
views
asked
Jul 6
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-217
python-&-dsa
goclasses-python-&-dsa-practice-questions
time-complexity
+
–
1
1 vote
2
2 answers
108
108 views
GO Classes DPP | GATE DA | Python & DSA | Halving Input
What is the order of growth of $\texttt{foo}$ in terms of $\texttt{n}$, where $\texttt{n}$ is the length of $\texttt{lst}$?Assume slicing a list and calling $\texttt{len}...
GO Classes
108
views
asked
Jul 6
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-217
python-&-dsa
goclasses-python-&-dsa-practice-questions
time-complexity
+
–
1
1 vote
2
2 answers
120
120 views
GO Classes DPP | GATE DA | Python & DSA | Nested Calls
What is the order of growth of $\texttt{bar}$ in terms of $\texttt{n}$?def bar(n): i, sum = 1, 0 while i <= n: sum += biz(n) i += 1 return sum def biz(n): i, sum = 1, 0 w...
GO Classes
120
views
asked
Jul 6
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-217
python-&-dsa
goclasses-python-&-dsa-practice-questions
time-complexity
+
–
To see more, click for the
full list of questions
or
popular tags
.