- 博客(3)
- 收藏
- 关注
原创 华为机试z
HJ37 统计每个月兔子的总数 import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc =new Scanner(System.in); while(sc.hasNextInt()){ int n = sc.nextInt(); if(n==1||n==2)System.out.println(1);
2021-11-15 01:37:19
398
原创 牛客题霸-名企高频面试题
NC41 最长无重复子数组 滑动窗口+哈希表 import java.util.*; public class Solution { /** * * @param arr int整型一维数组 the array * @return int整型 */ public int maxLength (int[] arr) { // write code here int l =0, r; int m
2021-11-13 00:28:47
533
原创 leetcode专项突击版
剑指 Offer II 001. 整数除法 class Solution { public int divide(int a, int b) { long x = a; long y = b; x = x>0?x:-x; y = y>0?y:-y; int flag = (a>0)^(b>0)?-1:1; long result = 0; long res;
2021-11-11 19:45:23
3529
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人