You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to iti...@googlegroups.com
Harjutus 18 on väljas. Kiiremad võivad homseks proovida teha. Muidu on järgmises tunnis plaan rääkida rekursioonist, peale mida võiks see ülesanne olla jõukohane. Ülesandes peate realiseerima kaks meetodit. Kasutage mõlema funktsiooni puhul rekursiivset lahendust (ilma for ja while tsüklita, funktsioon kutsub ennast välja). Ülesande kirjeldus: https://courses.cs.ttu.ee/pages/ITI0011:harjutus_18
Ago
Tatjana Kruglova
unread,
Apr 29, 2015, 1:49:03 PM4/29/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to iti...@googlegroups.com
Mida peaksid meetodid tagastama kui array on null või index'id ei sobi?
Mina panin sellistel juhtudel tagastama 0, aga testid feilivad?
Mart Jõgi
unread,
Apr 29, 2015, 2:07:48 PM4/29/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to iti...@googlegroups.com
javadoc'is on kirjas, et maxAbsoluteValueInArray * @throws IllegalArgumentException if arr is null or arrLength is negative or zero
ja maxElementInArray * @throws IllegalArgumentException if arr is null Ehk siis peab tegema throw new IllegalArgumentException("Array must not be null");
Indeksi puhul peab vist lihtsalt eeldama, et sisse söödetud indeks on esimesel väljakutsel õige
Tatjana Kruglova
unread,
Apr 29, 2015, 2:20:45 PM4/29/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message