Question from the Algorithmics - Fundamentals test

What is the name of the type of sort performed by the following code?

Medium

What is the name of the type of sort performed by the following code?

function sortArray(Array examNotes) {
         For i ranging from size of examNotes-1 to 1
        {
                For j ranging from 0 to i - 1
                {
                    If examNotes[j+1] < examNotes[j]
                    {
                        swap(examNotes[j+1], examNotesT[j]);
                    }
                }
              }
            }
Author: KahinaStatus: Published(Update)Question passed 508 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!