贝壳笔试测试开发岗

请问一下大家测试开发的编程题目做出来了吗?可以分享一下JAVA代码参考吗?不胜感激😊😊😊,祝大家笔试都过,都能面试!!!相信我相信我相信我,我说话可准了可准了可准了!!!#贝壳找房#
全部评论
//第一题 public static void main(String[] args) {         Scanner sc = new Scanner(System.in);         int len = sc.nextInt();         String str = sc.next();         sc.close();         if (len < 2){             System.out.println(0);         }         int left = 0;         int right = len - 1;         int res = 0;         while (left < right){             if (str.charAt(left) != str.charAt(right)){                 res++;             }             left++;             right--;         }         System.out.println(res);     }
1
送花
回复 分享
发布于 2020-08-13 10:56
//方块染色 public static void main(String[] args) {         Scanner sc = new Scanner(System.in);         while (sc.hasNext()) {             int T = sc.nextInt();             for (int i = 0; i < T; i++) {                 long N = sc.nextInt();                 long M = sc.nextInt();                 long multi = M * N;                 long ans = multi;                 for (long j = 2; j < multi;j++){                     if (multi % j == 0){                         ans = j;                         break;                     }                 }                 System.out.println(ans);             }         }     }
1
送花
回复 分享
发布于 2020-08-13 10:58
现代汽车中国前瞻数字研发中心
校招火热招聘中
官网直投
//数字拆分 public static void main(String[] args) {         Scanner sc = new Scanner(System.in);         int t = sc.nextInt();         long[] res = new long[t];         for (int i = 0; i < t; i++) {             long n = sc.nextInt();             res[i] = method(n);         }         sc.close();         for (int i = 0; i < t; i++) {             System.out.println(res[i]);         }     }     public static long method(long n) {         int res = 1;         if (n == 1) {             return 1;         }         while (n >= Math.pow(2, res)) {             res++;         }         return res;     }
1
送花
回复 分享
发布于 2020-08-13 10:59
四道编程 做了两题  是用C++写的
点赞
送花
回复 分享
发布于 2020-08-12 15:25
还记得题吗 ,我有想复盘一下
点赞
送花
回复 分享
发布于 2020-08-12 23:58
需要第几题呢?
点赞
送花
回复 分享
发布于 2020-08-13 00:52
23号面试
点赞
送花
回复 分享
发布于 2020-08-13 20:08
测开岗是有四道编程吗?
点赞
送花
回复 分享
发布于 2020-09-07 11:06
题解题解!:https://blog.csdn.net/qq_38649940/article/details/108450650
点赞
送花
回复 分享
发布于 2020-09-07 17:02

相关推荐

点赞 9 评论
分享
牛客网
牛客企业服务