蓝岭科技笔试面
长沙蓝岭科技笔试面:
1.手撕斐波那契数列
package com.leetecode.top100.other; //斐波那契数列(递归求解) //特征:该数=它的前两个数之和 public class Fob { public static void main(String[] args) { System.out.println(fob(0)); } public static int fob(int n){ if(n==0) return 0; if(n==1) return 1; return fob(n-1)+fob(n-2); } }
2.将字符串zhang san shi ni 变成 ni shi zhang san
3.数据库有用户表,日期表,金额表。(1)求在2021-2到2021-3之间消费大于1000的用户 (2)求在2021-2到2021-3之间消费最多的用户
4.剩下两道js的题目
5.值传递和引用传递