Skip to content

Instantly share code, notes, and snippets.

View strongme's full-sized avatar
🏠
Working from home

Shiwei Yang strongme

🏠
Working from home
View GitHub Profile
@strongme
strongme / data.json
Created August 30, 2012 02:59
JSON Test
[
{"name":"Jack","age":23},
{"name":"Mary","age":33}
]
@strongme
strongme / Test.java
Created September 15, 2012 07:41
For Gist Test
public class Test {
public Test() {
System.out.println("Hello World");
}
}
@strongme
strongme / Solution.java
Created September 17, 2012 04:42
Explanation: For the sample test case, we have 2 strings "aab" and "aac". S1 = {"a", "aa", "aab", "ab", "b"} . These are the 5 unique substrings of "aab". S2 = {"a", "aa", "aac", "ac", "c" } . These are the 5 unique substrings of "aac". Now, S = {S1 U S
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
public class Solution {
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns:v="urn:schemas-microsoft-com:vml">
<STYLE>
v\:* {behavior: url(#default#vml)}
</STYLE>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>New Web Project</title>
</head>
<body>
@strongme
strongme / name.txt
Created June 6, 2013 05:53
Creted via API
Hello Github
@strongme
strongme / insertionSort.js
Created January 11, 2014 16:08
Insertion sort
function insertionSort(a) {
for(var i=1;i<a.length;i+=1) {
if(a[i]<a[i-1]) {
var tmp = a[i];
for(var j=i-1;i>=0&&a[j]>tmp;j-=1) {
a[j+1] = a[j];
}
a[j+1] = tmp;
console.log(a);
}
@strongme
strongme / insertionSort.js
Created January 11, 2014 16:15
Insertion sort - swap
function insertionSort(data) {
for(var i=1;i<data.length;i+=1) {
for(var j=i-1;j>=0&&data[j+1]<data[j];j-=1) {
swap(data,j,j+1);
}
}
return data;
}
function swap(data,a,b) {
《青春》
青春不是年华,而是心境;青春不是桃面、丹唇、柔膝,而是深沉的意志,恢宏的想象,炙热的恋情;青春是生命的深泉在涌流。
青春气贯长虹,勇锐盖过怯弱,进取压倒苟安。如此锐气,二十后生而有之,六旬男子则更多见。年岁有加,并非垂老,理想丢弃,方堕暮年。
岁月悠悠,衰微只及肌肤;热忱抛却,颓废必致灵魂。忧烦,惶恐,丧失自信,定使心灵扭曲,意气如灰。
178.168.3.20 0.docs.google.com
178.168.3.20 0.drive.google.com
178.168.3.20 1.docs.google.com
178.168.3.20 1.drive.google.com
178.168.3.20 10.docs.google.com
178.168.3.20 10.drive.google.com
178.168.3.20 11.docs.google.com
178.168.3.20 11.drive.google.com
178.168.3.20 12.docs.google.com
178.168.3.20 12.drive.google.com