New answers tagged

0 votes

Simple selection_sort in C

In addition to @pacmaninbw review: Well formatted Coding goal selection_sort(int *arr, int size) adjusts arr contents, allocates ...
user avatar
3 votes
Accepted

Simple selection_sort in C

Test for Possible Memory Allocation Errors In modern high-level languages such as C++, memory allocation errors throw an exception that the programmer can catch. This is not the case in the C ...
user avatar
2 votes
Accepted

Custom sorting algorithm in Salesforce Apex

For a less verbose way to achieve this in Apex you need to create a wrapper class for EmailTemplate that implements Comparable interface. The advantage is that elements don't need to be manually moved ...
user avatar

Top 50 recent answers are included