Skip to content

Instantly share code, notes, and snippets.

View KyleMcMaster's full-sized avatar
🤓

Kyle McMaster KyleMcMaster

🤓
View GitHub Profile
#include<bits/stdc++.h> // header file for all c++ libraries
using namespace std; // stdout library for printing values
bool custom_sort(double a, double b) /* this custom sort function is defined to
sort on basis of min absolute value or error*/
{
double a1=abs(a-0);
double b1=abs(b-0);
return a1<b1;
}
int main()