▼ Popular
Calculate time complexity
Free mode
100% free
Freemium
Free Trial
Other tools
-
37,586143Released 1y agoFree + from $7/moNariman Mohamed🙏 17 karmaSep 10, 2024The tutor mode is amazing. It helped me understand the equation and how I can solve it step by step with the explanation.
-
Open11,63863Released 2y agoFree + from $49/mo -
No more guesswork: get AI-powered software cost estimates in minutesOpen10,914246Released 1y ago100% Free -
7,41670Released 9mo agoFree + from $3.5/moI am honestly impressed by the quality of questions generated. Looks better than the other study tools so far.
- Sponsor:Rocket
-
5,44458Released 2y agoFree + from $4.33/moSite is a little slow but the formulas are almost perfect. Huge Excel guy here. A lot of these suck.
-
4,74178Released 3y agoFree + from $14/mo
-
4,05628Released 2y agoNo pricing
-
3,67010Released 2y agoFree + from $5/moHi there - this is Paris, the maker of TimeComplexity.ai! I hope you like this tool, please let me know any feedback!
-
AI-timekeeping enabling lawyers, accountants, and consultants to focus on their work.Open3,37933v3.3 released 10mo agoNo pricing
-
2,7905Released 1y agoFree + from $0.99
-
2,65513Released 2y agoFrom $11/mo
-
2,58468Released 1y agoFree + from $9.9/moIt solved a tricky question at the first instance. Although, when I asked this question again, it missed it just by an inch. 4/5, highly recommended.
- Didn't find the AI you were looking for?
-
2,26025Released 3y agoFree + from $6.75/mo
-
Solve Math Problems Instantly with AI-Powered Step-by-Step ExplanationsOpen1,39520Released 1mo agoFree + from $7.99/mo
-
1,13437Released 1y ago100% FreeAppears to give factual and relevant responses. Includes sources. Has a clean interface and provides quick responses. It's also free. Awesome AI web app!
-
1,11611Released 2y agoFree + from $15/yrThese guys are onto something solid. Life changing for me having been in the professional services industry my entire life and soooo over project/admin time tracking.
-
1,06814Released 2y ago100% Free
-
95231Released 2y agoFree + from $7.9/mo
-
94715Released 5y agoFree + from $4.60/mo
-
8017Released 8mo agoNo pricingDoesn’t work without a us phone number or us education email. Unsuited for internationals.
-
7184Released 2y agoFrom $29/mo
-
4823Released 11mo agoFree + from $6.9/mo
-
2531Released 1y agoFree + from $49.99
Ask the community
ASHUTOSH MISHRA 21SCSE1010696
Feb 23, 2025
time complexity of this code?
int res(int arr[], int i, int n, int k){
if(n-i>0){
if(sum(arr, i, n)==k){
return n-i;
}
else{
return max(res(arr,i 1,n,k),res(arr,i,n-1,k));
}
}
else
return -1;
}
Post

