Javascript has no predefined functions to convert a string into title case. We have methods like toUpperCase() and toLowerCase() but we don't have a toTitleCase()
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