Skip to content

Commit

Permalink
Merge pull request #17 from andreas-roehler/master
Browse files Browse the repository at this point in the history
solution2.1.7.5.scala add Exercise text
  • Loading branch information
winitzki authored Nov 27, 2023
2 parents c05d5a8 + 062b25d commit 343e690
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions chapter02/worksheets/solution2.1.7.5.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/** author: Andreas Röhler */

/**
Exercise 2.1.7.5 Given p: Seq[String] and q: Seq[Int] of equal length, compute a Seq[String] that
contains the strings from p ordered according to the corresponding numbers from q. For example, if
p = Seq("a", "b", "c") and q = Seq(10, -1, 5) then the result must be Seq("b", "c", "a").
*/

val p = Seq("a", "b", "c")
val q = Seq(10, -1, 5)

Expand Down

0 comments on commit 343e690

Please sign in to comment.