Awesome Open Source
Awesome Open Source

20215000leetcode

repo

🏆 ACM


1zoj 3235 Prototype
2zoj 3770 Ranking System
3zoj 2814 Surprising Strings
4poj 2817 WordStack
5poj 3910 GCD Determinant
6poj 2452 Sticks Problem
7poj 3071 Football
8poj 1664
9poj 3752
10poj 4006 Genghis Khan the Conqueror
11poj 1205 Water Treatment Plants
12poj 3388 Japanese Puzzle
13poj 2386 Lake Counting
14zoj 1861 Gas Station Numbers
15zoj 3590 -3+1
16zoj 2837 Left Library Lift
17zoj 1563 Pearls
18poj 1523 SPF
19poj 1308 Is It A Tree?
20poj 2442 Sequence
21poj 2417 Discrete Logging
22poj 3484 Showstopper
23zoj 3109 Decode Message
24poj 3548 Restoring the digits
25zoj 2561 Order-Preserving Codes
26poj 2482 Stars in Your Window
27zoj 1507 Crazy Search
28poj 2447 RSA
29poj 1628 Deduction
30zoj 3019 Puzzle
31poj 1977 Odd Loving Bakers
32poj 1989 The Cow Lineup
33poj 2672 Hotkeys
34zoj 3393 Routing
35zoj 3531 Alice Madness Return
36zoj 1418 Lazy Math Instructor
37poj 2918 Tudoku
38zoj 2990 Decoding
39poj 2323 PERMS
40poj 1313 Booklet Printing
41poj 3216 Repairing Company
42poj 1953 World Cup Noise
43zoj 2247 Magic Trick
44zoj 3502 Contest
45zoj 2011 Secret Code
46zoj 1810 The Gourmet Club
47zoj 1898 Discrete Logging
48zoj 3836 Circulation pipe
49poj 3495 Bitwise XOR of Arithmetic Progression
50poj 3435 Sudoku Checker
51zoj 3114 Double Queue
52poj 2506 Tiling
53zoj 2151 The Highest Profits
54poj 1077 Eight
55poj 1090 Chain
56zoj 3890 Wumpus
57poj 3532 Resistance
58zoj 1344 A Mazing Problem
59zoj 1259 Rails
60poj 3183 Stump Removal
61poj 2893 M N Puzzle
62zoj 1119 SPF
63poj 3635 Full Tank?
64poj 3573 I18n
65zoj 1179 Finding Rectangles
66poj 3449 Geometric Shapes
67poj 2749 Building roads
68zoj 2451 Minimizing maximizer
69poj 3222 Edge Pairing
70poj 1984 Navigation Nightmare
71poj 3860 Fruit Weights
72poj 2664 Prerequisites?
73poj 3376 Finding Palindromes
74zoj 2725 Digital Deletions
75zoj 1797 Least Common Multiple
76poj 3356 AGTC
77zoj 1743 Concert Hall Scheduling
78zoj 1566 Too Lazy To Move
79poj 3802 Cubist Artwork
80zoj 3347 Picture Handling
81zoj 1325 Palindromes
82zoj 3634 Bounty hunter
83zoj 1671 Walking Ant
84zoj 3661 Palindromic Substring
85poj 2362 Square
86zoj 2665 Heapsort
87poj 3883 Penguin Bashing
88poj 3585 Accumulation Degree
89poj 1480 Optimal Programs
90poj 2458 Rigging the Bovine Election
91poj 3191 The Moronic Cowmpouter
92poj 2903 Joy of Mobile Routing
93zoj 3898 Stean
94poj 1972 Dice Stacking
95poj 3363 Annoying painting tool
96zoj 3795 Grouping
97poj 2007 Scrambled Polygon
98zoj 1535 Lucky Ticket
99zoj 1496 Best Fit
100poj 1284 Primitive Roots
101zoj 1966 Etaoin Shrdlu
102poj 1051 P,MTHBGWB
103poj 2201 Cartesian Tree
104poj 3715 Blue and Red
105poj 3361 Gaussian Prime Factors
106poj 3901 The Computer Game
107poj 1127 Jack Straws
108zoj 3798 Abs Problem
109poj 3294 Life Forms
110zoj 2594 Driving Straight
111poj 2206 poj 2206 Magic Multiplying Machine
112poj 3623 Best Cow Line, Gold
113zoj 2316 Matrix Multiplication
114poj 2409 Let it Bead
115zoj 3212 K-Nice
116poj 2668 Defending Castle
117poj 1909 Marbles on a tree
118zoj 1610 Count the Colors
119poj 1611 The Suspects
120poj 3757 Simple Distributed storage system
121zoj 3690 Choosing number
122poj 3196 Babylonian Roulette
123zoj 3134 Travel
124poj 2679 Adventurous Driving
125zoj 2898 Greedy Grave Robber
126poj 3554 Almost the shortest route
127zoj 2361 Areas
128poj 1534 Terrorist Attack
129poj 2622 Convex hull
130poj 3632 Optimal Parking
131poj 4003 Bobs Race
132poj 1619 EKG Sequence
133poj 3914 DuLL
134poj 3987 Computer Virus on Planet Pandora
135zoj 2993 Model Rocket Height
136zoj 3151 Dice Compare
137zoj 1279 Cowculations
138poj 1353 Color Change of Go Game Pieces
139poj 3782 Equal Sum Partitions
140poj 3481 Double Queue
141poj 1153 SAFE
142zoj 2499 The Happy Worm
143poj 3763 Tour in Wonder Land
144zoj 3385 Hanami Party
145zoj 3051 Playing Poker
146zoj 2009 Run Away
147poj 1559 Equation Elation
148poj 3579 Median
149poj 2430 Lazy Cows
150zoj 1255 The Path
151zoj 3595 Two Sequences
152zoj 3016 Cut
153poj 3174 Alignment of the Planets
154zoj 3813 Alternating Sum
155poj 1690 (Your)((Term)((Project)))
156poj 1650 Integer Approximation
157zoj 1472 Overlapping Shapes
158zoj 1812 Stamps
159poj 2403 Hay Points
160zoj 1400 Programmer, Rank Thyself
161poj 2941 Homogeneous Squares
162poj 1149 PIGS
163poj 1240 Pre-Post-erous!
164poj 3349 Snowflake Snow Snowflakes
165poj 1459 Power Network
166poj 2978 Colored stones
167poj 3219 Binomial Coefficients
168zoj 2191 Series Determination
169zoj 2913 Bus Pass
170poj 3260 The Fewest Coins
171poj 3593 Sea Base Exploration
172poj 3131 Cubic Eight-Puzzle
173zoj 2634 Collecting Stones
174poj 1417 True Liars
175poj 1789 Truck History
176zoj 2139 ACM
177poj 3050 Hopscotch
178zoj 3663 Polaris of Pandora
179poj 1780 Code
180poj 3266 Cow School
181poj 2771 Guardian of Decency
182zoj 1501 Knockout Tournament
183poj 2827 Auto-Calculation Machine
184poj 3612 Telephone Wire
185zoj 1237 Fans and Gems
186zoj 2671 Cryptography
187zoj 1433 Treasure Hunters
188poj 2174 Decoding Task
189zoj 3291 Never End
190zoj 3049 Diablo II Items
191zoj 1204 Additive equations
192zoj 2886 Look and Say
193poj 2196 Specialized Four-Digit Numbers
194poj 2900 Griddy Hobby
195poj 1663 Number Steps
196zoj 1497 Ball Toss
197zoj 1404 Oil Pipeline
198zoj 3805 Machine
199zoj 3811 Untrusted Patrol
200poj 1184

🚩 offer


1A + B
201
3
4 I
5 II
6 III
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
261
27
28O(1)
29
30
31
32
33k
34
35
36
37
38
39
40
41min
42
43
44
45
46
47
48
49
50
51
52
53k
54
55
561n1
57
58
59
60
61
62
63
64
65
66
67
680n-1
69
70k
71
72
73
74
75S
76S
77
78
79
80
81
82
83
841+2++n
85
86
87
88
89a^b
9064
91Hamilton
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109ACM
110
111
112
113
114
115
116
117DIY
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
1514
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
1692
170
171
172
173
174
175
176
177
178K
179
180
181
182
183
184
185
186
187
188
189
190
191
1922
193
194
195
196
197
198
199
200Hankson
201
202
203
204
205
206
207
208
209
210
211
212
213
214Devu
215
216Rainbow
217
218
219
220
221
222
223
224
225
226233
227
228
229NIM
230
231
232
233
234
235
236
237
238
239
240
241
242
2432
244
245
246
247
248
249
250
251Z
252
253
254
255K
256
257
258
259
260
261
262
263
264
265
266
267
268
269FotileL
270
271
272
273
274
275
276I-
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
2962
297
298
299
3001
3012
3023
303
304G
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324FIPA
325
326XOR
327
328
329
330
331
332
333
334K
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
360Freda
361
362
363B
364
365
366
367
368
369ACM
370
371
372
373
374
375
376
377
378
379
380
381
382K
383
384
385GF
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401uvvu
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419FBI
420
421
422
423
424
425
426
427Jam
428
429
430
431
432Hanoi
433ISBN
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
4892^k
490
491
492
493
494
495
496
497
498
499
500
501
502Vigenre
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
545Kickstart
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
575X
576
5774M
578
579
580
581
582
583
584Kicksort
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601Q
60201
603
604
605
6061
6072
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625Codejamon
626
627
628
629
630
631Googol
632g
633G
634g
635
636g
637g
638Albocede DNA
639g
640g
641g
642g
643
644g
645IP
646
647
648
649
650
651
652
653
654
655
656
6571
658
659
660
6613
662
663
664
665
666
667
6682
669
670
671DDD
672
673
6742048
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691IV
692G
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713 2
714 1
715
716
717
718
719 2
720
721
722
723PUM
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 I
754 II
755 III
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
786k
787
788
789
790
791
792
793
794
795
796
797
798
799
800
8011
802
803
804n
805xy
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
831KMP
832
833
834
835Trie
836
837
838
839
840
841
842
843n-
844
845
846
847
848
849Dijkstra I
850Dijkstra II
851spfa
852spfa
853
854Floyd
855
856
857
858Prim
859Kruskal
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 I
886 II
887 III
888 IV
88901
890
891Nim
892-Nim
893-Nim
894-Nim
895
896 II
897
898
899
900
901
902
903
904
905
906
907
908
909
910X
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
928
929SERNET
93101
932
933
934
935
936
937
938
939
940
941
942
943
944
945M
946
947
948
949
950
951
952
953H
954
955
956
957
958
959
960
961
962
963
964
965
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985NOI
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003

🎖 leetcode


10001
20002
30003
40004
50005
60006zigzag conversion(Z )
70007reverse integer()
80008atoi()
90009palindrome number()
100010regular expression matching()
110011
120012roman numeral()
130013roman to integer()
140014longest common prefix()
150015
160016three sum closest()
170017
180018four sum
190019 N
200020
210021
220022
230023 K
240024
250025K
260026
270027remove element()
280028implement strstr( strStr())
290029
300030
310031
320032
330033
340034
350035search insert position()
360036valid sudoku()
370037sudoku solver()
380038
390039
400040 II
410041first missing positive()
420042
430043multiply strings()
440044wildcard matching()
450045jump game ii( II)
460046
470047 II
480048
490049
500050Pow(x, n)
510051N
520052N II
530053
540054spiral matrix()
550055
560056
570057
580058length of last word()
590059 II
600060 k
610061
620062
630063 II
640064
650065
660066
670067
680068
690069x
700070
710071
720072
730073
740074
750075
760076
770077
780078
790079
800080 II
810081 II
820082 II
830083
840084
850085
860086
870087
880088
890089
900090 II
910091
920092 II
930093 IP
940094
950095 II
960096
970097
980098
990099
1000100
1010101
1020102
1030103
1040104
1050105
1060106
1070107 II
1080108
1090109
1100110
1110111
1120112
1130113 II
1140114
1150115
1160116
1170117 II
1180118
1190119 II
1200120
1210121
1220122 II
1230123 III
1240124
1250125
1260126 II
1270127
1280128
1290129
1300130
1310131
1320132 II
1330133clone graph
1340134gas station
1350135candy
1360136
1370137 II
1380138
1390139
1400140 II
1410141
1420142 II
1430143
1440144
1450145
1460146LRU
1470147
1480148
1490149
1500150
1510151
1520152
1530153
1540154 II
1550155
1560160
1570162
1580164
1590165
1600166
1610167 II
1620168Excel
1630169
1640171Excel
1650172
1660173
1670174
1680175
1690176
1700189
1710190
1720191 1
1730198
1740199
1750200
1760201
1770202
1780203
1790203
1800204
1810205
1820206
1830206
1840207
1850208 Trie ()
1860209
1870209
1880210 II
1890211 -