Thanga Ganapathyganapathy.hashnode.dev·43 minutes agoUse JavaScript's New Set Composition Methods Without PolyfillsWelcome, There is a proposal to add methods like union and intersection to JavaScript's built-in Set class. It is currently at stage 3, but some browsers like chrome already supports it. As you can see the currently supported runtimes are very limite...DiscussJavaScript
Jinali Ghogharijinali.hashnode.dev·Mar 19, 2024When to use Lists, Sets, Maps or IterablesDart provides several options, including lists, sets, maps, and the more abstract concept of Iterables. Each has its own strengths and weaknesses, making them suitable for different scenarios. In this blog post, we'll explore when to use lists, sets,...DiscussDartDart
Abdullah Bin Altafdevopswithabdullah.hashnode.dev·Feb 19, 2024Lecture # 13 - SetsSet: In Python, a set is an unordered collection of unique elements. Sets are used when the existence of an element in a collection is more important than the order or how many times it occurs. Sets are mutable, meaning you can modify them after they...DiscussDevops
Srushti srushtisblog.hashnode.dev·Feb 2, 2024Sets Data Structure in PythonDefining a set A set is an unordered collection of unique elements. Sets are enclosed in curly braces {}. They are useful for storing distinct values and performing set operations. empty_set = set() #Creating an Empty Set fruits = {"apple", "banana"...DiscussSets
Jyotiprakash Mishrablog.jyotiprakash.org·Dec 31, 2023Convenience! GLib for lists, sets, maps, and stringsGLib is a versatile utility library used in many applications and frameworks, especially those in the GNOME ecosystem. It provides data structures and utilities for C programming. Here's a guide on how to use some of its core features like ArrayLists...Discuss·27 readsC ProgrammingGLib
Suryasuryasun.hashnode.dev·Dec 28, 20231.Contains DuplicateLeet code question Example 1: Input: nums = [1,2,3,1] Output: true Example 2: Input: nums = [1,2,3,4] Output: false Example 3: // code function containsDuplicate(nums){ // creating set using nums const isDuplicate=new Set(nums); ...Discuss·1 likeDSA
Shashank Shetshashankshet.hashnode.dev·Dec 13, 2023Unlocking the Power of Sets in Python: A Comprehensive GuideSets in Python are a dynamic and versatile data structure that provides a unique approach to handling collections of elements. In this comprehensive guide, we will explore the fundamentals of sets, from creation to advanced operations, and dive into ...DiscussPython
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·26 readsdata structures in java
maham tariqmahamtariq58.hashnode.dev·Nov 24, 2023Tuples and SetsTuples Tuples are in-built data structures in Python that are similar to lists, except that tuples are immutable (i.e., contents cannot be changed). Creating a Tuple # empty tuple t = () # tuple with single item t = ('hello',) # Homogeneous tuple ...DiscussPython Essentialsset comprehension
Elucian MoiseforProgramming Languagessagecode.hashnode.dev·Oct 28, 2023Python SetDefinition: A data set in mathematics is a collection of data points, which are usually numbers. The data points can be collected from an experiment, a survey, or any other source. Data sets are often used to represent the values of a variable, such ...DiscussPython SyntaxPython