Vaishnavi Dwivedivaishd.hashnode.dev·Nov 18, 2024Java Collections FrameworkImagine you're in a busy kitchen, using different tools to prepare a meal—this is similar to the Java Collections Framework. It provides a set of classes and interfaces to store, manage, and retrieve data in your programs. Just like you have differen...DiscussLearn DSA - JAVAJava List, Set, Map, Queue
Akash De Alwiszencode002.hashnode.dev·Jun 30, 2024Java Collections FrameworkThe Java Collections Framework (JCF) is an important part of Java that provides classes and interfaces to work with objects in a collection. Understanding collections is important for all undergraduate students who want to write code that is both eff...DiscussJava
Vineeth Chivukulavineethchivukula.hashnode.dev·Jun 24, 2024Understanding Java HashSet for DSAA HashSet in Java is a part of the Java Collections Framework and provides a way to store unique elements. It is part of the java.util package and implements the Set interface. The HashSet class does not allow duplicate elements, allows at most one n...Discusshashset
Chetan Dattachetan77.hashnode.dev·Jun 12, 202422 Java - SetSet Properties Collection of Objects, but it does not contain duplicate value (only one 'null' value you can insert) Unlike List, Set is not an Ordered collection, means objects inside set does not follow the insertion order. Unlike List, Set cann...Discuss·32 readsJavaLinkedHashSet
Gulshan Kumarperfinsights.hashnode.dev·Mar 12, 2024Minimum Common ValueGiven two integer arrays nums1 and nums2, sorted in non-decreasing order, return the minimum integer common to both arrays. If there is no common integer amongst nums1 and nums2, return -1. Note that an integer is said to be common to nums1 and nums2...DiscussJava SolutionJava
Jessie Yujessieyu1.hashnode.dev·Mar 10, 2024Leetcode 142. Linked List Cycle IIGiven the head of a linked list, return the node where the cycle begins. If there is no cycle, return null. There is a cycle in a linked list if there is some node in the list that can be reached again by continuously following the next pointer. Inte...DiscussLeetcodeleetcode
Denis Kinyuadeniskinyua.hashnode.dev·Dec 8, 2023Internal Implementation of HashSet in JavaIn the previous article, we learned what a HashSet is and its different methods. In this article, we are going to learn about the internal implementations of a HashSet in Java. In order to learn any implementation in Java, it is essential to go throu...Discuss·29 readsdata structures in java
Heera Jatheerajat.hashnode.dev·Oct 3, 2023What is diffrence between HashSet and HashMap in java? Answer it with relevent code example.HashSet and HashMap are both data structures used in Java for storing and managing collections of elements, but they serve different purposes and have different characteristics: HashSet: HashSet is a collection that stores unique elements. It does ...Discuss·3 likeshashmap
Eyuel Dan⭐⭐⭐blog.eyucoder.com·Mar 13, 2023Product of Array Except Self - LeetCode ProblemProblem Description The "Product of Array Except Self" problem statement is as follows: Given an array of integers, return an array where each element is the product of all the elements in the original array except for the one at its index. Solution ...Discuss·57 readsleetcode
Eyuel Dan⭐⭐⭐blog.eyucoder.com·Mar 13, 2023Valid Anagram - LeetCode ProblemProblem Description The "Valid Anagram" problem is given two strings s and t, write a function to determine if t is an anagram of s. An anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all t...Discussarray