Talk:Binary search: Difference between revisions
Content added Content deleted
(Proposing improvement on bsearch_r in C.) |
|||
Line 24: | Line 24: | ||
== Recursive binary search in C == |
== Recursive binary search in C == |
||
Is there any reason why <code>n</code> is passed as argument in <code>int bsearch_r (int *a, int n, int x, int i, int j)</code> [http://rosettacode.org/wiki/Binary_search#C in C]? --[[User:Natema|Natema]] ([[User talk:Natema|talk]]) 05:31, 10 February 2016 (UTC) |
Is there any reason why <code>n</code> is passed as argument in <code>int bsearch_r (int *a, int n, int x, int i, int j)</code> [http://rosettacode.org/wiki/Binary_search#C in C]? --[[User:Natema|Natema]] ([[User talk:Natema|talk]]) 05:31, 10 February 2016 (UTC) |
||
: I agree with your hint - that parameter does look to be unnecessary. --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 11:42, 10 February 2016 (UTC) |