This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def countSum(numbers: List[Int], expectedResult: Int): Int = { | |
countSumRecursively(numbers, 0, expectedResult); | |
} | |
def countSumRecursively(numbers: List[Int], currentResult: Int, expectedResult: Int): Int = { | |
if (currentResult == expectedResult) | |
1 | |
else if ((currentResult > expectedResult) || (numbers.isEmpty)) | |
0 | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Data.SqlServerCe; | |
using System.IO; | |
using System.Reflection; | |
using Moq; | |
using NHibernate; | |
using NHibernate.ByteCode.Castle; | |
using NHibernate.Cfg; | |
using NHibernate.Tool.hbm2ddl; |