1. Very nice!

2. Thank you for that small tip. Just thought about investing an hour how to write this down properly.

3. Dário

This may be usefull:

\renewcommand{\O}[1]{$\mathcal{O}(#1)$}
• tom

Thanks, interesting suggestion! Here is a minimal working example for illustration:

\documentclass[11pt]{article}
\renewcommand{\O}[1]{$\mathcal{O}(#1)$}
\begin{document}
\O{n}
\end{document}
4. Ajay Makwana

thank you