99-Problems-in-Scala
hylexus
立志精通五门编程语言
最终忘记人类语言
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
scala-Problem01-05
scala list recursive foldLeft原创 2016-09-12 22:51:57 · 501 阅读 · 0 评论 -
scala-problem41-50
P46 Truth tables for logical expressions P47 Truth tables for logical expressions 2 P49 Gray code P50 Huffman code 该系列文章来自:http://aperiodic.net/phil/scala/s-99/原创 2016-09-18 23:45:51 · 442 阅读 · 0 评论 -
scala-problem36-40
P36 Determine the prime factors of a given positive integer 2 P37 Calculate Eulers totient function phim improved P39 A list of prime numbers P40 Goldbachs conjecture原创 2016-09-16 20:55:57 · 441 阅读 · 0 评论 -
scala-problem31-35
P31 Determine whether a given integer number is prime P32 Determine the greatest common divisor of two positive integer numbers P33 Determine whether two positive integer numbers are cop原创 2016-09-16 20:01:31 · 348 阅读 · 0 评论 -
scala-problem26-30
P26 Generate the combinations of K distinct objects chosen from the N elements of a list P27 Group the elements of a set into disjoint subsets P28 Sorting a list of lists according to le原创 2016-09-15 18:34:33 · 421 阅读 · 0 评论 -
scala-problem21-25
P21 Insert an element at a given position into a list P22 Create a list containing all integers within a given range P23 Extract a given number of randomly selected elements from a list原创 2016-09-15 01:07:47 · 624 阅读 · 0 评论 -
scala-problem16-20
P16 Drop every Nth element from a list P17 Split a list into two parts P18 Extract a slice from a list P19 Rotate a list N places to the left P20 Remove the Kth element fro原创 2016-09-14 18:19:34 · 579 阅读 · 0 评论 -
scala-problem11-15
P11 Modified run-length encoding P12 Decode a run-length encoded list P13 Run-length encoding of a list direct solution P14 Duplicate the elements of a list P15 Duplicate t原创 2016-09-14 16:24:27 · 544 阅读 · 0 评论 -
scala-Problem06-10
P06 Find out whether a list is a palindrome P07 Flatten a nested list structure P08 Eliminate consecutive duplicates of list elements P09 (**) Pack consecutive duplicates of list elements into sublists.原创 2016-09-13 14:55:10 · 816 阅读 · 0 评论 -
99 Problems in Scala
原文链接:http://aperiodic.net/phil/scala/s-99/P01 Find the last element of a list P02 Find the last but one element of a list P03 Find the Kth element of a list P04 Find the number of elements of a list P原创 2016-09-12 22:41:47 · 1080 阅读 · 0 评论
分享