Implement the functions in src/main/scala/Main.scala, which are currently left blank as ???
WARNING:Please read the restrictions below carefully.
If you do not follow these, your submission will not be graded.
- DO NOT FIX Data.Scala
- Do not use the keyword
var. Usevalanddefinstead. - Do not use any library functions or data structures like
List,Array,Range(1 to n,1 until n...),fold,map,reduceor etc. - You can only use tuples,
scala.annotation.tailrec, andscala.util.control.TailCalls._,Math._from the library. - If you want to use a data structure, create new one instead of using the library ones.
- Do not use any looping syntax of Scala (
for,while,do-while,yield, ...)
Again, your score will be zero if you do not follow these rules.
Note that these rules will be gradually relaxed through the next assignments.
We do not require tail-recursion explicitly for this assignment.
Timeout: 30 sec.
sbt test # compile and run TestSuite.scalaIf sbt test does not work, then your code is wrong.
Fix your code until it works, or send a question to the TA.
- For all assignments, we will test your code only with the given
Main.scalafiles insrc/main/scaladirectory. All the additional files you've created will be lost!! - We will check git logs of the main branch, and grade the latest commit before the due date.
git add src
git commit -m 'Write some meaningful message'
git push- 2023/10/31 23:59:59 KST
- Branch
erratais protected. If any correction would be appeared on the code, I will updateerratabranch. - If you find any ambiguity from the description, write an issue to the GitHub issue tracker.