cws/pre_cw01.tex
changeset 345 40657f9a4e4a
parent 344 a2ac7e3fa330
child 355 bc3980949af2
equal deleted inserted replaced
344:a2ac7e3fa330 345:40657f9a4e4a
    51 \end{lstlisting}%$
    51 \end{lstlisting}%$
    52 
    52 
    53 \subsection*{Hints}
    53 \subsection*{Hints}
    54 
    54 
    55 \noindent
    55 \noindent
    56 \textbf{For Preliminary Part:} useful math operators: \texttt{\%} for modulo, \texttt{\&} for bit-wise and; useful
    56 \textbf{For the Preliminary Part:} useful math operators: \texttt{\%} for modulo, \texttt{\&} for bit-wise and; useful
    57 functions: \mbox{\texttt{(1\,to\,10)}} for ranges, \texttt{.toInt},
    57 functions: \mbox{\texttt{(1\,to\,10)}} for ranges, \texttt{.toInt},
    58 \texttt{.toList} for conversions, you can use \texttt{List(...).max} for the
    58 \texttt{.toList} for conversions, you can use \texttt{List(...).max} for the
    59 maximum of a list, \texttt{List(...).indexOf(...)} for the first index of
    59 maximum of a list, \texttt{List(...).indexOf(...)} for the first index of
    60 a value in a list.\bigskip
    60 a value in a list.\bigskip
    61 
    61