You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the C implementation, the type is defined as typedef struct { int value, index; } Test. Is Test::index required or is it just for the testing purpose? If we are allowed to add an index field to the array, it is trivial to achieve stable sort with any sorting algorithms, by using a comparison function
In the C implementation, the type is defined as
typedef struct { int value, index; } Test
. IsTest::index
required or is it just for the testing purpose? If we are allowed to add anindex
field to the array, it is trivial to achieve stable sort with any sorting algorithms, by using a comparison functionto break any ties, but this is not the true in-place stable sort.
The text was updated successfully, but these errors were encountered: