-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathquestionBank.json
More file actions
5082 lines (5082 loc) · 97.5 KB
/
questionBank.json
File metadata and controls
5082 lines (5082 loc) · 97.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[
{
"type": "Coding",
"title": "接雨水",
"category": [
"LeetCode",
"Array",
"Dynamic Programming",
"Stack",
"Two Pointers"
],
"difficulty": "Hard"
},
{
"type": "Question",
"category": [
"Database",
"数据库",
"Data Structures",
"数据结构",
"Redis"
],
"difficulty": "Medium",
"title": "ZSET表的原理,怎么实现的用户登录限流,表占用过大时是手动还是自动删除数据,占用上限是如何设置的"
},
{
"type": "Question",
"category": [
"Operating System",
"操作系统",
"Networking",
"网络"
],
"difficulty": "Hard",
"title": "Epoll的原理"
},
{
"type": "Question",
"category": [
"Data Structures",
"数据结构",
"Tree",
"树"
],
"difficulty": "Hard",
"title": "红黑树的原理,在Epoll中红黑树的键值分别是什么"
},
{
"type": "Question",
"category": [
"Operating System",
"操作系统",
"Networking",
"网络"
],
"difficulty": "Hard",
"title": "epoll_wait返回的队列是由谁将事件加入队列的"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发",
"线程池"
],
"difficulty": "Medium",
"title": "线程池有几个分别是什么作用"
},
{
"type": "Question",
"category": [
"Operating System",
"操作系统"
],
"difficulty": "Medium",
"title": "Linux中的硬连接和软连接,硬连接软连接可以比作哪些智能指针"
},
{
"type": "Question",
"category": [
"Operating System",
"操作系统"
],
"difficulty": "Medium",
"title": "虚拟内存,不同操作系统下页表是几级"
},
{
"type": "Question",
"category": [
"Operating System",
"操作系统"
],
"difficulty": "Medium",
"title": "中断机制是怎么处理的"
},
{
"type": "Coding",
"category": [
"Algorithms",
"算法",
"Dynamic Programming",
"动态规划",
"LeetCode"
],
"difficulty": "Medium",
"title": "最长公共子序列"
},
{
"type": "Coding",
"category": [
"Algorithms",
"算法",
"String",
"字符串",
"LeetCode"
],
"difficulty": "Medium",
"title": "无重复最长子串"
},
{
"type": "Question",
"category": [
"Networking",
"网络",
"TCP",
"UDP"
],
"difficulty": "Medium",
"title": "TCP和UDP的区别"
},
{
"type": "Coding",
"category": [
"Algorithms",
"算法",
"Array",
"数组",
"LeetCode"
],
"difficulty": "Medium",
"title": "区间合并"
},
{
"type": "Question",
"category": [
"Operating System",
"操作系统",
"Golang",
"Go"
],
"difficulty": "Medium",
"title": "进程线程协程,gmp调度?"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发",
"Java",
"MySQL"
],
"difficulty": "Medium",
"title": "乐观锁和悲观锁?讲讲怎么实现?"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发"
],
"difficulty": "Medium",
"title": "死锁的条件?解决办法?"
},
{
"type": "Question",
"category": [
"Database",
"数据库",
"MySQL"
],
"difficulty": "Medium",
"title": "MySQL事务特性以及实现"
},
{
"type": "Question",
"category": [
"System Design",
"系统设计"
],
"difficulty": "Hard",
"title": "如果你的项目有千万级的用户量,你怎么优化"
},
{
"type": "Question",
"category": [
"Design Patterns",
"设计模式"
],
"difficulty": "Easy",
"title": "设计模式了解过哪些"
},
{
"type": "Coding",
"category": [
"Algorithms",
"算法",
"Graph",
"图",
"LeetCode"
],
"difficulty": "Medium",
"title": "岛屿数量"
},
{
"type": "Question",
"category": [
"Networking",
"网络",
"TCP",
"UDP",
"HTTP"
],
"difficulty": "Medium",
"title": "TCP和UDP区别,HTTP用的谁,为什么?"
},
{
"type": "Question",
"category": [
"Networking",
"网络",
"HTTP"
],
"difficulty": "Easy",
"title": "HTTP状态码"
},
{
"type": "Question",
"category": [
"Networking",
"网络",
"HTTP",
"TCP",
"UDP"
],
"difficulty": "Medium",
"title": "HTTP是长连接还是短连接,如何用UDP实现"
},
{
"type": "Question",
"category": [
"Database",
"数据库",
"MySQL"
],
"difficulty": "Medium",
"title": "MySQL索引如何实现的。"
},
{
"type": "Question",
"category": [
"Database",
"数据库",
"MySQL"
],
"difficulty": "Medium",
"title": "MySQL索引为什么用B+不用B树?如果把内容存在内存上,用B树会不会快一点。"
},
{
"type": "Question",
"category": [
"Database",
"数据库",
"System Design",
"系统设计",
"分库分表",
"MySQL"
],
"difficulty": "Medium",
"title": "分库分表的常用中间件有哪些?"
},
{
"type": "Question",
"category": [
"Database",
"数据库",
"System Design",
"系统设计"
],
"difficulty": "Hard",
"title": "有哪些问题中间件无法提供帮助、只能改写业务代码的场景?"
},
{
"type": "Question",
"category": [
"Database",
"数据库",
"System Design",
"系统设计",
"MySQL",
"分库分表"
],
"difficulty": "Easy",
"title": "分库分表使用了什么中间件?"
},
{
"type": "Question",
"category": [
"Database",
"数据库",
"System Design",
"系统设计",
"分库分表"
],
"difficulty": "Medium",
"title": "分库分表的实现场景和方式有哪些?"
},
{
"type": "Question",
"category": [
"Database",
"数据库",
"System Design",
"系统设计",
"分库分表"
],
"difficulty": "Medium",
"title": "分表之后,要查询两个表的数据要怎么查?"
},
{
"type": "Question",
"category": [
"Database",
"数据库",
"System Design",
"系统设计",
"分库分表"
],
"difficulty": "Medium",
"title": "分库分表的优缺点是什么?"
},
{
"type": "Question",
"category": [
"Database",
"数据库",
"System Design",
"系统设计",
"分库分表"
],
"difficulty": "Hard",
"title": "分库分表业界有哪些替代方案?(提示:分布式文件系统,因为分库分表会出现降低QPS,比如range查询失效)"
},
{
"type": "Question",
"category": [
"Database",
"数据库",
"System Design",
"系统设计",
"分库分表"
],
"difficulty": "Hard",
"title": "为什么做了分库分表后分页比较困难了?"
},
{
"type": "Question",
"category": [
"Database",
"数据库",
"System Design",
"系统设计",
"分库分表"
],
"difficulty": "Hard",
"title": "如果10亿数据要分表,要怎么分?业务怎么切?"
},
{
"type": "Question",
"category": [
"Database",
"数据库",
"Concurrency",
"并发",
"分库分表"
],
"difficulty": "Hard",
"title": "分库分表怎么保证数据一致性?"
},
{
"type": "Question",
"category": [
"Database",
"数据库",
"System Design",
"系统设计",
"分库分表"
],
"difficulty": "Medium",
"title": "分库分表选的什么分片键?什么分片算法?"
},
{
"type": "Question",
"category": [
"Database",
"数据库",
"System Design",
"系统设计",
"分库分表"
],
"difficulty": "Medium",
"title": "分库分表后的分布式ID怎么做?"
},
{
"type": "Question",
"category": [
"Java",
"Concurrency",
"并发",
"动态代理"
],
"difficulty": "Medium",
"title": "JDK和Cglib动态代理有什么区别?"
},
{
"type": "Question",
"category": [
"Data Structures",
"数据结构",
"Array",
"数组",
"Linked List",
"链表",
"Java"
],
"difficulty": "Easy",
"title": "ArrayList和LinkedList的区别?"
},
{
"type": "Question",
"category": [
"Data Structures",
"数据结构",
"Hash Table",
"哈希表",
"Java"
],
"difficulty": "Medium",
"title": "HashMap原理?"
},
{
"type": "Question",
"category": [
"Data Structures",
"数据结构",
"Tree",
"树",
"Binary Search Tree",
"二叉搜索树",
"Java"
],
"difficulty": "Medium",
"title": "红黑树红和黑代表什么?"
},
{
"type": "Coding",
"category": [
"Data Structures",
"数据结构",
"Hash Table",
"哈希表",
"Array",
"数组",
"Java"
],
"difficulty": "Medium",
"title": "HashMap数组索引怎么确认?"
},
{
"type": "Question",
"category": [
"Algorithms",
"算法",
"Hash Table",
"哈希表",
"Java"
],
"difficulty": "Medium",
"title": "常见的哈希算法了解哪些?解决哈希冲突的方法?"
},
{
"type": "Question",
"category": [
"Data Structures",
"数据结构",
"Java"
],
"difficulty": "Easy",
"title": "Java有什么集合容器?"
},
{
"type": "Question",
"category": [
"Data Structures",
"数据结构",
"Tree",
"树",
"Sorting",
"排序",
"Java"
],
"difficulty": "Medium",
"title": "Treemap怎么排序,有什么注意事项,可不可以自定义排序,排序的数据结构是什么"
},
{
"type": "Question",
"category": [
"Data Structures",
"数据结构",
"Concurrency",
"并发",
"Array",
"数组",
"Java"
],
"difficulty": "Medium",
"title": "CopyOnWriteArrayList怎么保证线程安全,优点是这个,那缺点呢?"
},
{
"type": "Question",
"category": [
"Data Structures",
"数据结构",
"Concurrency",
"并发",
"Array",
"数组",
"Java"
],
"difficulty": "Medium",
"title": "ArrayList线程安全吗,想要使用线程安全的ArrayList怎么办?"
},
{
"type": "Question",
"category": [
"Data Structures",
"数据结构",
"Hash Table",
"哈希表",
"Java"
],
"difficulty": "Medium",
"title": "假设你要遍历一个 HashMap,同时删除一些 key,应该怎么编写代码?"
},
{
"type": "Question",
"category": [
"Data Structures",
"数据结构",
"Concurrency",
"并发",
"Hash Table",
"哈希表",
"Java"
],
"difficulty": "Medium",
"title": "HashTable怎么保证线程安全的,ConcurrentHashMap呢,怎么去选择呢"
},
{
"type": "Question",
"category": [
"Data Structures",
"数据结构",
"Hash Table",
"哈希表",
"Tree",
"树",
"Binary Search Tree",
"二叉搜索树",
"Java"
],
"difficulty": "Hard",
"title": "Hashmap 为什么选择红黑树而不是AVL"
},
{
"type": "Question",
"category": [
"Java",
"Reflection",
"反射"
],
"difficulty": "Medium",
"title": "你对Java的反射如何理解的,原理是什么?"
},
{
"type": "Question",
"category": [
"Java",
"Reflection",
"反射"
],
"difficulty": "Medium",
"title": "反射机制对于其他没有反射的语言有什么好处?"
},
{
"type": "Question",
"category": [
"Java",
"Java",
"Reflection",
"反射"
],
"difficulty": "Medium",
"title": "Java中哪些效率高的功能是基于反射做的呢?"
},
{
"type": "Question",
"category": [
"String",
"字符串",
"Java",
"Java"
],
"difficulty": "Easy",
"title": "byte怎么转字符串?"
},
{
"type": "Question",
"category": [
"Java",
"Java",
"Reflection",
"反射"
],
"difficulty": "Medium",
"title": "反射的应用场景"
},
{
"type": "Question",
"category": [
"Java",
"Java",
"Reflection",
"反射"
],
"difficulty": "Medium",
"title": "反射为什么性能开销高"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发",
"Java",
"Java"
],
"difficulty": "Medium",
"title": "volatile 关键字的作用是什么?不加这个关键字对变量修改就不会加到主存吗?加了这个关键字还需要加锁吗?这个关键字的一些应用场景都有哪些呢?"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发",
"Thread Pool",
"线程池",
"Java"
],
"difficulty": "Hard",
"title": "假设让你写一个线程池工具,你觉得应该怎么去设计呢?应该有什么变量?有什么接口?"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发",
"Thread Pool",
"线程池",
"Java"
],
"difficulty": "Medium",
"title": "比如核心线程数量是5,最大线程是10,现在来了11个任务,怎么调度?"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发",
"Thread Pool",
"线程池",
"Java"
],
"difficulty": "Medium",
"title": "线程池的执行流程?"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发",
"Thread Pool",
"线程池",
"Java"
],
"difficulty": "Medium",
"title": "线程池是否会出现并发安全问题?"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发",
"Thread Pool",
"线程池"
],
"difficulty": "Hard",
"title": "动态线程池是怎么实现的?动态调整机制是什么?我们应该设置多少核心线程数和最大线程数,以及通过哪里去设置?"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发",
"Thread Pool",
"线程池"
],
"difficulty": "Medium",
"title": "动态线程池的“动态”体现在什么地方?"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发",
"Thread Pool",
"线程池"
],
"difficulty": "Medium",
"title": "线程池过程和原理"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发",
"Thread Pool",
"线程池"
],
"difficulty": "Hard",
"title": "你怎么实际计算需要的核心线程数目和阻塞队列大小?你怎么设定拒绝策略?高请求下有的用户的请求被拒绝了,你会怎么处理反映给用户?"
},
{
"type": "Question",
"category": [
"String",
"字符串",
"Java",
"Java"
],
"difficulty": "Easy",
"title": "String,StringBuilder,StringBuffer的区别?"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发",
"Java",
"Java"
],
"difficulty": "Medium",
"title": "synchronized和reentrantlock的区别?"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发",
"Java",
"Java"
],
"difficulty": "Medium",
"title": "java乐观锁和悲观锁?"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发",
"Java",
"Java"
],
"difficulty": "Medium",
"title": "Java 有哪些重要的锁?"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发",
"Java",
"Java"
],
"difficulty": "Hard",
"title": "AQS实现"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发",
"Java",
"Java"
],
"difficulty": "Medium",
"title": "有了synchornized为什么还会出现lock"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发",
"Operating System",
"操作系统",
"多线程",
"Multi Threading"
],
"difficulty": "Medium",
"title": "多进程、多线程、多协程各自的优势和劣势?"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发",
"Java",
"多线程",
"Multi Threading"
],
"difficulty": "Easy",
"title": "Java有哪些线程状态?"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发",
"Operating System",
"操作系统",
"Java",
"Multi Threading"
],
"difficulty": "Medium",
"title": "如果一个进程创建了几万个线程会出现什么问题?"
},
{
"type": "Coding",
"category": [
"Concurrency",
"并发",
"Java",
"Multi Threading",
"多线程"
],
"difficulty": "Medium",
"title": "怎么让两个线程有序执行?"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发"
],
"difficulty": "Medium",
"title": "多线程如何做同步"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发",
"Operating System",
"操作系统"
],
"difficulty": "Medium",
"title": "线程的上下文切换需要切换什么东西"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发",
"Java"
],
"difficulty": "Medium",
"title": "completablefuture 和 futuretask"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发",
"Java"
],
"difficulty": "Easy",
"title": "Java线程怎么进入阻塞状态"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发",
"Java"
],
"difficulty": "Easy",
"title": "Java线程怎么进入Runnable状态"
},
{
"type": "Question",
"category": [
"Concurrency",
"并发",
"Operating System",
"操作系统",
"Java"
],
"difficulty": "Hard",
"title": "Java线程上下文切换具体过程"
},
{
"type": "Question",
"category": [
"Java",
"Java",
"System Design",
"系统设计"
],
"difficulty": "Medium",
"title": "如果让你调研是否要从Java 8升级到更新的版本(如11或17),你会如何评估其必要性?"
},
{
"type": "Question",
"category": [
"Java",
"Java",
"Data Structures",
"数据结构"
],
"difficulty": "Medium",
"title": "BigDecimal怎么存储,怎么计算,有什么注意事项,为什么他能保证不丢失"
},
{
"type": "Question",
"category": [
"Java",
"Java",
"Design Patterns",
"设计模式"
],
"difficulty": "Medium",
"title": "JDK Proxy 和 CGLib Proxy 的区别"
},
{
"type": "Question",
"category": [
"Java",
"Java",
"Exception Handling",
"异常处理"
],
"difficulty": "Easy",
"title": "Java中你遇到过哪些异常?你分别怎么处理?"
},
{
"type": "Question",
"category": [
"Java",
"Java",
"System Design",
"系统设计"
],
"difficulty": "Medium",
"title": "团队升级JDK版本的话你怎么调研?"
},
{
"type": "Question",
"category": [
"Java",
"Java",
"Performance Optimization",
"性能优化"
],
"difficulty": "Hard",
"title": "Java分配大对象怎么进行性能优化"
},
{
"type": "Question",
"category": [
"Java",
"Java",
"Generics",