Suppose that we have a sorted array haystack, with length N and a needle. Let's also suppose that the array is sorted in a non decreasing order. Binary search works by checking the
Sequential or Linear Searching is used to search unsorted arrays. It is a simple algorithm which can serve as a good introduction to algorithms. Suppose we have an array haystack of size N
This post is a part of a series on the classic book: The Pragmatic Programmer. This post is a summary of chapter 2. If you haven't read the summary of chapter 1, you
Trying to make sense of Generics? Here is a basic introduction to wet your beak. Learn about what generics are and how to use them in your code.