Timeline for What's wrong with this binary search implemented using recursion?
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 29, 2014 at 18:30 | history | rollback | Air |
Rollback to Revision 1
|
|
Dec 29, 2014 at 18:29 | history | rollback | Air |
Rollback to Revision 2
|
|
Nov 7, 2014 at 8:59 | answer | added | SebBr | timeline score: -1 | |
Nov 7, 2014 at 7:20 | vote | accept | rohan | ||
Nov 7, 2014 at 7:13 | history | edited | rohan | CC BY-SA 3.0 |
added 130 characters in body
|
Nov 7, 2014 at 7:03 | history | edited | rohan | CC BY-SA 3.0 |
deleted 774 characters in body
|
Nov 6, 2014 at 13:24 | answer | added | kzidane | timeline score: 6 | |
Nov 6, 2014 at 13:14 | comment | added | SebBr | I´m watching this question for a while too. I´m wondering whether you already wrote a non-recursive binary search that is working. If not I would advise that to you, since there are some logical flaws in your algorithm. And i would advise that you test your code with a hard coded array[20]. | |
Nov 6, 2014 at 12:53 | comment | added | user2942 | Your algorithm for binary search is not correct. You should try writing pseudo code first and also try execute code that you write. If you can't come up with any solution then watch walkthrough for pset3. If still you can't solve the problem just ask I will explain it to you. I didn't write answer directly because you wouldn't have understood exactly how recursion works and how to implement it correctly. Just ask if you need help. | |
Nov 6, 2014 at 10:54 | review | First posts | |||
Nov 6, 2014 at 15:19 | |||||
Nov 6, 2014 at 10:54 | history | asked | rohan | CC BY-SA 3.0 |