Reuben D'souzareubendsouza.hashnode.dev·Jul 21, 2024Sorting AlgorithmsSelection Sort Selection sort is a simple and efficient sorting algorithm that works by repeatedly selecting the smallest (or largest) element from the unsorted portion of the list and moving it to the sorted portion of the list. public class Selec...DiscussJava
ANNU KUMARImyfirstblog123.hashnode.dev·Jul 13, 2024All About Linear Search in Java (Part 2)Hey everyone, Today I will write the second part of my article on Linear Search. In this article, I'll describe Linear Search in more depth Such as Implementation Questions, Application Questions, Optimization and Analysis Questions, Theoretical Ques...DiscussJava
Preetika Prakashpreetikaprakash.hashnode.dev·Jul 1, 2024DSA Day 1/200Topic: Arrays 1) Peak ElementEasy Question Input: n = 3, arr[] = {1, 2, 3} Output: 1 Explanation: If the index returned is 2, then the output printed will be 1. Since arr[2] = 3 is greater than its adjacent elements, and there is no element after ...DiscussDSA
Ashish Raicodeun.hashnode.dev·Jun 29, 2024Mountain ArrayAn array of numbers is considered a mountain array if numbers increase up till one point, then decreases till the end. it is also called BITONIC ARRAY. whenever you encounter such questions and asks you to find peak , always note: 1.check if you are ...DiscussJava
Vineeth Chivukulavineethchivukula.hashnode.dev·Jun 23, 2024Understanding Java Arrays for DSAIn Java, arrays are a fundamental data structure that stores a fixed-size sequential collection of elements of the same type. Declaration dataType[] arrayName; Example: int[] numbers; Initialization Arrays can be initialized in several ways: Using ...Discuss·22 likes·103 readsarrays
Vineeth Chivukulavineethchivukula.hashnode.dev·Jun 23, 2024Understanding Java ArrayList for DSAArrayList is a fundamental part of the Java Collections Framework, providing a dynamic array implementation of the List interface. It allows for storing and manipulating a collection of elements, with the ability to grow and shrink dynamically as nee...DiscussArrayList
yash sharmayashsharma8433.hashnode.dev·Jun 14, 2024All You Need To Start With Java - INTROKey Points about Java: Platform Independence: Java introduced the concept of platform independence. Programs are compiled into bytecode, which can run on any platform with a Java Virtual Machine (JVM). Simplicity: Java is simpler compared to l...DiscussJava
Rohit Ghoshrohitg10dsa.hashnode.dev·Jun 9, 2024Rohit's Easy Approach to Data Structures and AlgorithmsToday I learned Binary Search in java from Kunal Kushwaha's playlist in youtube and practised few FAANG interview problems.Firstly,I would thank Kunal for making BS so easy,even the medium level problems in leetcode has become easy for me. So basical...DiscussDSA
FullStackJavafullstackjava.hashnode.dev·Jun 2, 2024Understanding Java Nodes: The Key Components of Linked Lists, Trees, and GraphsWhen diving into the world of data structures in Java, you'll frequently encounter the term "node." A node serves as a fundamental element or building block in various data structures such as linked lists, trees, and graphs. This blog will take a det...DiscussJava
Anushka Joshiloops.hashnode.dev·Apr 29, 2024What is Data StructuresData structures play a crucial role in computing by facilitating the efficient organization of data in memory. They are fundamental components responsible for structuring, manipulating, accessing, and preserving data effectively. However, the signifi...DiscussIntroduction to Data structures and algorithmscoding challenge