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...DiscussJavaLinkedHashSet
Gulshan Kumarperfinsights.hashnode.dev·May 26, 2024Increasing Decreasing StringYou are given a string s. Reorder the string using the following algorithm: Pick the smallest character from s and append it to the result. Pick the smallest character from s which is greater than the last appended character to the result and appen...DiscussJava SolutionJava
Varsha VMvarshv.hashnode.dev·May 25, 2024Python Data StructuresOverview Data Structures are a way of organizing data so that it can be accessed more efficiently depending upon the situation. Lists A list is any list of data items, separated by commas, inside square brackets. They are ordered, mutable, and allo...Discuss·10 likes·52 readsdictionary methods
Tapan Rachchhtapanrachchh.hashnode.dev·May 23, 20242597. The Number of Beautiful SubsetsApproch 1 : Using Array class Solution: def beautifulSubsets(self, nums: List[int], k: int) -> int: ans = 0 def checkBeauty(arr, num): for e in arr: if abs(e - num) == k: return Fal...DiscussPython
Amanda Ene Adoyilonercode.hashnode.dev·May 11, 2024All About the Other Python Iterables: Tuples and SetsWelcome to another post on iterables. In this post we would be talking about Tuples and Sets. Each data bundle houses other data types like numbers, strings and other iterables just like list do (Remember lists?) . They do differ however in terms of ...DiscussPython 3
Thanga Ganapathyganapathy.hashnode.dev·Apr 19, 2024Use 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·38 readsC ProgrammingGLib