Rajesh Tatavarthycodecogniz.com·Oct 14, 2024JavaScript - TidbitsLike sets and relations in mathematics, JavaScript has built-in objects to demonstrate such logics and make developers’ life more logical, easy going and fun. JavaScript has a special object called ‘Set’. A Set() is a constructor that creates a set o...Discuss·2 likes·103 readsJavaScript
Fiyin Akinsikufiyinakinsiku.hashnode.dev·Sep 13, 2024PostgreSQL CROSS JOINThe PostgreSQL CROSS JOIN clause is a type of join that returns the Cartesian product of two tables. What is a Cartesian product? Image created on Canva.com A Cartesian product is the result of combining every entry in one dataset with every entry i...DiscussWhat I'm learning today
MOHD YUSUFmohdyusuf2312.hashnode.dev·Aug 25, 2024Sets using JavaScript.Set is a well-defined collection of elements. It stores unique elements. If you insert duplicate element in a set than it will discard that duplicate element. Let's understand this with another scenario. If you accidently entered an element two or mo...DiscussSets
Ayomikun Osotaayoosota.hashnode.dev·Aug 11, 2024The Power of JavaScript's ‘Map’ and ‘Set’ ObjectsUnderstanding Map Imagine you’re working on an admin dashboard that tracks various actions performed by users, such as editing their profiles, uploading documents, or making transactions. The backend sends you an array of event logs for each user, wi...Discuss·2 likesJavaScript
Sandhya KondmareforSandhya Kondmare's team blogkloudsan9.hashnode.dev·Aug 4, 2024Essential Python Data Types Explained for New ProgrammersPython ek versatile aur powerful programming language hai jo alag-alag data types ko support karti hai. Yeh blog post Python ke primary data types ke baare me batayegi, including complex numbers, strings, booleans, lists, tuples, dictionaries, aur se...Discussdatatypes
Khaleelhashnode.khaleel.dev·Aug 2, 2024You've been using Set wrong this whole time!Imagine you've built this cool bit of logic that relies on using a Set of objects. You've written the class yourself, and now you're passing objects into a set like so. class CleverClass: def __init__(self, name: str, data: dict[str, bool]) -> No...Discussdunder method
Danny Crastoblog.danwald.me·Jul 28, 2024frozen sets pay no heed to orderI superficially assumed a frozenset accounts for the order of items it was constructed with such that the following assertion would fail. assert( frozenset([('a',1), ('b',1)]) == frozenset([('b',1), ('a',1)]) ) Thinking about it for a second, set...DiscussPython
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·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·57 readsdictionary methods