#### Musings of Binary Search

: Binary Search is the one of the most simplest difficult algorithms in CS. The first Binary Search Al … more →

Tags: algorithm, Complexity

#### Binary Search

: C++ Code To Search An Item In An Array Using Binary Search Technique:   int binarysearch(float … more →

#### Binary Search Algorithm

: Binary Search: (C++ Code) #include<iostream.h> int binary(int A[10],int n,int item) { int beg= … more →

#### int sqrt(int)

: Implement integral sqrt. Key: binary search class Solution { public: int sqrt(int x) { // Start typi … more →

Tags: Uncategorized

#### Binary Search in Scheme

: Intro Just for fun, I’ve begun translating some of the algorithms from Mastering Algorithms wi … more →

#### Bullseye: Google Code Jam 2013 Round 1A — 1 comment

: This problem appeared in Round 1A of Google Code Jam 2013. Here’s the problem description: Mar … more →

#### GCJ - Bullseye

: Bullseye, Round 1A 2013 This is a largely mathematical problem: the first ring will use  units of pa … more →

#### Algorithm (II)——Divide & Conquer

: A divide and conquer algorithm works by recursively breaking down a problem into two or more sub-pro … more →

#### Constructing a balanced Binary Search Tree from a sorted List in O(N) time

: This post discusses a O(n) algorithm that construct a balanced binary search tree (BST) from a sorte … more →

#### ABAP Binary Search

: How to use binary search How not to use binary search Pitfall of binary search It is always advisabl … more →

Tags: binary-search

#### Efficiently count number of elements of a list (array) in a range

: You are given an array of some type of values (say ‘int’) you will have to answer some q … more →

Tags: algorithm, array operation, STL

#### UVa 10706. Number Sequence with F# — 3 comments

: This post describes an algorithm to solve UVa 10706: Number Sequence problem from UVa OJ. Before out … more →

#### Ders 5 : verilen iki listeden ortak elemanlari bulma – en hizli ( finding common elements in given two lists in fastest way)

: O(m log(n) ) calisma zamanli sonuca nasil ulasacagimizi gorduk, simdi bu eleman sayilari birbirinden … more →

#### Resilient Binary Search

: Given an array A with n elements. Array A is sorted except an element A[k] which may be swapped with … more →

Tags: Interview Question

Tags: UVA

Tags: UVA

#### Where is the Marble? 10474

: import java.util.Arrays; import java.util.Scanner; public class WhereIsTheMarble { public static voi … more →

Tags: UVA

#### 11516 - WiFi

: Given a street (a straigt line), a set of houses (points on that line) and a number of wireless acce … more →

#### 11935 - Through the Desert

: Given the discription of a road, find the minimum amount of fuel you need to finish the journey. A b … more →

All →