How should we sort this array ? Somebody explain . What is meant when it's said to solve in linear time?
I can point you out to what you need to understand it Read about computational complexity, especially about "O notation". By linear time, they mean O(n) There are videos about it on many resources. Even khan-academy
Can you tell me exactly in which sorting technique should I sort it ?
If there are n elements, there should be n steps
Like selection sort ?
It's nlogn
Then which sorting should I use ?
Обсуждают сегодня