百度大數據 依圖

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++;
     }
     
     
     }


}

 

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