The Fake Geek's blog

Sunday, October 18, 2015

Scala note 7: Water pouring problem

›
The problem is described in the following video: It is solved using BFS approach. class Pouring (capacity: Vector[Int]){ // Sta...

Scala note 6: Bloxorz

›
Notes: val, lazy val and def: def expr = { val x = { print("x"); 1} lazy val y = { print("y"); 2} def z = ...
4 comments:
Saturday, October 10, 2015

Scala note 5: Sentence Anagrams

›
Finally I made it work! It takes much longer than I thought and I am too exhausted to explain everything. The original problem set can be fo...
1 comment:
Sunday, October 4, 2015

Scala note 4: Huffman Coding

›
This post is based on Coursera's Scala course homework for week 4 and week 5. The whole problem can be found here . Some notes: Ca...
2 comments:
Saturday, September 19, 2015

Scala note 3: OOP (TweetSet)

›
Week 3 class focuses on classes and objects in Scala. The OOP concepts are similar to that in Java. However, Scala uses traits instead of i...
4 comments:
Thursday, September 10, 2015

B-Tree Java implementation

›
Two days of coding. One afternoon to build a tree, three nights to destroy the tree in different ways, I finally make the code. Sort of......
2 comments:
‹
›
Home
View web version

About Me

Unknown
View my complete profile
Powered by Blogger.