摘要:
class Solution { public: / @param n: the nth @return: the nth sequence / string countAndSay(int n) { // write your code here string s = "1"; if (n==1) 阅读全文
摘要:
转自 "[LeetCode] Poor Pigs 可怜的猪" There are 1000 buckets, one and only one of them contains poison, the rest are filled with water. They all look the sam 阅读全文
摘要:
public class Solution { / @param s: the given string @param numRows: the number of rows @return: the string read line by line / public String convert( 阅读全文