亚麻电面题

Question You’ve got a text file that contains x,y,z-coordinate points for every star in the sky (on the order of 1 billion (this is N)). I want to know the 100 (or K) closest stars to earth, how would you compute that? earth = 0, 0, 0 Solution (1) Split the file by N= 10000 lines, and calculate the distance, define a class Star with

EPAM-Scala-Interview-Questions

Scala Interview Questions 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1. pattern matching and functional composition https://twitter.github.io/scala_school/pattern-matching-and-functional-composition.html scala compose partial functions scala> val fComposeG = f _ compose g _ fComposeG: (String) => java.lang.String = <function> scala> fComposeG("yay") res0: java.lang.String = f(g(yay)) andThen andThen is like compose, but calls the first

Scala resource list

Scala resource list Scala School Lessons in the Fundamentals of Scala Effective Scala Twitter’s “best practices” for Scala. Useful for understanding idioms in Twitter’s code. scala-lang.org Documentation Links to tutorials, manuals, API reference, books, … Scala API Documentation Scala Syntax FAQ pattern matching and functional composition andThen Map immutable

关于职业发展的思考

最近技术面试迭遭打击,好几次挂在电话面试上,还有两次是挂在onsite面上。我开始对自己的技术储备产生了怀疑。现在觉得我懂的技术很宽泛,多浮

Zabbix Installation and Configurations

Note Zabbix is LAMP based monitoring tool, which include sever, client, proxy (for different IDC without public IP). We only use server/client. #Installation zabbix official has its own repository, load the zabbix repo for centos6 first. # rpm -ivh http://repo.zabbix.com/zabbix/2

本周读书

本周读了几本书 Head first Java - 读了第一章至第四章,复习了java的基础知识和面向对象的概念。 Elements of Programming Interviews - 读了第一章至第四章, 第四章剩下几页没读完。 少有

当间谍和卧底的命运是怎样的

上月重读《鹿鼎记》,除开韦小宝在清廷和天地会左右逢源以外,还特别注意到康熙安插在天地会的卧底-风际中。此人武功高强,胆大心细,在康熙准备炮轰