Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Nadi Tomeh
SDA
Commits
1be928fa
Commit
1be928fa
authored
Sep 10, 2019
by
david
Browse files
Commentaires python suppression accents 3
parent
b0a785da
Changes
1
Hide whitespace changes
Inline
Side-by-side
TP1/Python/analyzer.py
View file @
1be928fa
...
...
@@ -29,7 +29,7 @@ class Analyzer:
# Renvoie le cout amorti d'une operation.
# Complexite en temps/espace, meilleur cas : O(1)
# @param pos est l'indice de l'operation pour laquelle on veut conna
î
tre le cout amorti.
# @param pos est l'indice de l'operation pour laquelle on veut conna
i
tre le cout amorti.
# @returns le cout amorti d'une operation.
def
get_amortized_cost
(
self
,
pos
):
return
self
.
cumulative_cost
[
pos
]
/
pos
if
pos
>
0
else
self
.
cumulative_cost
[
pos
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment