+ 9

Set And Map

What is the difference between Set and Map?

11th Sep 2018, 10:48 PM
//Fpharbhulourz/>😋😈🤓🇳🇬
//Fpharbhulourz/>😋😈🤓🇳🇬 - avatar
2 odpowiedzi
+ 3
A set is a data structure containing series of unique but related elements. A map on the other hand is like an associative array(PHP) that allows you to access/store values using keys(usually strings) rather than index A set (2,8,6,7,4,3,1) A map => { age:"16", name:"Dlite", favLanguage:"Python" }
11th Sep 2018, 11:09 PM
Dlite
Dlite - avatar
12th Sep 2018, 12:41 AM
NimWing Yuan
NimWing Yuan - avatar