for ( i = 1 ; i < n ; i * 2 ){ for ( j = 0 ; j < min( i , k ) ; j++){ sum++ } } } what is the time complexity
for ( i = 1 ; i < n ; i * 2 ){ for ( j = 0 ; j < min( i , k ) ; j++){ sum++ } } } what is the time complexity
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
for ( i = 1 ; i < n ; i * 2 ){
for ( j = 0 ; j < min( i , k ) ; j++){
sum++
}
}
}
what is the time complexity
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
