Align table control characters

This commit is contained in:
Florian 2025-11-17 16:19:58 +01:00
parent b4ab0f38d4
commit d01e0e7a2b
2 changed files with 33 additions and 35 deletions

View File

@ -317,8 +317,7 @@ Weiterführendes Beispiel
\begin{table}[h] \begin{table}[h]
\begin{tabular}{llr} \begin{tabular}{llr}
\toprule \toprule
Struktur & \multicolumn{2}{l}{Zeitkomplexität für Zugriff} \\ \cmidrule(r){2-3} Struktur & \multicolumn{2}{l}{Zeitkomplexität für Zugriff} \\ \cmidrule(r){2-3} & Average & Worst \\
& Average & Worst \\
\midrule \midrule
Stack & $\mathcal{O}(n)$ & $\mathcal{O}(n)$ \\ Stack & $\mathcal{O}(n)$ & $\mathcal{O}(n)$ \\
Binärbaum & $\mathcal{O}(log(n))$ & $\mathcal{O}(log(n))$ \\ Binärbaum & $\mathcal{O}(log(n))$ & $\mathcal{O}(log(n))$ \\

View File

@ -317,8 +317,7 @@ An advanced example
\begin{table}[h] \begin{table}[h]
\begin{tabular}{llr} \begin{tabular}{llr}
\toprule \toprule
Structure & \multicolumn{2}{l}{Access time complexity} \\ \cmidrule(r){2-3} Structure & \multicolumn{2}{l}{Access time complexity} \\ \cmidrule(r){2-3} & Average & Worst \\
& Average & Worst \\
\midrule \midrule
Stack & $\mathcal{O}(n)$ & $\mathcal{O}(n)$ \\ Stack & $\mathcal{O}(n)$ & $\mathcal{O}(n)$ \\
Binary tree & $\mathcal{O}(log(n))$ & $\mathcal{O}(n)$ \\ Binary tree & $\mathcal{O}(log(n))$ & $\mathcal{O}(n)$ \\