未验证 提交 498db114 编写于 作者: S Sushil Kumar 提交者: GitHub

updated median_search (#962 as reference)

上级 caed3dda
......@@ -53,8 +53,9 @@ namespace search {
*/
namespace median_search {
/**
* This function Search the element in **a** whose index is **idx** and return element at index **idx** in **a** (a[idx])
* @param A(list) and idx(index) of element which we want to search
* This function search the element in an array for the given index.
* @param A an array
* @param idx the index
* @return corresponding element which we want to search.
*/
int median_of_medians(const std::vector<int>& A, const int& idx) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册