Sets in Solidity - Ethereum Smart Contract Development

  Рет қаралды 1,874

CodePulse

CodePulse

Күн бұрын

Пікірлер: 11
@CompactStar
@CompactStar 3 жыл бұрын
make part 3 in OS series
@julesl2087
@julesl2087 3 жыл бұрын
There's an error in the remove function. The index of the last element in the presence map hasn't been updated. Between line 40 and 41 add: presence[items[items.length -1]] = index
@CodePulse
@CodePulse 3 жыл бұрын
Thanks! I take it that it was you who edited the code on stackexchange? Anyway, I accepted that edit but also added + 1 to the index (since the presence value = index + 1). presence[items[items.length -1]] = index + 1
@julesl2087
@julesl2087 3 жыл бұрын
@@CodePulse oops ! Good catch ! Yeah that was me :)
@camsdonostudios7662
@camsdonostudios7662 3 жыл бұрын
When is the next OS episode??
@hdfsyu
@hdfsyu 3 жыл бұрын
my heart is pulsing for the part 3 in OS series oh and what are you gonna do in part 3? (please do a mouse or gui or turning the os into command line tutorial please) EDIT: I have grown a family and learned a new language already why is the fixes taking so long? Part #3 should take a longgggg time not the fixes (and yes I am impatient sorry bout that) EDIT 2: ITS BEEN 3 WEEKS WHY WHY WHY WHY WHY WHY MAKE THE FIXES ALRIGHT ITS BEEN A MONTH GIVE THE FIXES NOW I WILL LEGIT KILL U IF U DON'T
@MadlipzMarathi
@MadlipzMarathi 3 жыл бұрын
Wouldn't BST or AVL tree more efficient than array
@CodePulse
@CodePulse 2 жыл бұрын
I doubt it. I don't think you can get more performant than arrays.
@ConsequenceCode
@ConsequenceCode 3 жыл бұрын
Cool vid I was first
@fluxx2875
@fluxx2875 3 жыл бұрын
Interesting video, BUT Cryptocurrencies are damn bad for the environment 🤷🏼‍♂️
@CodePulse
@CodePulse 2 жыл бұрын
They do waist a lot of electricity, yes, but existing financial systems consume a lot of energy as well. Also, many blockchains, such as Ethereum, are moving to proof of stake which effectively has zero energy waist. Also, there's an argument that Bitcoin miners often use renewable energy or energy that was going to be put to waste anyways (although I'm not sure how true that statement is). kzbin.info/www/bejne/eprHcqqujMZ3gas
ПРИКОЛЫ НАД БРАТОМ #shorts
00:23
Паша Осадчий
Рет қаралды 5 МЛН
Dad gives best memory keeper
01:00
Justin Flom
Рет қаралды 25 МЛН
Men Vs Women Survive The Wilderness For $500,000
31:48
MrBeast
Рет қаралды 98 МЛН
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
pixegami
Рет қаралды 271 М.
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 402 М.
Top Tools & Libraries For Dapp Developers in 2022
9:25
CodePulse
Рет қаралды 1,2 М.
Why Agent Frameworks Will Fail (and what to use instead)
19:21
Dave Ebbelaar
Рет қаралды 60 М.
ПРИКОЛЫ НАД БРАТОМ #shorts
00:23
Паша Осадчий
Рет қаралды 5 МЛН