public List<Integer> getRow(int rowIndex) {
		ArrayList<Integer> result = new ArrayList<Integer>();
		result.add(1);
		if (rowIndex == 0)
			return result;
		result.add(1);
		if (rowIndex == 1)
			return result;
		int lvl = 2;
		while (lvl <= rowIndex) {
			ArrayList<Integer> resultN = new ArrayList<Integer>();
			resultN.add(1);
			int pre = 0;
			for (int i : result) {
				if (pre == 0)
					pre = i;
				else {
					resultN.add(pre + i);
					pre = i;
				}
			}
			resultN.add(1);
			result = resultN;
			lvl++;
		}
		return result;
	}