原创 Excel Sheet Column Title

Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 1 -> A

原创 Triangle

Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row

原创 Single Number II

Given an array of integers, every element appears three times except for one. Find that single one. Note: Your algor

原创 Best Time to Buy and Sell Stock II

Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find

原创 Reverse Words in a String

Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sk

原创 apt-get Unable to fetch some archives的解決方法

報錯: E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-dev_2.19-10ubuntu2.2_amd64.deb  Could n

原创 Best Time to Buy and Sell Stock III

Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find

原创 常用的shell命令(陸續更新)

只是我個人經常用到的,不是很全 1、獲取管道前面的返回值  echo ${PIPESTATUS[0]} e.g. <span style="font-family:Courier New;">root@node2:~# date1 |

原创 Sort List

Sort a linked list in O(n log n) time using constant space complexity. #include<stdio.h> #include<stdlib.h> typedef s

原创 Maximum Product Subarray

Find the contiguous subarray within an array (containing at least one number) which has the largest product. For exampl

原创 Single Number

Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm s

原创 堆排序

#include<stdio.h> void AdjustHeap(int A[], int i, int n) { int j, tmp, tmpid; for( ; i * 2 + 1 < n; i++) {

原创 Majority Element

Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/

原创 CephFS環境搭建(二)

前言 《CephFS環境搭建(一)》介紹瞭如何簡單搭建一個單Mon,MDS的Cephfs並導出使用,這裏深入一步建立三個池,SSD和SATA分開存放在不同的池,建立多Mon,多MDS,結合糾刪碼,cache分層,建立一個比較健全的ceph

原创 Excel Sheet Column Number

Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its correspond