Quiz
Its quiz time, we will have a short quiz.
Short Quiz
1
What is the big-O of the following code?
func fun7(n int) int {
m := 0
for i := 0; i < n; i++ {
for j := 0; j < n; j++ {
m += 1
}
}
for i := 0; i < n; i++ {
for k := 0; k < n; k++ {
m += 1
}
}
return m
}
A)
(
B)
(
C)
D)
None of the above
Question 1 of 50 attempted
Get hands-on with 1300+ tech skills courses.