Answer is 290,but I have 670.

I dont think its 290 because its list's total size.No matter what pattern you take(optimal or not) list size will be 290.

670 will be the total time taken and question is asking for time not final size.

It was a question on testbook.com's test.

just want to know whether my approach is right or not.

I dont think its 290 because its list's total size.No matter what pattern you take(optimal or not) list size will be 290.

670 will be the total time taken and question is asking for time not final size.

It was a question on testbook.com's test.

just want to know whether my approach is right or not.