百度大数据 依图

1、courrentHashMap 

2、HashMap 数组 链表 红黑树

3、两个字符串是否相等

public static void main(String[] args) {
            Scanner sc =new Scanner(System.in);
            String temp1 = sc.next();
            String temp2 = sc.next();
            char[]a =temp1.toCharArray();
            char[]b =temp2.toCharArray();
            int flag = 0;
            if(a.length==b.length){
                for (int i = 0; i < a.length; i++) {
                    if(a[i]!=b[i]){
                        flag++;
                        break;
                    }
                }
                if(flag==0)
                    System.out.print("0");
                else
                    System.out.print("-1");
            }


        }

4 进程与线程的区别

5 进程的通讯方式 管道 内存 socket

6 线程实现方式 runnable thread

7 stack的pop操作 wait notify

8 数组存储和链表存储

9 二叉树 B+树

10 GC方式 内存区域 FullGC 存储满了以后

11 强引用 软引用 弱引用

12 http1.0 2.0的区别

13 TCP UDP有哪些算法

14 超时重发 流量控制

public class Main{
     public static void main(String[] args){
     Scanner sc = new Scanner(System.in);
     String temp1= sc.next();
     String temp2 = sc.next();
     char[] a = temp1.toCharArray();
     char[] b = temp2.toCharArray();
     int count =0;
     HashMap<Chracter,String> map = new HashMa<Chracter,String>();
     for(int i=0;i<a.length;++i){
         if(!map.containsKey(a[i])){
             map.put(a[i],"");
         }
     }     
     
     for(int i=0;i<b.length;++i){
         if(nao.containsKey(b[i]))
             count++;
     }
     
     
     }


}

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章