Skip to content

Updated games4e.py#1221

Open
pctablet505 wants to merge 7 commits intoaimacode:masterfrom
pctablet505:master
Open

Updated games4e.py#1221
pctablet505 wants to merge 7 commits intoaimacode:masterfrom
pctablet505:master

Conversation

@pctablet505
Copy link
Copy Markdown

Changed some variable names to reduce confusions.

Reduced time complexity in Priority Queue Implementation
for the __contains__, __getitem__, __delitem__
earlier implementation had O(n) new one has O(1) for contains, and getitem. and log(n) amortized for delitem
typos in old version
Corrected some typos
Changed variable names for action
from `a` initially to `action`
and `n` to `node` as it was confusing.
no need of else block at line 123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant