Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Trees
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
1MAE002 - ALGORITHM AND COMPUTING
Advanced
Trees
Commits
b8b89dde
Commit
b8b89dde
authored
11 months ago
by
DETCHART Jonathan
Browse files
Options
Downloads
Patches
Plain Diff
correct typos
parent
36b7137c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+2
-2
2 additions, 2 deletions
README.md
with
2 additions
and
2 deletions
README.md
+
2
−
2
View file @
b8b89dde
...
...
@@ -102,7 +102,7 @@ zip -r project.zip . -x "venv/**" ".git/**"
## Binary search [[toc](#table-of-content)]
Let's start this class with a quite simple problem: given a list $l$ of $n$
integers and an integer $i$, how can you tell whether or not $i$ is $l$?
integers and an integer $i$, how can you tell whether or not $i$ is
in
$l$?
:gear: You can run
`make test`
. You should have 14 failing tests, that's
normal you will complete your code base and make sure the tests pass during the
...
...
@@ -114,7 +114,7 @@ class.
:pencil: Can you solve the question above with the list below?
```
python
from
random
import
randint
l
=
[
randint
(
1_000_000
)
for
_
in
range
(
1000
)]
l
=
[
randint
(
1
,
1_000_000
)
for
_
in
range
(
1000
)]
```
:question: What is the complexity of your algorithm?
...
...
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