Problem Binary Search Tree, with preorder traverse. What other methods should I add? How can I improve it? class Bst […]
Tag: binary-search
Java binary search (and get index if not there) review
Problem I want to do binary search and if the target is not there get the index of where it […]
Binary search implementation [closed]
Problem Closed. This question is off-topic. It is not currently accepting answers. Questions containing broken code or asking for advice […]
Binary search algorithm
Problem Would this recursive solution’s speed be comparable to a non-recursive solution? // returns location of the target public static […]
Binary search in Scala
Problem Another exercise in Scala in which the goal is to find the target position as fast as possible. The […]
Errors with binary search in Haskell
Problem I just learned about Maybe in Haskell, so I decided to try to use it with a binary search. […]
Median of two sorted equal sized arrays on combination
Problem The comprehensive description of the problem can be found here. I’m looking for code review, clever optimizations, adherence to […]
Efficiency of binary search and improvements
Problem Below you can see my binary search method, and as a relatively new programmer I am looking for any […]
Median of two sorted equal sized arrays on combination
Problem The comprehensive description of the problem can be found here. I’m looking for code review, clever optimizations, adherence to […]
Check if a tree is a proper BST [closed]
Problem Closed. This question is off-topic. It is not currently accepting answers. Questions containing broken code or asking for advice […]