Skip to content
Snippets Groups Projects
Commit 68ad052a authored by Martin Mareš's avatar Martin Mareš
Browse files

Slovníky: Shrnutí

parent e08e1e30
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,7 @@ a - b
teploty = \{ "Praha": 17, "Dillí": 42, "Longyearbyen": -46 \}\\
teploty["Praha"]
}{%
17 \cmt{(klíčem může být každý neměnný typ)}
17
}
\py{%
......@@ -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}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment