Skip to content

Commit

Permalink
Kommentert for aa kompilere
Browse files Browse the repository at this point in the history
  • Loading branch information
javaguruen committed Jun 19, 2013
1 parent 893c43e commit 1a97020
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/euler/Euler24.scala
Expand Up @@ -6,7 +6,7 @@ class Euler24 {
def run(): Long = {
//permute( List(0, 1, 3 ,4 ,5, 6, 7, 8, 9) )
var list: scala.List[_root_.scala.Predef.String] = permute(List(0, 1, 3, 4, 5, 6, 7,8,9), "")
list = list.sort( (s,t)=> s < t )
//sort ikke støttet lengre? list = list.sort( (s,t)=> s < t )
println ("antall: " + list.size )
list = list.drop( 274239 )
println ( list.head )
Expand Down
3 changes: 2 additions & 1 deletion src/main/scala/euler/Euler39.scala
Expand Up @@ -24,7 +24,7 @@ class Euler39 {
def findNumberSolutions(p : Int) : Int = {
val max = (p / 2).toInt
var numberOfSolutions = 0

/*
for (val a:Int <- 1 to max ) {
for (val b:Int <- a to max) {
val leftside = a*a +b*b
Expand All @@ -34,6 +34,7 @@ class Euler39 {
}
}
}
*/
numberOfSolutions
}
}

0 comments on commit 1a97020

Please sign in to comment.