Small Code of Binary Search

Description it is the sample code on binary search,first enter the size of array and then enter the elements according to that,then enter the item that u want to search ,output will be "Successful or Unsuccessful search". Source Code</h ...

0 Comments. 935 views since Jul 2, 2011

nQueens Problem

Description Generate all possible solutions to the N queens problem.The board is represented by board[1:N], which records for each column whether there is a queen in that column, and if so, which row it occupies. In particular, board[j] = i if ...

0 Comments. 834 views since Sep 25, 2008

Bubble Sort for Strings

Description Bubble sorting in using an array... Source Code class SortString { static String arr[] = { &quot;Now&quot;, &quot;is&quot;, &quot;the&quot;, &quot;time&quot;, &quot;for&qu ...

0 Comments. 822 views since Jan 2, 2009