Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Mareš
prm1
Commits
68ad052a
Commit
68ad052a
authored
Nov 18, 2019
by
Martin Mareš
Browse files
Slovníky: Shrnutí
parent
e08e1e30
Changes
1
Show whitespace changes
Inline
Side-by-side
08-slovniky/08-slovniky.tex
View file @
68ad052a
...
@@ -114,7 +114,7 @@ a - b
...
@@ -114,7 +114,7 @@ a - b
teploty =
\{
"Praha": 17, "Dillí": 42, "Longyearbyen": -46
\}\\
teploty =
\{
"Praha": 17, "Dillí": 42, "Longyearbyen": -46
\}\\
teploty["Praha"]
teploty["Praha"]
}{
%
}{
%
17
\cmt
{
(klíčem může být každý neměnný typ)
}
17
}
}
\py
{
%
\py
{
%
...
@@ -229,4 +229,21 @@ list(podle\_délek.items())
...
@@ -229,4 +229,21 @@ list(podle\_délek.items())
% ----------------------------------------------------------------------
% ----------------------------------------------------------------------
\begin{frame}
{
Shrnutí: Vlastnosti množin a slovníků
}
\begin{itemize}
\item
Klíčem může být libovolný neměnný typ (třeba číslo, řetězec či tuple,
ale ne seznam nebo množina).
\item
Operace s~jednotlivými prvky běží v~konstantním čase (aspoň průměrně).
\item
Operace s~celou množinou běží v~lineárním čase.
\end{itemize}
\end{frame}
% ----------------------------------------------------------------------
\end{document}
\end{document}
Write
Preview
Supports
Markdown
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