摘要:
题1:斐波那契数列 题目描述: 大家都知道斐波那契数列,现在要求输入一个整数n,请你输出斐波那契数列的第n项。 n<=39 思路:这类题一般都是递归,带备忘的递归,动态规划这几种做法 1 public class Solution { 2 public int Fibonacci(int n) { 阅读全文
摘要:
题目:ZigZag Conversion The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pat 阅读全文