Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
projet_s6_loic.scoth.etu_mamadulamarana.bah.etu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Loic Scoth
projet_s6_loic.scoth.etu_mamadulamarana.bah.etu
Commits
e60ec8cf
Commit
e60ec8cf
authored
1 year ago
by
Loic Scoth
Browse files
Options
Downloads
Patches
Plain Diff
fin de séance
parent
b814c420
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/node.py
+32
-1
32 additions, 1 deletion
src/node.py
with
32 additions
and
1 deletion
src/node.py
+
32
−
1
View file @
e60ec8cf
...
...
@@ -6,9 +6,40 @@ class node() :
self
.
kmin
=
kmin
self
.
kmax
=
kmax
#def search(key) :
def
dicho
(
listKeys
,
key
)
:
t
=
len
(
listKeys
)
-
1
d
,
f
=
0
,
t
if
(
listKeys
[
f
]
==
key
)
:
return
(
True
,
f
)
elif
(
d
<
t
and
listKeys
[
d
]
==
key
)
:
return
(
True
,
d
)
while
(
f
-
d
>
1
)
:
m
=
(
d
+
f
)
//
2
if
(
listKeys
[
m
]
>=
key
):
f
=
m
if
(
f
<
t
and
listKeys
[
f
]
==
key
)
:
return
(
True
,
f
)
else
:
d
=
m
if
(
d
<
t
and
listKeys
[
d
]
==
key
)
:
return
(
True
,
d
)
return
(
False
,
0
)
#def getSizeNode() :
#def getPos() :
#def setNewChild() :
#def removeChild() :
#def getSize() :
def
getSize
(
listKey
)
:
return
len
(
listKey
)
#def isLeaf() :
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment