摘要:
剑指offer10-1 10-2 1.斐波那契数列 方法1: 1 class Solution { 2 3 public int fib(int n){ 4 return fibGetN(n)%(1000000007); 5 } 6 7 public static int fibGetN(int n 阅读全文
摘要:
剑指offer 03.04 1.面试题03.数组中重复的数值 方法1.直接使用暴力查找的方法, public static int findRepeatNumber(int[] nums){ int[] arrs = new int[nums.length]; for (int i = 0; i < 阅读全文