SKS kavyainkavya08.hashnode.dev路Sep 25, 2025 路 3 min readChapter7: Strings and StringBuilderOverview on String Every string that you create is actually a object of type string. Strings in Java are immutable, meaning their values cannot be changed once they are created. Operations such as concatenation or substring extraction result in the c...00
SKS kavyainkavya08.hashnode.dev路Dec 25, 2023 路 3 min readChapter6: Binary SearchAbout Binary Search Binary search works on a sorted collection of elements, such as an array. The basic idea behind binary search is to repeatedly divide the search interval in half. It has a time complexity of O(log n) where "n" is the number of ...00
SKS kavyainkavya08.hashnode.dev路Dec 24, 2023 路 4 min readChapter5: Linear SearchAbout Linear search Linear search is a simple searching algorithm that iterates through a collection (such as an array or list) to find a specific element. Here's a short example of linear search in Java. It's straightforward but not the most effic...00
SKS kavyainkavya08.hashnode.dev路Dec 11, 2023 路 6 min readChapter4: Arrays and ArrayListsAbout Array In Java, an array is a fundamental data structure that allows the storage of multiple values of the same data type under a single variable name. Arrays provide a convenient way to manage collections of elements, such as integers, characte...00
SKS kavyainkavya08.hashnode.dev路Dec 9, 2023 路 5 min readChapter3: Time complexity and ProgramsIntroduction It is not enough to gain theoretical information. You will become an pro only when you put your knowledge in practical. Let's dive into the coding world where we will be using all that we learnt so far. We will be using functions and met...00