I have the following LaTeX code
\documentclass{article}
\usepackage[ruled]{algorithm2e}
\begin{document}
\begin{algorithm}
do something\;
\caption{Algorithm #1}
\end{algorithm}
\begin{algorithm}
do something\;
\caption{Algorithm #2}
\end{algorithm}
\begin{algorithm}
do something\;
\caption{Algorithm #3}
\end{algorithm}
\end{document}
Given that I have initialised algorithm2e with the "ruled" option, the three algorithms appear with a nice ruled frame.
I want the second algorithm to appear with no frame at all, that is, just plain code. Is there a way to achieve this?
Thanks.