Skip to content

Instantly share code, notes, and snippets.

View sofianehaddad's full-sized avatar

Sofiane Haddad sofianehaddad

View GitHub Profile
@HViktorTsoi
HViktorTsoi / Argsort.cpp
Created June 21, 2020 07:23
C++ STL implementation of Argsort
#include <vector>
#include <algorithm>
/**
* Argsort(currently support ascending sort)
* @tparam T array element type
* @param array input array
* @return indices w.r.t sorted array
*/
template<typename T>