-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathindex.html
More file actions
1296 lines (1206 loc) · 75 KB
/
Copy pathindex.html
File metadata and controls
1296 lines (1206 loc) · 75 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DSA and Placement Prep by Sanjay</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Fira+Code:wght@400;500&family=Caveat:wght@400;600;700&family=Sacramento&family=Satisfy&display=swap" rel="stylesheet">
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='7' fill='%231A4731'/%3E%3Ctext x='16' y='23' font-family='Georgia,serif' font-size='20' font-weight='900' fill='white' text-anchor='middle'%3ED%3C/text%3E%3C/svg%3E">
<style>
:root {
--bg: #F4F4F2;
--surface: #FFFFFF;
--ink: #0F0F0F;
--ink2: #525252;
--ink3: #A3A3A3;
--border: #DDDDD9;
--green: #1A4731;
--green-s: #EBF4EF;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
font-family: 'Inter', system-ui, -apple-system, sans-serif;
background: var(--bg);
color: var(--ink);
line-height: 1.6;
font-size: 15px;
}
/* NAV */
nav {
position: sticky; top: 0; z-index: 100;
background: rgba(244,244,242,0.96);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--border);
}
.nav-wrap {
max-width: 1200px; margin: 0 auto; padding: 0 16px;
display: flex; align-items: center; justify-content: space-between;
height: 52px; gap: 12px;
}
.nav-brand {
font-weight: 900; font-size: 1rem; color: var(--ink);
white-space: nowrap; display: flex; align-items: center; gap: 8px;
text-decoration: none;
}
.nav-brand-icon {
width: 26px; height: 26px;
background: var(--green); border-radius: 6px;
display: flex; align-items: center; justify-content: center;
flex-shrink: 0;
}
.nav-links { display: flex; gap: 1px; list-style: none; }
.nav-links a {
display: block; padding: 6px 10px; border-radius: 6px;
font-size: 0.8rem; font-weight: 600; color: var(--ink2);
text-decoration: none; white-space: nowrap;
transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--ink); color: #fff; }
.ham {
display: none; background: none;
border: 1.5px solid var(--border); border-radius: 6px;
padding: 0 12px; cursor: pointer; font-size: 1.1rem;
color: var(--ink); height: 36px; align-items: center; justify-content: center;
}
.nav-mobile {
display: none; position: absolute; top: 52px; left: 0; right: 0;
background: var(--surface); border-bottom: 1px solid var(--border);
padding: 12px 20px; z-index: 99;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
display: block; padding: 11px 0; font-size: 0.9rem;
font-weight: 600; color: var(--ink2); text-decoration: none;
border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
/* LAYOUT */
.page { max-width: 1200px; margin: 0 auto; padding: 24px 16px 80px; }
/* CARD */
.card {
background: var(--surface); border: 1px solid var(--border);
border-radius: 14px; padding: 32px; margin-bottom: 24px;
}
@media (max-width: 600px) { .card { padding: 20px 16px; border-radius: 10px; } }
/* SECTION HEADING */
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.sec-icon {
width: 38px; height: 38px; min-width: 38px;
border-radius: 9px; background: var(--bg); border: 1px solid var(--border);
display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.sec-icon img { width: 22px; height: 22px; object-fit: contain; }
.sec-title { font-size: clamp(1.05rem, 3vw, 1.4rem); font-weight: 800; color: var(--ink); }
.sec-sub { font-size: 0.78rem; color: var(--ink3); font-weight: 500; margin-top: 1px; }
/* HERO */
.hero {
background: var(--surface); border: 1px solid var(--border);
border-radius: 14px; padding: 44px 36px; margin-bottom: 24px;
}
@media (max-width: 600px) { .hero { padding: 28px 18px; } }
.hero-label {
display: inline-block; border: 1px solid var(--border);
padding: 4px 12px; border-radius: 20px;
font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
text-transform: uppercase; color: var(--ink2); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.8rem, 6vw, 3.4rem); font-weight: 900; line-height: 1.1; margin-bottom: 14px; }
.hero h1 span { color: var(--green); }
.hero-desc { font-size: clamp(0.88rem, 2.5vw, 1rem); color: var(--ink2); max-width: 600px; margin-bottom: 26px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.pill {
display: inline-flex; align-items: center; gap: 6px;
border: 1px solid var(--border); border-radius: 20px;
padding: 5px 13px; font-size: 0.78rem; font-weight: 600;
color: var(--ink2); background: var(--bg);
}
.pill img { width: 13px; height: 13px; object-fit: contain; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
display: inline-flex; align-items: center; gap: 7px;
padding: 11px 22px; border-radius: 8px; font-size: 0.87rem;
font-weight: 700; text-decoration: none; transition: all 0.15s;
white-space: nowrap; border: 1.5px solid transparent;
}
.btn img { width: 15px; height: 15px; object-fit: contain; }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #2a2a2a; }
.btn-dark img { filter: brightness(10); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--ink); }
/* DSA SHEETS */
.sheets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.sheet-card {
border: 1px solid var(--border); border-radius: 10px;
padding: 20px; background: var(--bg);
display: flex; flex-direction: column; gap: 10px;
transition: border-color 0.15s, box-shadow 0.15s;
}
.sheet-card:hover { border-color: #999; box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
.sheet-top { display: flex; align-items: center; gap: 10px; }
.sheet-avatar {
width: 40px; height: 40px; min-width: 40px;
border-radius: 8px; border: 1px solid var(--border);
background: #fff; display: flex; align-items: center; justify-content: center;
overflow: hidden; font-size: 0.68rem; font-weight: 800; color: var(--ink2);
}
.sheet-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.sheet-num { font-size: 0.68rem; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: 0.06em; }
.sheet-name { font-size: 0.93rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.sheet-tag {
display: inline-block; padding: 2px 9px; border-radius: 20px;
font-size: 0.69rem; font-weight: 700; border: 1px solid var(--border);
color: var(--ink2); align-self: flex-start;
}
.sheet-desc { font-size: 0.81rem; color: var(--ink2); line-height: 1.5; }
.sheet-link {
display: inline-flex; align-items: center; gap: 5px;
padding: 8px 15px; border: 1px solid var(--border); border-radius: 6px;
font-size: 0.79rem; font-weight: 700; text-decoration: none;
color: var(--ink); background: #fff; align-self: flex-start;
transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sheet-link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
/* COMPANIES */
.companies-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 155px), 1fr)); gap: 12px; }
.co-card {
border: 1px solid var(--border); border-radius: 10px;
padding: 18px 12px; background: var(--bg); text-align: center;
display: flex; flex-direction: column; align-items: center; gap: 8px;
transition: border-color 0.15s, box-shadow 0.15s;
}
.co-card:hover { border-color: #999; box-shadow: 0 2px 10px rgba(0,0,0,0.07); }
.co-logo {
width: 46px; height: 46px; border-radius: 10px;
border: 1px solid var(--border); background: #fff;
display: flex; align-items: center; justify-content: center;
overflow: hidden; padding: 5px;
}
.co-logo img { width: 100%; height: 100%; object-fit: contain; }
.co-logo .init { font-size: 0.7rem; font-weight: 800; color: var(--ink2); }
.co-name { font-size: 0.8rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.co-method { font-size: 0.66rem; color: var(--ink3); font-weight: 600; font-family: 'Fira Code', monospace; }
/* CONCEPTS */
.concepts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.concept-card {
border: 1px solid var(--border); border-radius: 10px;
padding: 20px; background: var(--bg); position: relative;
transition: border-color 0.15s;
overflow: visible;
}
.concept-card:hover { border-color: #999; }
.concept-card.important { border: 1.5px solid var(--ink); background: #fff; }
.c-num { font-size: 0.67rem; font-weight: 700; color: var(--ink3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 7px; font-family: 'Fira Code', monospace; }
.c-title { font-size: 0.95rem; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.c-desc { font-size: 0.81rem; color: var(--ink2); line-height: 1.5; }
/* HAND DRAWN STAR - 5 POINTED, ROUGH, SINGLE CORNER */
.rough-star {
position: absolute;
top: -18px;
left: -16px;
width: 52px;
height: 52px;
transform: rotate(-12deg);
pointer-events: none;
z-index: 3;
}
/* ANNOTATE CIRCLE */
.annotate-wrap { position: relative; display: inline-block; }
.hand-circle {
position: absolute;
pointer-events: none;
overflow: visible;
}
/* TABLE */
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
thead th { background: var(--ink); color: #fff; padding: 12px 16px; text-align: left; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg); }
tbody td { padding: 12px 16px; font-size: 0.83rem; vertical-align: middle; }
tbody td:first-child { font-family: 'Fira Code', monospace; font-size: 0.73rem; color: var(--ink3); font-weight: 500; width: 40px; }
.chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; border: 1px solid var(--border); background: #fff; color: var(--ink2); }
.diff-easy { background: #ECFDF5; border-color: #6EE7B7; color: #065F46; }
.diff-medium { background: #FFFBEB; border-color: #FCD34D; color: #78350F; }
.diff-hard { background: #FEF2F2; border-color: #FCA5A5; color: #7F1D1D; }
.prob-link { color: var(--green); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.prob-link:hover { text-decoration: underline; }
/* TRICKS */
.tricks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 218px), 1fr)); gap: 12px; }
.trick { border: 1px solid var(--border); border-radius: 10px; padding: 16px; background: #fff; transition: border-color 0.15s; }
.trick:hover { border-color: var(--ink); }
.t-trigger { font-size: 0.68rem; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.t-cond { font-size: 0.9rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.t-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.t-tag { font-family: 'Fira Code', monospace; font-size: 0.7rem; font-weight: 500; background: var(--bg); border: 1px solid var(--border); padding: 2px 8px; border-radius: 4px; color: var(--ink2); }
/* WORD PATTERNS */
.patterns-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.pat-card { border: 1px solid var(--border); border-radius: 10px; padding: 18px; background: #fff; }
.pat-algo { font-size: 0.73rem; font-weight: 800; color: var(--ink); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.pat-list { list-style: none; padding: 0; }
.pat-list li { font-size: 0.8rem; color: var(--ink2); padding: 5px 0; border-bottom: 1px dashed var(--border); font-family: 'Fira Code', monospace; }
.pat-list li:last-child { border-bottom: none; }
/* APPROACH */
.approach-list { display: flex; flex-direction: column; gap: 10px; }
.approach-step { display: flex; align-items: flex-start; gap: 14px; border: 1px solid var(--border); border-radius: 8px; padding: 14px 18px; background: #fff; transition: border-color 0.15s; }
.approach-step:hover { border-color: var(--ink); }
.a-num { width: 28px; height: 28px; min-width: 28px; background: var(--ink); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.74rem; }
.a-text { font-size: 0.84rem; color: var(--ink2); padding-top: 5px; line-height: 1.5; }
.a-text strong { color: var(--ink); }
/* EMERGENCY */
.emerg { background: #FFFBEB; border: 1px solid #FCD34D; border-radius: 10px; padding: 22px 24px; margin-top: 20px; }
.emerg h4 { font-size: 0.87rem; font-weight: 800; color: #78350F; margin-bottom: 12px; }
.emerg ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.emerg li { font-size: 0.82rem; color: #92400E; display: flex; align-items: flex-start; gap: 9px; }
.emerg li::before { content: "->"; font-family: 'Fira Code', monospace; font-weight: 700; flex-shrink: 0; }
/* ROADMAP */
.roadmap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); gap: 14px; }
.road-card { border: 1px solid var(--border); border-radius: 10px; padding: 20px; background: #fff; }
.road-card h3 { font-size: 0.88rem; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.road-card ul { list-style: none; padding: 0; }
.road-card li { font-size: 0.81rem; color: var(--ink2); padding: 5px 0; border-bottom: 1px dashed var(--border); display: flex; align-items: flex-start; gap: 7px; }
.road-card li:last-child { border-bottom: none; }
.road-card li::before { content: "-"; color: var(--ink3); flex-shrink: 0; }
/* HANDWRITTEN ROADMAP ORDER */
.handwritten-order {
font-family: 'Caveat', cursive;
font-size: 1.15rem;
font-weight: 600;
color: var(--ink);
background: #FFFEF7;
border: 1.5px solid #E5E0C8;
border-radius: 10px;
padding: 18px 22px;
margin-bottom: 22px;
line-height: 1.9;
position: relative;
}
.handwritten-order .hw-label {
font-family: 'Caveat', cursive;
font-size: 0.88rem;
font-weight: 700;
color: var(--ink3);
display: block;
margin-bottom: 4px;
}
.hw-arrow { font-family: 'Caveat', cursive; font-size: 1.2rem; color: var(--green); font-weight: 700; }
/* LANGUAGES */
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); gap: 14px; }
.lang-card { border: 1px solid var(--border); border-radius: 10px; padding: 22px; background: #fff; }
.lang-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.lang-ico { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--bg); }
.lang-ico img { width: 22px; height: 22px; object-fit: contain; }
.lang-card h3 { font-size: 0.93rem; font-weight: 800; color: var(--ink); }
.lang-card ul { list-style: none; padding: 0; }
.lang-card li { font-size: 0.81rem; color: var(--ink2); padding: 6px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 7px; }
.lang-card li:last-child { border-bottom: none; }
.lang-card li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink3); flex-shrink: 0; }
/* PLATFORMS */
.plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 152px), 1fr)); gap: 12px; }
.plat-card { border: 1px solid var(--border); border-radius: 10px; padding: 20px 12px; background: #fff; text-align: center; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 10px; transition: border-color 0.15s, box-shadow 0.15s; }
.plat-card:hover { border-color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.plat-logo { width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 7px; }
.plat-logo img { width: 100%; height: 100%; object-fit: contain; }
.plat-name { font-size: 0.82rem; font-weight: 700; }
.plat-desc { font-size: 0.7rem; color: var(--ink3); font-weight: 500; }
/* PERSONAL NOTE */
.note-card{
border: 1px solid var(--border);
border-radius: 14px;
padding: 40px 36px;
background: #fffef8;
position: relative;
overflow: hidden;
transform: rotate(-0.8deg);
box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
@media (max-width:600px){
.note-card{
padding:24px 18px;
}
}
.quote-bg{
position:absolute;
top:-30px;
left:10px;
font-size:9rem;
font-family:"Sacramento", cursive;
color:rgba(0,0,0,.06);
line-height:1;
pointer-events:none;
user-select:none;
}
.note-inner{
position:relative;
z-index:1;
}
.note-label{
display:inline-block;
font-size:.72rem;
font-weight:700;
letter-spacing:.08em;
text-transform:uppercase;
color:var(--ink2);
margin-bottom:18px;
border-bottom:1px dashed var(--border);
padding-bottom:4px;
}
.note-inner h2{
font-family:"Sacramento", cursive;
font-size:3rem;
font-weight:400;
color:var(--ink);
margin:0 0 18px;
line-height:1.1;
}
.note-inner p{
font-family:"Satisfy", cursive;
font-size:1.45rem;
color:#3d3d3d;
max-width:700px;
margin-bottom:16px;
line-height:1.65;
letter-spacing:.01em;
}
.note-inner p strong{
color:var(--ink);
font-weight:400;
}
.note-sig{
margin-top:28px;
text-align:right;
font-family:"Sacramento", cursive;
font-size:2.7rem;
color:var(--ink);
line-height:1;
}
/* subtle paper texture */
.note-card::before{
content:"";
position:absolute;
inset:0;
background:
repeating-linear-gradient(
to bottom,
transparent 0,
transparent 34px,
rgba(0,0,0,.025) 35px,
transparent 36px
);
pointer-events:none;
}
/* FOOTER */
.footer { border: 1px solid var(--border); border-radius: 14px; padding: 36px; background: var(--surface); text-align: center; }
@media (max-width: 600px) { .footer { padding: 24px 18px; } }
.footer h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.footer p { font-size: 0.83rem; color: var(--ink2); margin-bottom: 22px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.footer-credit { font-size: 0.72rem; color: var(--ink3); }
/* SCROLL TOP */
#scrollTop { position: fixed; bottom: 20px; right: 20px; width: 44px; height: 44px; background: var(--ink); color: #fff; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 12px rgba(0,0,0,0.2); opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; z-index: 99; }
#scrollTop.show { opacity: 1; visibility: visible; }
#scrollTop:hover { background: #333; }
/* DIVIDER */
.divider-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink3); padding: 8px 0 16px; display: flex; align-items: center; gap: 10px; }
.divider-label::before, .divider-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
/* FLAG INLINE */
.flag-inline { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
/* FADE */
.fade { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade.in { opacity: 1; transform: translateY(0); }
/* RESPONSIVE */
@media (max-width: 900px) { .nav-links { display: none; } .ham { display: flex; } }
@media (max-width: 420px) { .companies-grid { grid-template-columns: repeat(2, 1fr); } .plat-grid { grid-template-columns: repeat(2, 1fr); } }
/* INFO BOX */
.info-box { background: var(--green-s); border: 1px solid #A7D3BB; border-radius: 8px; padding: 13px 18px; font-size: 0.82rem; color: #1A4731; font-weight: 500; margin-bottom: 20px; }
</style>
</head>
<body>
<!-- NAV -->
<nav>
<div class="nav-wrap">
<a href="#" class="nav-brand">
<div class="nav-brand-icon">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/>
</svg>
</div>
DSA Prep
</a>
<ul class="nav-links">
<li><a href="#sheets">Sheets</a></li>
<li><a href="#companies">Companies</a></li>
<li><a href="#concepts">Concepts</a></li>
<li><a href="#problems">Problems</a></li>
<li><a href="#patterns">Patterns</a></li>
<li><a href="#roadmap">Roadmap</a></li>
<li><a href="#platforms">Platforms</a></li>
<li><a href="https://github.com/cu-sanjay" target="_blank">GitHub</a></li>
</ul>
<button class="ham" id="ham" aria-label="Menu">☰</button>
</div>
<div class="nav-mobile" id="navMob">
<a href="#sheets">Sheets</a>
<a href="#companies">Companies</a>
<a href="#concepts">Concepts</a>
<a href="#problems">Problems</a>
<a href="#patterns">Patterns</a>
<a href="#roadmap">Roadmap</a>
<a href="#platforms">Platforms</a>
<a href="https://github.com/cu-sanjay" target="_blank">GitHub</a>
</div>
</nav>
<div class="page">
<!-- HERO -->
<div class="hero fade">
<div class="hero-label">Indian Placement Prep - Java and DSA</div>
<h1>Your personal<br><span>DSA guide.</span></h1>
<p class="hero-desc">No fluff. Just the sheets, tricks, and problems that actually come up in placements. I work in Java and follow Striver, so this guide reflects that.</p>
<div class="pill-row">
<div class="pill">7 DSA Sheets</div>
<div class="pill">14+ Companies</div>
<div class="pill">15 Problems</div>
<div class="pill">
<img src="https://www.svgrepo.com/show/452234/java.svg" alt="Java">
Java Focused
</div>
</div>
<div class="btn-row">
<a href="#sheets" class="btn btn-dark">Start with Sheets</a>
<a href="#problems" class="btn btn-outline">Jump to Problems</a>
<a href="https://github.com/cu-sanjay" target="_blank" class="btn btn-outline">GitHub</a>
</div>
</div>
<!-- DSA SHEETS -->
<div class="card fade" id="sheets">
<div class="sec-head">
<div class="sec-icon">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#111" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/>
</svg>
</div>
<div>
<div class="sec-title">DSA Sheets</div>
<div class="sec-sub">All important sheets in one place</div>
</div>
</div>
<div class="sheets-grid">
<div class="sheet-card">
<div class="sheet-top">
<div class="sheet-avatar">
<img src="https://static.takeuforward.org/content/tuf_logo_F-nFV4asTo" alt="TUF" onerror="this.style.display='none';this.parentElement.innerHTML='TUF'">
</div>
<div>
<div class="sheet-num">Sheet 01</div>
<div class="sheet-name">Striver's A2Z DSA Sheet</div>
</div>
</div>
<div class="sheet-tag">Top Pick - Best for Interviews</div>
<div class="sheet-desc">I follow Striver closely. This is the one I value most. Start here if you are serious about placements.</div>
<a href="https://takeuforward.org/strivers-a2z-dsa-course/strivers-a2z-dsa-course-sheet-2/" target="_blank" class="sheet-link">Open Sheet</a>
</div>
<div class="sheet-card">
<div class="sheet-top">
<div class="sheet-avatar">
<img src="https://cdn.codehelp.in/codehelp-frontend-assets/O_Fire_Black.gif" alt="CodeHelp" onerror="this.style.display='none';this.parentElement.innerHTML='LB'">
</div>
<div>
<div class="sheet-num">Sheet 02</div>
<div class="sheet-name">Love Babbar 450 Sheet</div>
</div>
</div>
<div class="sheet-tag">Quick Revision</div>
<div class="sheet-desc">Good for revising fast. 450 well picked problems that cover all the main topics.</div>
<a href="https://drive.google.com/file/d/1FMdN_OCfOI0iAeDlqswCiC2DZzD4nPsb/view" target="_blank" class="sheet-link">Open Sheet</a>
</div>
<div class="sheet-card">
<div class="sheet-top">
<div class="sheet-avatar">
<img src="https://neetcode.io/assets/neetcode-io-logo.png" alt="NeetCode" onerror="this.style.display='none';this.parentElement.innerHTML='NC'">
</div>
<div>
<div class="sheet-num">Sheet 03</div>
<div class="sheet-name">NeetCode 150</div>
</div>
</div>
<div class="sheet-tag">LeetCode Style Practice</div>
<div class="sheet-desc">Best if you are targeting FAANG. Has video explanations for every problem.</div>
<a href="https://neetcode.io/practice" target="_blank" class="sheet-link">Open Sheet</a>
</div>
<div class="sheet-card">
<div class="sheet-top">
<div class="sheet-avatar">
<img src="https://cdn.brandfetch.io/idnVB0WfmC/w/400/h/400/theme/dark/icon.jpeg?c=1dxbfHSJFAPEGdCLU4o5B" alt="Fraz" onerror="this.style.display='none';this.parentElement.innerHTML='FR'">
</div>
<div>
<div class="sheet-num">Sheet 04</div>
<div class="sheet-name">Fraz DSA Sheet</div>
</div>
</div>
<div class="sheet-tag">Good Alternative</div>
<div class="sheet-desc">Nice topic wise structure. A solid alternative if you want something different from Babbar.</div>
<a href="https://docs.google.com/spreadsheets/u/0/d/1-wKcV99KtO91dXdPkwmXGTdtyxAfk1mbPXQg81R9sFE/htmlview" target="_blank" class="sheet-link">Open Sheet</a>
</div>
<div class="sheet-card">
<div class="sheet-top">
<div class="sheet-avatar">
<img src="https://lwfiles.mycourse.app/62a6cd5e1e9e2fbf212d608d-public/87c40f6213de38546841280fb345d40f.png" alt="Apna College" onerror="this.style.display='none';this.parentElement.innerHTML='AC'">
</div>
<div>
<div class="sheet-num">Sheet 05</div>
<div class="sheet-name">Apna College 375 Sheet</div>
</div>
</div>
<div class="sheet-tag">Beginner to Intermediate</div>
<div class="sheet-desc">Good if you are just starting out. Covers basics well and builds up gradually.</div>
<a href="https://docs.google.com/spreadsheets/u/0/d/1hXserPuxVoWMG9Hs7y8wVdRCJTcj3xMBAEYUOXQ5Xag/htmlview" target="_blank" class="sheet-link">Open Sheet</a>
</div>
<div class="sheet-card">
<div class="sheet-top">
<div class="sheet-avatar" style="background:#f5f5f5; font-size:0.65rem;">Arsh</div>
<div>
<div class="sheet-num">Sheet 06</div>
<div class="sheet-name">Arsh Goyal Sheet (45-60 Days)</div>
</div>
</div>
<div class="sheet-tag">45 to 60 Day Plan</div>
<div class="sheet-desc">Tight plan for fast preparation. Good if placement season is close and you need structure.</div>
<a href="https://docs.google.com/spreadsheets/d/1MGVBJ8HkRbCnU6EQASjJKCqQE8BWng4qgL0n3vCVOxE/edit#gid=0" target="_blank" class="sheet-link">Open Sheet</a>
</div>
<div class="sheet-card">
<div class="sheet-top">
<div class="sheet-avatar" style="background:#f5f5f5; font-size:0.65rem;">Algo</div>
<div>
<div class="sheet-num">Sheet 07</div>
<div class="sheet-name">AlgoPrep 151 Problems</div>
</div>
</div>
<div class="sheet-tag">Targeted Practice</div>
<div class="sheet-desc">151 problems selected carefully. Short and focused. Good as a final revision list.</div>
<a href="https://docs.google.com/spreadsheets/d/1kyHfGGaLTzWspcqMUUS5Httmip7t8LJB0P-uPrRLGos/edit#gid=0" target="_blank" class="sheet-link">Open Sheet</a>
</div>
</div>
</div>
<!-- COMPANIES -->
<div class="card fade" id="companies">
<div class="sec-head">
<div style="flex-shrink:0; margin-right:2px;">
<!-- Indian Flag SVG -->
<svg width="28" height="20" viewBox="0 0 28 20" xmlns="http://www.w3.org/2000/svg" style="border-radius:3px; border:1px solid #ddd; display:block;">
<rect width="28" height="6.66" fill="#FF9933"/>
<rect y="6.66" width="28" height="6.68" fill="#FFFFFF"/>
<rect y="13.34" width="28" height="6.66" fill="#138808"/>
<!-- Ashoka Chakra -->
<circle cx="14" cy="10" r="2.8" fill="none" stroke="#000080" stroke-width="0.5"/>
<circle cx="14" cy="10" r="0.45" fill="#000080"/>
<!-- 12 spokes -->
<g stroke="#000080" stroke-width="0.35" transform="translate(14,10)">
<line x1="0" y1="-2.8" x2="0" y2="2.8"/>
<line x1="-2.8" y1="0" x2="2.8" y2="0"/>
<line x1="-1.98" y1="-1.98" x2="1.98" y2="1.98"/>
<line x1="1.98" y1="-1.98" x2="-1.98" y2="1.98"/>
<line x1="-2.62" y1="-1.05" x2="2.62" y2="1.05"/>
<line x1="2.62" y1="-1.05" x2="-2.62" y2="1.05"/>
<line x1="-1.05" y1="-2.62" x2="1.05" y2="2.62"/>
<line x1="1.05" y1="-2.62" x2="-1.05" y2="2.62"/>
</g>
</svg>
</div>
<div>
<div class="sec-title">Target Companies</div>
<div class="sec-sub">Know the company, know the test</div>
</div>
</div>
<div class="divider-label">Mass Recruiting Companies</div>
<div class="companies-grid" style="margin-bottom:28px;">
<div class="co-card">
<div class="co-logo">
<img src="https://companieslogo.com/img/orig/TCS.NS-7401f1bd.png?t=1740792736" alt="TCS" onerror="this.style.display='none';this.parentElement.innerHTML='<div class=init>TCS</div>'">
</div>
<div class="co-name">TCS</div>
<div class="co-method">NQT</div>
</div>
<div class="co-card">
<div class="co-logo">
<img src="https://companieslogo.com/img/orig/WIT-1453b096.png?t=1739861069" alt="Wipro" onerror="this.style.display='none';this.parentElement.innerHTML='<div class=init>WIP</div>'">
</div>
<div class="co-name">Wipro</div>
<div class="co-method">Elite / Turbo</div>
</div>
<div class="co-card">
<div class="co-logo">
<img src="https://companieslogo.com/img/orig/IBM-57502b16.png?t=1720244492" alt="IBM" onerror="this.style.display='none';this.parentElement.innerHTML='<div class=init>IBM</div>'">
</div>
<div class="co-name">IBM</div>
<div class="co-method"></div>
</div>
<div class="co-card">
<div class="co-logo">
<img src="https://companieslogo.com/img/orig/INFY_BIG-9635f314.png?t=1720244492" alt="Infosys" onerror="this.style.display='none';this.parentElement.innerHTML='<div class=init>INF</div>'">
</div>
<div class="co-name">Infosys</div>
<div class="co-method">SP / DSE</div>
</div>
<div class="co-card">
<div class="co-logo">
<img src="https://companieslogo.com/img/orig/TECHM.NS_BIG-281ab5b9.png?t=1721262930" alt="Tech Mahindra" onerror="this.style.display='none';this.parentElement.innerHTML='<div class=init>TM</div>'">
</div>
<div class="co-name">Tech Mahindra</div>
<div class="co-method"></div>
</div>
<div class="co-card">
<div class="co-logo">
<img src="https://companieslogo.com/img/orig/CTSH-82a8444b.png?t=1720244491" alt="Cognizant" onerror="this.style.display='none';this.parentElement.innerHTML='<div class=init>CTS</div>'">
</div>
<div class="co-name">Cognizant</div>
<div class="co-method">GenC / GenC Next</div>
</div>
<div class="co-card">
<div class="co-logo">
<img src="https://companieslogo.com/img/orig/CAP.PA-9b4110b0.png?t=1720244491" alt="Capgemini" onerror="this.style.display='none';this.parentElement.innerHTML='<div class=init>CAP</div>'">
</div>
<div class="co-name">Capgemini</div>
<div class="co-method"></div>
</div>
<div class="co-card">
<div class="co-logo">
<img src="https://companieslogo.com/img/orig/HCLTECH.NS_BIG-eadcb2fa.png?t=1723784865" alt="HCL" onerror="this.style.display='none';this.parentElement.innerHTML='<div class=init>HCL</div>'">
</div>
<div class="co-name">HCL Tech</div>
<div class="co-method"></div>
</div>
<div class="co-card">
<div class="co-logo">
<img src="https://companieslogo.com/img/orig/ACN_BIG-3a6289fb.png?t=1720244490" alt="Accenture" onerror="this.style.display='none';this.parentElement.innerHTML='<div class=init>ACN</div>'">
</div>
<div class="co-name">Accenture</div>
<div class="co-method">ASE / AASE</div>
</div>
<div class="co-card">
<div class="co-logo">
<img src="https://companieslogo.com/img/orig/LT.NS-d9c460ee.png?t=1746035604" alt="L&T" onerror="this.style.display='none';this.parentElement.innerHTML='<div class=init>L&T</div>'">
</div>
<div class="co-name">L&T Infotech</div>
<div class="co-method"></div>
</div>
</div>
<div class="divider-label">Dream Companies (Product Based)</div>
<div class="companies-grid">
<div class="co-card">
<div class="co-logo">
<img src="https://companieslogo.com/img/orig/AMZN-e9f942e4.png?t=1740113564" alt="Amazon" onerror="this.style.display='none';this.parentElement.innerHTML='<div class=init>AMZ</div>'">
</div>
<div class="co-name">Amazon</div>
<div class="co-method">FAANG</div>
</div>
<div class="co-card">
<div class="co-logo">
<img src="https://companieslogo.com/img/orig/MSFT-a203b22d.png?t=1722952497" alt="Microsoft" onerror="this.style.display='none';this.parentElement.innerHTML='<div class=init>MS</div>'">
</div>
<div class="co-name">Microsoft</div>
<div class="co-method">FAANG</div>
</div>
<div class="co-card">
<div class="co-logo">
<img src="https://companieslogo.com/img/orig/google-9646e5e7.png?t=1720244494" alt="Google" onerror="this.style.display='none';this.parentElement.innerHTML='<div class=init>GOO</div>'">
</div>
<div class="co-name">Google</div>
<div class="co-method">FAANG</div>
</div>
<div class="co-card">
<div class="co-logo">
<img src="https://companieslogo.com/img/orig/ADBE_BIG-1544171f.png?t=1740130206" alt="Adobe" onerror="this.style.display='none';this.parentElement.innerHTML='<div class=init>ADB</div>'">
</div>
<div class="co-name">Adobe</div>
<div class="co-method">Product</div>
</div>
<div class="co-card">
<div class="co-logo">
<img src="https://companieslogo.com/img/orig/ORCL_BIG-18499385.png?t=1740130451" alt="Oracle" onerror="this.style.display='none';this.parentElement.innerHTML='<div class=init>ORC</div>'">
</div>
<div class="co-name">Oracle</div>
<div class="co-method">Product</div>
</div>
<div class="co-card">
<div class="co-logo">
<img src="https://companieslogo.com/img/orig/GS_BIG-5028c424.png?t=1740321324" alt="Goldman Sachs" onerror="this.style.display='none';this.parentElement.innerHTML='<div class=init>GS</div>'">
</div>
<div class="co-name">Goldman Sachs</div>
<div class="co-method">Product</div>
</div>
</div>
</div>
<!-- CONCEPTS -->
<div class="card fade" id="concepts">
<div class="sec-head">
<div class="sec-icon">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#111" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
<path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"/>
</svg>
</div>
<div>
<div class="sec-title">Top 10 Must Know Concepts</div>
<div class="sec-sub">Master these and you can handle most interview questions</div>
</div>
</div>
<div class="concepts-grid">
<div class="concept-card">
<div class="c-num">01</div>
<div class="c-title">Recursion</div>
<div class="c-desc">Breaking a problem into smaller sub-problems with a base condition. Comes up in 80% of interviews.</div>
</div>
<div class="concept-card">
<div class="c-num">02</div>
<div class="c-title">Sliding Window</div>
<div class="c-desc">Solving subarray problems by moving a window across the array. Very common in array questions.</div>
</div>
<!-- STRING MANIPULATION - IMPORTANT, rough hand-drawn star in top-left corner -->
<div class="concept-card important">
<!-- Rough hand-drawn 5-pointed star, imperfectly placed in top-left corner -->
<svg class="rough-star" viewBox="0 0 56 58" fill="none" xmlns="http://www.w3.org/2000/svg">
<!-- First stroke of the 5-pointed star (top -> lower-right -> upper-left -> upper-right -> lower-left -> top) -->
<path d="M 28 3 L 44 52 L 5 22 L 52 22 L 13 52 Z"
stroke="#0F0F0F" stroke-width="2" fill="none"
stroke-linecap="round" stroke-linejoin="round"/>
<!-- Second slightly offset pass to mimic double-stroke hand drawing -->
<path d="M 29 4 L 45 51 L 6 21 L 51 21 L 12 51 Z"
stroke="#0F0F0F" stroke-width="1.1" fill="none"
stroke-linecap="round" stroke-linejoin="round" opacity="0.4"/>
</svg>
<div class="c-num">03</div>
<!-- Rough hand-drawn oval around the title -->
<div class="annotate-wrap"
style="display:inline-block; position:relative; padding:8px 14px;">
<div class="c-title" style="position:relative; z-index:1;">
String Manipulation
</div>
<svg
style="position:absolute;
inset:0;
width:100%;
height:100%;
pointer-events:none;
overflow:visible;"
viewBox="0 0 220 60"
preserveAspectRatio="none"
fill="none">
<path
d="M15 30
C18 8, 70 3, 110 5
C165 4, 205 10, 205 30
C204 50, 160 56, 110 55
C55 57, 12 50, 15 30 Z"
stroke="#0F0F0F"
stroke-width="2"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"/>
</svg>
</div>
<div class="c-desc" style="margin-top:6px;">Reverse, substring, anagram check. A basic requirement. Asked in almost every test round.</div>
</div>
<div class="concept-card">
<div class="c-num">04</div>
<div class="c-title">BFS</div>
<div class="c-desc">Layer by layer traversal of a graph. Needed for shortest path and level order problems.</div>
</div>
<div class="concept-card">
<div class="c-num">05</div>
<div class="c-title">DFS</div>
<div class="c-desc">Deep traversal of a graph or tree. Used for connected components and path problems.</div>
</div>
<div class="concept-card">
<div class="c-num">06</div>
<div class="c-title">Dynamic Programming</div>
<div class="c-desc">Cache results of recursive calls so you do not repeat work. Memoisation and tabulation are the two ways.</div>
</div>
<div class="concept-card">
<div class="c-num">07</div>
<div class="c-title">Greedy</div>
<div class="c-desc">Pick the best local option at each step. Works when local best leads to global best.</div>
</div>
<div class="concept-card">
<div class="c-num">08</div>
<div class="c-title">Two Pointers</div>
<div class="c-desc">Use two indexes on a sorted array. Reduces brute force O(n squared) to O(n).</div>
</div>
<div class="concept-card">
<div class="c-num">09</div>
<div class="c-title">Backtracking</div>
<div class="c-desc">Try a solution, if it fails undo and try something else. For permutations, subsets, N-Queens.</div>
</div>
<div class="concept-card">
<div class="c-num">10</div>
<div class="c-title">Binary Search</div>
<div class="c-desc">Halve your search space each step on a sorted input. O(log n). Very commonly tested.</div>
</div>
</div>
</div>
<!-- PROBLEMS TABLE -->
<div class="card fade" id="problems">
<div class="sec-head">
<div class="sec-icon">
<img src="https://cdn.simpleicons.org/leetcode/FFA116" alt="" onerror="this.style.display='none'">
</div>
<div>
<div class="sec-title">15 Must-Solve Problems</div>
<div class="sec-sub">These exact problems or their variants keep showing up in placement rounds</div>
</div>
</div>
<div class="table-wrap">
<table>
<thead>
<tr><th>#</th><th>Concept</th><th>Problem</th><th>Level</th></tr>
</thead>
<tbody>
<tr><td>01</td><td><span class="chip">Recursion</span></td><td><a href="https://leetcode.com/problems/maximum-depth-of-binary-tree" target="_blank" class="prob-link">Max Depth of Binary Tree - #104</a></td><td><span class="chip diff-easy">Easy</span></td></tr>
<tr><td>02</td><td><span class="chip">Sliding Window</span></td><td><a href="https://leetcode.com/problems/longest-substring-without-repeating-characters" target="_blank" class="prob-link">Longest Substring Without Repeat - #3</a></td><td><span class="chip diff-medium">Medium</span></td></tr>
<tr><td>03</td><td><span class="chip">Strings</span></td><td><a href="https://leetcode.com/problems/longest-palindromic-substring" target="_blank" class="prob-link">Longest Palindromic Substring - #5</a></td><td><span class="chip diff-medium">Medium</span></td></tr>
<tr><td>04</td><td><span class="chip">BFS</span></td><td><a href="https://leetcode.com/problems/binary-tree-level-order-traversal" target="_blank" class="prob-link">Level Order Traversal - #102</a></td><td><span class="chip diff-medium">Medium</span></td></tr>
<tr><td>05</td><td><span class="chip">DFS</span></td><td><a href="https://leetcode.com/problems/number-of-islands" target="_blank" class="prob-link">Number of Islands - #200</a></td><td><span class="chip diff-medium">Medium</span></td></tr>
<tr><td>06</td><td><span class="chip">DP</span></td><td><a href="https://leetcode.com/problems/maximum-subarray" target="_blank" class="prob-link">Maximum Subarray (Kadane's) - #53</a></td><td><span class="chip diff-medium">Medium</span></td></tr>
<tr><td>07</td><td><span class="chip">Greedy</span></td><td><a href="https://leetcode.com/problems/jump-game" target="_blank" class="prob-link">Jump Game - #55</a></td><td><span class="chip diff-medium">Medium</span></td></tr>
<tr><td>08</td><td><span class="chip">Two Pointers</span></td><td><a href="https://leetcode.com/problems/3sum" target="_blank" class="prob-link">3 Sum - #15</a></td><td><span class="chip diff-medium">Medium</span></td></tr>
<tr><td>09</td><td><span class="chip">Backtracking</span></td><td><a href="https://leetcode.com/problems/permutations" target="_blank" class="prob-link">Permutations - #46</a></td><td><span class="chip diff-medium">Medium</span></td></tr>
<tr><td>10</td><td><span class="chip">Binary Search</span></td><td><a href="https://leetcode.com/problems/binary-search" target="_blank" class="prob-link">Binary Search - #704</a></td><td><span class="chip diff-easy">Easy</span></td></tr>
<tr><td>11</td><td><span class="chip">Tree</span></td><td><a href="https://leetcode.com/problems/binary-tree-inorder-traversal" target="_blank" class="prob-link">Inorder Traversal - #94</a></td><td><span class="chip diff-easy">Easy</span></td></tr>
<tr><td>12</td><td><span class="chip">OOP Java</span></td><td><a href="https://leetcode.com/problems/lru-cache/" target="_blank" class="prob-link">LRU Cache - #146</a></td><td><span class="chip diff-medium">Medium</span></td></tr>
<tr><td>13</td><td><span class="chip">SQL</span></td><td><a href="https://leetcode.com/problems/second-highest-salary" target="_blank" class="prob-link">Second Highest Salary - #176</a></td><td><span class="chip diff-medium">Medium</span></td></tr>
<tr><td>14</td><td><span class="chip">Stack</span></td><td><a href="https://leetcode.com/problems/valid-parentheses" target="_blank" class="prob-link">Valid Parentheses - #20</a></td><td><span class="chip diff-easy">Easy</span></td></tr>
<tr><td>15</td><td><span class="chip">Greedy</span></td><td><a href="https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons" target="_blank" class="prob-link">Minimum Arrows - #452</a></td><td><span class="chip diff-medium">Medium</span></td></tr>
</tbody>
</table>
</div>
</div>
<!-- PATTERNS -->
<div class="card fade" id="patterns">
<div class="sec-head">
<div class="sec-icon">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#111" stroke-width="2.2" stroke-linecap="round">
<circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/>
</svg>
</div>
<div>
<div class="sec-title">Always Working Tricks</div>
<div class="sec-sub">See the input, know the technique. Spot the keyword, pick the algorithm.</div>
</div>
</div>
<h3 style="font-size:0.82rem; font-weight:800; text-transform:uppercase; letter-spacing:0.05em; color:var(--ink2); margin-bottom:14px;">If you see this input, try this technique</h3>
<div class="tricks-grid" style="margin-bottom:32px;">
<div class="trick"><div class="t-trigger">If input array is</div><div class="t-cond">Sorted</div><div class="t-tags"><span class="t-tag">BinarySearch</span><span class="t-tag">TwoPointers</span></div></div>
<div class="trick"><div class="t-trigger">If asked for all</div><div class="t-cond">Permutations or Subsets</div><div class="t-tags"><span class="t-tag">Backtracking</span></div></div>
<div class="trick"><div class="t-trigger">If given a</div><div class="t-cond">Tree</div><div class="t-tags"><span class="t-tag">DFS</span><span class="t-tag">BFS</span></div></div>
<div class="trick"><div class="t-trigger">If given a</div><div class="t-cond">Graph</div><div class="t-tags"><span class="t-tag">DFS</span><span class="t-tag">BFS</span></div></div>
<div class="trick"><div class="t-trigger">If given a</div><div class="t-cond">Linked List</div><div class="t-tags"><span class="t-tag">TwoPointers</span></div></div>
<div class="trick"><div class="t-trigger">If recursion is</div><div class="t-cond">Not Allowed</div><div class="t-tags"><span class="t-tag">Stack</span></div></div>
<div class="trick"><div class="t-trigger">If must solve</div><div class="t-cond">In-place</div><div class="t-tags"><span class="t-tag">SwapValues</span><span class="t-tag">MultiPointer</span></div></div>
<div class="trick"><div class="t-trigger">If max or min</div><div class="t-cond">Subarray or Subset</div><div class="t-tags"><span class="t-tag">DP</span></div></div>
<div class="trick"><div class="t-trigger">If top or least</div><div class="t-cond">K Items</div><div class="t-tags"><span class="t-tag">Heap</span><span class="t-tag">QuickSelect</span></div></div>
<div class="trick"><div class="t-trigger">If asked for</div><div class="t-cond">Common Strings</div><div class="t-tags"><span class="t-tag">Map</span><span class="t-tag">Trie</span></div></div>
<div class="trick"><div class="t-trigger">Otherwise O(1) space</div><div class="t-cond">Map or Set</div><div class="t-tags"><span class="t-tag">O(n) time</span><span class="t-tag">O(n) space</span></div></div>
<div class="trick"><div class="t-trigger">Otherwise O(n log n)</div><div class="t-cond">Sort the Input</div><div class="t-tags"><span class="t-tag">O(n log n)</span><span class="t-tag">O(1) space</span></div></div>
</div>
<h3 style="font-size:0.82rem; font-weight:800; text-transform:uppercase; letter-spacing:0.05em; color:var(--ink2); margin-bottom:14px;">Keywords in the problem that hint at which algorithm to use</h3>
<div class="patterns-grid" style="margin-bottom:32px;">
<div class="pat-card"><div class="pat-algo">Greedy</div><ul class="pat-list"><li>"minimum number of operations"</li><li>"choose best option at each step"</li></ul></div>
<div class="pat-card"><div class="pat-algo">Dynamic Programming</div><ul class="pat-list"><li>"maximum sum"</li><li>"minimum cost"</li><li>"number of ways"</li><li>"subsequence"</li></ul></div>
<div class="pat-card"><div class="pat-algo">Sliding Window</div><ul class="pat-list"><li>"longest substring"</li><li>"subarray with..."</li></ul></div>
<div class="pat-card"><div class="pat-algo">Binary Search</div><ul class="pat-list"><li>"kth smallest"</li><li>"search in sorted"</li><li>"minimize the maximum"</li></ul></div>
<div class="pat-card"><div class="pat-algo">Graph Algorithms</div><ul class="pat-list"><li>"network"</li><li>"connections"</li><li>"paths"</li></ul></div>
</div>
<h3 style="font-size:0.82rem; font-weight:800; text-transform:uppercase; letter-spacing:0.05em; color:var(--ink2); margin-bottom:14px;">How to approach any DSA question</h3>
<div class="approach-list">
<div class="approach-step"><div class="a-num">1</div><div class="a-text"><strong>Read the constraints.</strong> Figure out if the expected solution is O(n), O(n log n), or O(1).</div></div>
<div class="approach-step"><div class="a-num">2</div><div class="a-text"><strong>Look for keywords</strong> that point to a known pattern (see the table above).</div></div>
<div class="approach-step"><div class="a-num">3</div><div class="a-text"><strong>See if this reduces</strong> to a known template you have already solved before.</div></div>
<div class="approach-step"><div class="a-num">4</div><div class="a-text"><strong>Break it into smaller parts</strong> and check your logic against the sample test cases.</div></div>
<div class="approach-step"><div class="a-num">5</div><div class="a-text"><strong>Start with brute force.</strong> Get something working first. Then optimise step by step.</div></div>
<div class="approach-step"><div class="a-num">6</div><div class="a-text"><strong>Check edge cases</strong> like empty input, single element, all negatives, and large values.</div></div>
</div>
<div class="emerg">
<h4>Emergency Tips - when you are stuck</h4>
<ul>
<li>If everything fails, try HashMap. It works more often than you think.</li>
<li>Start with brute force first. Get something that works, then make it faster.</li>
<li>If brute force is O(n squared), think about how to get O(n log n) or O(n).</li>
<li>Draw the problem on paper. Visualise what is happening step by step.</li>
<li>Trace through your code manually with a sample input before submitting.</li>
</ul>
</div>
</div>