Reverse sored array and start and end problem

firstly why we create reverse sorted array after calling of bubble sort and sort function
and when we write start and end variable for merge sort why we dont use time_t class function

hey @TheSourabh why we have created reverse sorted array is because we have to analyze the time complexity of it being sorted and we don’t want to merge it’s timing with sorting of other array.

this is because the end time is ending time for sorting & start time is the starting time for sorting . so when we subtract them we will get time for merge sort. So there was no need to use time_t class function.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.