Problems
Contest
Discuss
Interview
Online Interview
Assessment
Store
Redeem
Premium
For you
For you
Create
Most Votes
All Time
Newest
No search result
Create
What is the big-o for this code?
jairpeb
48
def
calc
(
n
)
:
cnt
=
0
for
i
in
range
(
n
)
:
for
j
in
range
(
i
,
n
)
:
for
k
in
range
(
i
,
j
+
1
)
:
cnt
+=
1
1
1
Comments (1)
Sort by:
Best
Comment
1
Explore
Download App
Support
Terms
Privacy Policy
More
Copyright © 2026 LeetCode
United States