未验证 提交 306de24e 编写于 作者: S Sushil Kumar 提交者: GitHub

Suggested changes has been made.

上级 498db114
......@@ -54,9 +54,9 @@ namespace search {
namespace median_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.
* @param A array where numbers are saved
* @param idx current index in array
* @returns corresponding element which we want to search.
*/
int median_of_medians(const std::vector<int>& A, const int& idx) {
int pivot = 0; // initialized with zero
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册