Skip to content

Instantly share code, notes, and snippets.

@TrisDing
TrisDing / data_structures.java
Last active August 29, 2015 14:05
Algorithm and Data Structures
// Linked List
class Node {
Node next = null;
Object data;
Node(Object data) {
this.data = data;
}
}
class LinkedList {
@TrisDing
TrisDing / exercises.go
Last active August 29, 2015 14:05
A tour of Go
// 25. Exercise: Loops and Functions
package main
import (
"fmt"
"math"
)
func Sqrt(x float64) float64 {
z := float64(1)