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

Kallol Bairagikallolbairagi.hashnode.dev·Oct 8, 2023#217.Contains Duplicate [LeetCode Grind 75 in Java]class Solution { public boolean containsDuplicate(int[] nums) { HashSet<Integer> set = new HashSet<>(); for(int i : nums){ if(set.contains(i)) return true; set.add(i); } return false; ...DiscussJava

ESlavin1808eslavin.hashnode.dev·Sep 30, 20233.4 SetsIn Python, a set is an unordered collection of unique elements. It is a powerful data structure that allows you to perform various operations such as union, intersection, difference, and symmetric difference. Sets are mutable, which means you can add...DiscussUnlocking the Python MysteriesSets

Haocheng Linhaochengcodedev.hashnode.dev·Sep 14, 2023[Coding Tutorials 2] Understanding Kruskal's Algorithm Through JavaGood evening, Hashnode Community! 🌍 Today, I dissect an extract of Java code that implements the Kruskal algorithm for finding the minimum spanning tree in a connected, undirected graph. Start by understanding some key components: 1. DisjointSet: Th...DiscussJava

Ulises Alexander Arguelles Monjarazuaam.hashnode.dev·Sep 7, 2023Sets in Python part 2The following operations over sets in Python work similarly to the respective operation in set theory. Union The union of a set with one or more, sets or iterable objects, returns a set that contains all items from the original set, and all the items...Discuss·75 readsPython setsPython

Golu Kumargolukumar.hashnode.dev·Sep 4, 2023Set and MapIn JavaScript, Set and Map are two types of objects that are used for storing data in an ordered manner. Both these data structures are used to store distinct types of data inside the same object. In Maps, the data is stored as a key-value pair where...Discuss·30 readsJavaScript

Arpitha Rajeevarpitha-rajeev.hashnode.dev·Aug 10, 2023Core Python: Part 3Did you know? math.sin__name__ prints 'sin' Check out the previous part: Core Python: Part 2 Dictionary: Some languages call it hash and as we know a dictionary that is used to translate words from one language to another, basically has a key-value p...Discuss·30 readsCore Pythonpython dictionaries

Joseph Kemperwww.diggingdeeper.dev·Aug 4, 2023Sets In PythonWhy is it Important to Know About Sets? Imagine you have just gotten a contract to help a popular blog build software to better track the unique visitors to their site. Because of how their backend software works, you need to use Python to build thi...Discuss·49 readsPython Data Structures TutorialPython

Naymul Islamainaymul.hashnode.dev·May 21, 2023Probability For Mastering Data Science - Part 2In the previous part, we covered Combinatorics today we gonna continue with Sets and Events. Sets and events👇 We use the upper-case letter to denote sets and we use the lower-case letter to denote individual elements. The empty set is denoted by ∅. ...Discuss·29 readsProbability For Mastering Data Scienceprobability