Coder Profile - Show off your skills, get a coder profile.
 
 
 
The Author
Cinjection
Oleksi Derkatch
Send A Message
Rating
4.00
out of 10
( 1 Ratings )
Please login to rate source codes.

Click here to register a free account with us.
General Details
Ruby
Posted 3.51 Years Ago
3,391 Views
Received 1 Rating
More Codes By This Author
Wordsearch generator.
Linked List in C#
Julia Set
Mandelbrot Set Generator
MD5 Brute-Forcer
Articles By This Author
Intorduction to memoizati...
Strings in C++
Vectors in C++
Use Cases
[C++] Pointers and their...

Binary Search in Ruby


Description
A submission for this contest: http://www.coderprofile.com/content/public/forum/view_topic.php?topic_id=1381

It's a simple, clear recursive implementation of a binary search.
Source Code
Comments
Please login to post comments.
 
ephekt     Posted 2.15 Years Ago
 
 
Okay. Please disregard that last comment. I thought it said iterative, my mistake.
Looks good in the recursive case!
 
ephekt     Posted 2.15 Years Ago
 
 
This is recursive, no? Anytime you call your function from within itself it is
recursive. Why are you calling this iterative? (Signs of an iterative function would
include flow control structures of for, while, and do-while, etc...)
Page 1 of 1
More "Ruby" Source Codes By This Author
Recently Posted "Ruby" Source Codes
Recently Rated "Ruby" Source Codes
 
 
Latest News About Coder Profile
Coder Profile Poll
If you made money from keeping your profile up to date, say $30 and up, per month. What extra time would you spend on your profile?

No extra time
A few hours at weekends
A whole day each week
Every minute i can get free


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
3.20 Years Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2012, Scott Thompson, All Rights Reserved