面试实战一:2019.10.17

目录

第一题:

第二题:

第三题:

第四题:


2019.10.17参加了一家面试,面试题做的不好,特此记录!

共有四道题目:

第一题:

class Base {
    int i = 99;

    public Base cloneX(int s) {
        Super a = new Base(); //1
        System.out.println("Base, clone " + s);
        return a;
    }

    Base() {
        System.out.println("Create Base with" + i);
    }
}

class Super implements Base {//2
    i=1000;//3

    public static void main() {//4
        Super super = this.cloneX(new int(5)); //5
        System.out.println("i is" + super.i); //6
    }
}

找出以上代码是一段错误代码,请找出问题并改正!

改正后代码如下:

class Base {
    int i = 99;

    public static Base cloneX(int s) {
        Super a = new Super();
        System.out.println("Base, clone " + s);
        return a;
    }

    Base() {
        System.out.println("Create Base with " + i);
    }
}

class Super extends Base {
    int i = 1000;

    public static void main(String[] args) {
        Super super1 = (Super) cloneX(5);
        System.out.println("i is " + super1.i);
    }

}

第二题:

SQL语句查询相关

第三题:

张三和李四相约迷宫寻宝,他们约定2人同时进去,但两人经过的路线不能重复。请用
Java或C++程序设计一套算法模拟二人行程可以把迷宫走完。

【Android】基于A星寻路算法的简单迷宫应用

安卓迷宫自动寻路

刘波波老师的   深度实战玩转算法(7个应用) 课程。

第四题:

试举出5种设计模式并阐述之?并用UML图画出装饰模式或适配器模式。

 

 

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
[{'year': [{'2019': -65419.62, '2018': 30498.15, '2022': 13876.93, 'index': '经营活动产生的现金流量净额', '2021': 42973.8, '2020': 39619.51}, {'2019': 107400.65, '2018': 116614.64, '2022': -1181.36, 'index': '投资活动产生的现金流量净额', '2021': 47348.05, '2020': 20575.82}, {'2019': 12626.08, '2018': -189296.55, '2022': -19400.66, 'index': '筹资活动产生的现金流量净额', '2021': -93035.11, '2020': -123532.65}], 'middle': [{'2019': -54828.01, '2018': -497.32, '2022': 10639.37, 'index': '经营活动产生的现金流量净额', '2021': 23457.13, '2020': 14095.79}, {'2019': 70222.58, '2018': 9137.32, '2022': -822.17, 'index': '投资活动产生的现金流量净额', '2021': 49199.63, '2020': 14493.25}, {'2019': -10674.67, '2018': -27426.89, '2022': -11163.9, 'index': '筹资活动产生的现金流量净额', '2021': -64884.77, '2020': -84514.8}], 'one': [{'2019': -2054.79, '2023': -978.88, '2022': 6060.59, 'index': '经营活动产生的现金流量净额', '2021': 17091.63, '2020': -13929.39}, {'2019': -46.08, '2023': -622.78, '2022': -387.47, 'index': '投资活动产生的现金流量净额', '2021': 37272.44, '2020': -2023.12}, {'2019': 14477.87, '2023': 2171.58, '2022': -3195.9, 'index': '筹资活动产生的现金流量净额', '2021': -11139.03, '2020': -34388.22}], 'three': [{'2019': -59111.13, '2018': 15934.74, '2022': 13696.67, 'index': '经营活动产生的现金流量净额', '2021': 36815.74, '2020': 21584.93}, {'2019': 61471.57, '2018': 14192.29, '2022': -696.12, 'index': '投资活动产生的现金流量净额', '2021': 45656.4, '2020': 26267.88}, {'2019': 55374.45, '2018': -58583.67, '2022': -15444.32, 'index': '筹资活动产生的现金流量净额', '2021': -85809.77, '2020': -103091.12}]}]用pandas写到一个excel
最新发布
06-19

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值