99-Problems-in-Scala
hylexus
立志精通五门编程语言
最终忘记人类语言
展开
-
scala-Problem01-05
scala list recursive foldLeft原创 2016-09-12 22:51:57 · 452 阅读 · 0 评论 -
scala-problem41-50
P46 Truth tables for logical expressionsP47 Truth tables for logical expressions 2P49 Gray codeP50 Huffman code该系列文章来自:http://aperiodic.net/phil/scala/s-99/原创 2016-09-18 23:45:51 · 397 阅读 · 0 评论 -
scala-problem36-40
P36 Determine the prime factors of a given positive integer 2P37 Calculate Eulers totient function phim improvedP39 A list of prime numbersP40 Goldbachs conjecture原创 2016-09-16 20:55:57 · 386 阅读 · 0 评论 -
scala-problem31-35
P31 Determine whether a given integer number is primeP32 Determine the greatest common divisor of two positive integer numbersP33 Determine whether two positive integer numbers are cop原创 2016-09-16 20:01:31 · 300 阅读 · 0 评论 -
scala-problem26-30
P26 Generate the combinations of K distinct objects chosen from the N elements of a listP27 Group the elements of a set into disjoint subsetsP28 Sorting a list of lists according to le原创 2016-09-15 18:34:33 · 378 阅读 · 0 评论 -
scala-problem21-25
P21 Insert an element at a given position into a listP22 Create a list containing all integers within a given rangeP23 Extract a given number of randomly selected elements from a list原创 2016-09-15 01:07:47 · 588 阅读 · 0 评论 -
scala-problem16-20
P16 Drop every Nth element from a listP17 Split a list into two partsP18 Extract a slice from a listP19 Rotate a list N places to the leftP20 Remove the Kth element fro原创 2016-09-14 18:19:34 · 514 阅读 · 0 评论 -
scala-problem11-15
P11 Modified run-length encodingP12 Decode a run-length encoded listP13 Run-length encoding of a list direct solutionP14 Duplicate the elements of a listP15 Duplicate t原创 2016-09-14 16:24:27 · 498 阅读 · 0 评论 -
scala-Problem06-10
P06 Find out whether a list is a palindromeP07 Flatten a nested list structureP08 Eliminate consecutive duplicates of list elementsP09 (**) Pack consecutive duplicates of list elements into sublists.原创 2016-09-13 14:55:10 · 753 阅读 · 0 评论 -
99 Problems in Scala
原文链接:http://aperiodic.net/phil/scala/s-99/P01 Find the last element of a listP02 Find the last but one element of a listP03 Find the Kth element of a listP04 Find the number of elements of a listP原创 2016-09-12 22:41:47 · 1038 阅读 · 0 评论