summaryrefslogtreecommitdiff
path: root/day2/tda.tex
diff options
context:
space:
mode:
authorSantosh G. Vattam2009-10-09 12:10:46 +0530
committerSantosh G. Vattam2009-10-09 12:10:46 +0530
commit561fa0c56a3490714f5b571ef3a82b585fc921f4 (patch)
treec3f8b0baafbba52e00fa80809f0fe7aec6a863c0 /day2/tda.tex
parent4470b8e1445b091e9e06ec2c8adbc54c28a349e2 (diff)
parenta84515c6184cbc6231c5473f8985670805d747af (diff)
downloadworkshops-561fa0c56a3490714f5b571ef3a82b585fc921f4.tar.gz
workshops-561fa0c56a3490714f5b571ef3a82b585fc921f4.tar.bz2
workshops-561fa0c56a3490714f5b571ef3a82b585fc921f4.zip
Merged branches.
Diffstat (limited to 'day2/tda.tex')
-rw-r--r--day2/tda.tex13
1 files changed, 7 insertions, 6 deletions
diff --git a/day2/tda.tex b/day2/tda.tex
index ae39f4a..664eed3 100644
--- a/day2/tda.tex
+++ b/day2/tda.tex
@@ -261,7 +261,7 @@ def test_function_ignore_cases_words():
\begin{frame}[fragile]
\frametitle{Exercise}
- Based on Euclid's theorem:
+ Based on Euclid's algorithm:
$gcd(a,b)=gcd(b,b\%a)$\\
gcd function can be written as:
\begin{lstlisting}
@@ -269,14 +269,15 @@ def test_function_ignore_cases_words():
if a%b == 0: return b
return gcd(b, a%b)
\end{lstlisting}
+ \vspace*{-0.15in}
\begin{block}{Task}
- For given gcd implementation write
- at least two tests.
- \end{block}
- \begin{block}{Task}
- Write a non recursive implementation
+ \begin{itemize}
+ \item Write at least
+ two tests for above mentioned function.
+ \item Write a non recursive implementation
of gcd(), and test it using already
written tests.
+ \end{itemize}
\end{block}
\inctime{15}