Write a program for following sequence and analyze complexity of the program 1, 2, 2, 3, 3, 3, ............... 100 (100 times)
Write a program for following sequence and analyze complexity of the program
1, 2, 2, 3, 3, 3, ............... 100 (100 times)
From the Sonali & Janata Bank Officer (IT) October 2023 – Written (MIST) exam, question 3 of 18.
More from this paper
- Previous: Find the output of following program: int F(n) { if n == 0 return 0; if n == 1 return 1; return F(n-2)+F(n-1); } int main() { result F(5); }
- Next: Which SDLC do you prefer between Agile and waterfall model explain with example.
- All questions in Sonali & Janata Bank Officer (IT) October 2023 – Written (MIST)