-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
591 lines (540 loc) · 28 KB
/
Copy pathindex.html
File metadata and controls
591 lines (540 loc) · 28 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
Index-Red-Dashboard-codehelp
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Abhijay's DSA Notes</title>
<meta name="description" content="Master Data Structures & Algorithms - Free resources by Abhijay Shah with explanations, flowcharts, and code examples." />
<meta property="og:title" content="Abhijay's DSA Notes" />
<meta property="og:description" content="Free DSA learning platform: explanations, flowcharts, code examples, and videos." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://Abhijayshah.github.io/DSA-Codehelp-RED-SUPREME_4.0/" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<style>
:root {
--bg: #f7f9fc;
--text: #2C3E50;
--muted: #6b7280;
--primary: #2C3E50;
--accent: #3498DB;
--success: #27AE60;
--card: #ffffff;
--border: #e5e7eb;
}
[data-theme="dark"] {
--bg: #0f172a;
--text: #e5e7eb;
--muted: #94a3b8;
--primary: #e5e7eb;
--accent: #60a5fa;
--success: #34d399;
--card: #111827;
--border: #334155;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); text-decoration: none; }
header { position: sticky; top: 0; z-index: 50; background: var(--card); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 12px 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: Poppins, Inter; font-weight: 700; }
.brand .logo { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 6px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; color: white; font-size: 14px; font-weight: 700; white-space: nowrap; letter-spacing: 0.2px; }
.links { display: flex; gap: 16px; align-items: center; }
.links a { color: var(--text); font-weight: 600; }
.search { position: relative; }
.search input { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); }
.controls { display: flex; gap: 8px; align-items: center; }
.btn { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; }
.btn.primary { background: var(--accent); color: white; border-color: transparent; }
.layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 24px 16px; }
aside { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
main { min-height: 60vh; }
.hero { background: linear-gradient(135deg, rgba(52,152,219,0.15), rgba(39,174,96,0.15)); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin: 24px 16px; max-width: 1200px; }
.hero h1 { font-family: Poppins, Inter; margin: 0 0 8px; }
.muted { color: var(--muted); }
.stats { display: flex; gap: 16px; color: var(--muted); margin: 10px 0 16px; }
.toc h3 { margin-top: 0; }
.toc .section { margin-bottom: 10px; }
.toc details { border: 1px solid var(--border); border-radius: 8px; padding: 8px; }
.toc summary { cursor: pointer; font-weight: 600; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 20px; }
.card .header { display: flex; align-items: center; gap: 12px; }
.badge { background: var(--success); color: white; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.favorite { margin-left: auto; cursor: pointer; font-size: 20px; color: var(--muted); }
.favorite.active { color: #ef4444; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
pre[class*="language-"] { border: 1px solid var(--border); border-radius: 8px; }
.copy-btn { margin-top: 8px; }
iframe { width: 100%; min-height: 280px; border: none; border-radius: 8px; }
footer { margin-top: 40px; border-top: 1px solid var(--border); background: var(--card); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.progress { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); width: 0%; transition: width .3s ease; }
.license { color: var(--muted); }
/* PDF preview grid */
.pdf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pdf-card { display: flex; flex-direction: column; gap: 8px; }
.pdf-card h4 { margin: 0 0 4px; }
.pdf-view { width: 100%; height: 420px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); }
.pdf-actions { display: flex; gap: 8px; }
.pdf-actions .btn { flex: 1; text-align: center; }
@media (max-width: 992px) { .layout { grid-template-columns: 1fr; } aside { order: 2; } .grid-2{ grid-template-columns: 1fr; } }
@media print { header, .hero, .controls, .favorite, .toolbar { display: none !important; } .layout { grid-template-columns: 1fr; } body { background: white; color: black; } }
</style>
<!-- Prism.js for code syntax highlighting -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1/themes/prism.min.css" />
<script src="https://cdn.jsdelivr.net/npm/prismjs@1/components/prism-core.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1/components/prism-clike.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1/components/prism-c.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1/components/prism-cpp.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1/components/prism-java.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1/components/prism-python.min.js"></script>
<!-- Mermaid.js for flowcharts -->
<script src="https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.min.js"></script>
<script> mermaid.initialize({ startOnLoad: true, theme: 'default' }); </script>
</head>
<body>
<header>
<nav class="nav">
<div class="brand"><div class="logo">DSA-Guide</div> Abhijay's DSA Notes</div>
<div class="links">
<a href="#home">Home</a>
<a href="#topics">Topics</a>
<a href="#about">About</a>
<a href="#youtube">YouTube</a>
<a href="#license">License</a>
</div>
<div class="controls">
<div class="search"><input id="search" type="text" placeholder="Search topics..." aria-label="Search topics" /></div>
<button id="themeToggle" class="btn" title="Toggle theme">Toggle Theme</button>
<a class="btn" href="https://github.com/Abhijayshah/DSA-Codehelp-RED-SUPREME_4.0" target="_blank" rel="noopener">View on GitHub</a>
</div>
</nav>
</header>
<section id="home" class="hero">
<h1>Master Data Structures & Algorithms - Free Resources for Everyone</h1>
<p class="muted">Learn with clear explanations, visual flowcharts, and code examples in C++, Java, and Python.</p>
<div class="stats">
<div>Topics: <strong id="topicsCount">1</strong></div>
<div>Videos: <strong>Playlist</strong></div>
</div>
<div class="controls">
<a href="#topics" class="btn primary">Start Learning</a>
<a href="https://github.com/Abhijayshah/DSA-Codehelp-RED-SUPREME_4.0" class="btn" target="_blank" rel="noopener">View on GitHub</a>
</div>
</section>
<div class="layout">
<aside class="toc">
<h3>Table of Contents</h3>
<!-- Introduction to DSA Master Course [Supreme Batch] -->
<div class="section">
<details open>
<summary>Introduction to Data Structures & Algorithms Master Course [Supreme Batch]</summary>
<ul>
<li><a href="topics/template.html?topic=intro-welcome" target="topicFrame" rel="noopener">Welcome to DSA - RED</a></li>
<li><a href="topics/template.html?topic=intro-orientation" target="topicFrame" rel="noopener">Orientation Session - 31st March</a></li>
</ul>
</details>
</div>
<!-- Basics of Programming - Language + Maths [Live Lectures] -->
<div class="section">
<details>
<summary>Basics of Programming - Language + Maths [Live Lectures]</summary>
<ul>
<li><a href="topics/template.html?topic=basics-l1" target="topicFrame" rel="noopener">L1-Basics of Programming</a></li>
<li><a href="topics/template.html?topic=basics-l2" target="topicFrame" rel="noopener">L2-Basics of Programming</a></li>
<li><a href="topics/template.html?topic=basics-l3" target="topicFrame" rel="noopener">L3-Basics of Programming</a></li>
<li><a href="topics/template.html?topic=basics-dc" target="topicFrame" rel="noopener">DC-Basics of Programming</a></li>
<li><a href="topics/template.html?topic=basics-ms" target="topicFrame" rel="noopener">MS-Basics of Programming</a></li>
<li><a href="#s1-pdfs">PDF Previews</a></li>
</ul>
</details>
</div>
<!-- Pattern Printing [Live Lectures] -->
<div class="section">
<details>
<summary>Pattern Printing [Live Lectures]</summary>
<ul>
<li><a href="topics/template.html?topic=patterns-l1" target="topicFrame" rel="noopener">L1-Pattern Printing</a></li>
<li><a href="topics/template.html?topic=patterns-l2" target="topicFrame" rel="noopener">L2-Pattern Printing</a></li>
<li><a href="topics/template.html?topic=patterns-l3" target="topicFrame" rel="noopener">L3-Pattern Printing</a></li>
<li><a href="topics/template.html?topic=patterns-ds" target="topicFrame" rel="noopener">DS-Pattern Printing</a></li>
<li><a href="topics/template.html?topic=patterns-ms" target="topicFrame" rel="noopener">MS-Pattern Printing</a></li>
</ul>
</details>
</div>
<!-- Arrays [Live Lectures] -->
<div class="section">
<details>
<summary>Arrays [Live Lectures]</summary>
<ul>
<li><a href="topics/template.html?topic=arrays-basic-maths" target="topicFrame" rel="noopener">L1-Basic Maths Problems</a></li>
<li><a href="topics/template.html?topic=arrays-l1" target="topicFrame" rel="noopener">L1-Arrays</a></li>
<li><a href="topics/template.html?topic=arrays-ds-maths" target="topicFrame" rel="noopener">DS-Maths + Array Basics</a></li>
<li><a href="topics/template.html?topic=arrays-ms-maths" target="topicFrame" rel="noopener">MS-Maths Basics</a></li>
<li><a href="topics/template.html?topic=arrays-l2" target="topicFrame" rel="noopener">L2-Arrays</a></li>
<li><a href="topics/template.html?topic=arrays-l3" target="topicFrame" rel="noopener">L3-Arrays</a></li>
<li><a href="topics/template.html?topic=arrays-l4" target="topicFrame" rel="noopener">L4-Arrays</a></li>
<li><a href="topics/template.html?topic=arrays-ds" target="topicFrame" rel="noopener">DS-Arrays</a></li>
<li><a href="topics/template.html?topic=arrays-ms" target="topicFrame" rel="noopener">MS-Arrays</a></li>
</ul>
</details>
</div>
<!-- Searching & Sorting [Live Lectures] -->
<div class="section">
<details>
<summary>Searching & Sorting [Live Lectures]</summary>
<ul>
<li><a href="topics/template.html?topic=sns-l1" target="topicFrame" rel="noopener">L1-Binary Search</a></li>
<li><a href="topics/template.html?topic=sns-l2" target="topicFrame" rel="noopener">L2-Binary Search</a></li>
<li><a href="topics/template.html?topic=sns-l3" target="topicFrame" rel="noopener">L3-Binary Search</a></li>
<li><a href="topics/template.html?topic=sns-ds" target="topicFrame" rel="noopener">DS-Searching & Sorting</a></li>
<li><a href="topics/template.html?topic=sns-ms" target="topicFrame" rel="noopener">MS-SnS</a></li>
</ul>
</details>
</div>
<!-- Strings [Live Lectures] -->
<div class="section">
<details>
<summary>Strings [Live Lectures]</summary>
<ul>
<li><a href="topics/template.html?topic=strings-l1" target="topicFrame" rel="noopener">L1-Strings</a></li>
<li><a href="topics/template.html?topic=strings-l2" target="topicFrame" rel="noopener">L2-Strings</a></li>
<li><a href="topics/template.html?topic=strings-l3" target="topicFrame" rel="noopener">L3-Strings</a></li>
<li><a href="topics/template.html?topic=strings-ds" target="topicFrame" rel="noopener">DS: Strings</a></li>
<li><a href="topics/template.html?topic=strings-ms" target="topicFrame" rel="noopener">MS: Strings</a></li>
</ul>
</details>
</div>
<!-- Needed Maths & Pointers [Live Lectures] -->
<div class="section">
<details>
<summary>Needed Maths & Pointers [Live Lectures]</summary>
<ul>
<li><a href="#pointers-l1">L1-Pointers</a></li>
<li><a href="#pointers-l2">L2-Pointers</a></li>
</ul>
</details>
</div>
<!-- Recursion [Live Lectures] -->
<div class="section">
<details>
<summary>Recursion [Live Lectures]</summary>
<ul>
<li><a href="#recursion-l1">L1-Recursion</a></li>
<li><a href="#recursion-l2">L2-Recursion</a></li>
<li><a href="#recursion-l3">L3-Recursion</a></li>
<li><a href="#recursion-ds">DS: Recursion</a></li>
</ul>
</details>
</div>
<!-- Backtracking [Live Lectures] -->
<div class="section">
<details>
<summary>Backtracking [Live Lectures]</summary>
<ul>
<li><a href="#bt-l1">L1 - BT and DnC</a></li>
<li><a href="#bt-l2">L2 - BT and DnC</a></li>
<li><a href="#bt-l3">L3 - BT and DnC</a></li>
<li><a href="#bt-l4">L4 - BT and DnC</a></li>
<li><a href="#bt-ds">DS: DnC</a></li>
<li><a href="#bt-ms">MS: DnC</a></li>
</ul>
</details>
</div>
<!-- Linked Lists [Live Lectures] -->
<div class="section">
<details>
<summary>Linked Lists [Live Lectures]</summary>
<ul>
<li><a href="#ll-l1">L1 - Linked Lists</a></li>
<li><a href="#ll-l3">L3 - Linked Lists</a></li>
<li><a href="#ll-l4">L4 - Linked Lists</a></li>
<li><a href="#ll-ds">DS: LL</a></li>
<li><a href="#ll-ms">MS: LL</a></li>
</ul>
</details>
</div>
<!-- Stacks [Live Lectures] -->
<div class="section">
<details>
<summary>Stacks [Live Lectures]</summary>
<ul>
<li><a href="#stacks-l1">L1 - Stacks</a></li>
<li><a href="#stacks-l2">L2 - Stacks</a></li>
<li><a href="#stacks-ds">DS: Stacks</a></li>
<li><a href="#stacks-ms">MS: Stacks</a></li>
</ul>
</details>
</div>
<!-- Queues [Live Lectures] -->
<div class="section">
<details>
<summary>Queues [Live Lectures]</summary>
<ul>
<li><a href="#queues-l1">L1 - Queues</a></li>
<li><a href="#queues-l2">L2 - Queues</a></li>
<li><a href="#queues-l3">L3 - Queues</a></li>
<li><a href="#queues-ds">DS: Queue</a></li>
</ul>
</details>
</div>
<!-- Generic or Binary Trees [Live Lectures] -->
<div class="section">
<details>
<summary>Generic or Binary Trees [Live Lectures]</summary>
<ul>
<li><a href="#trees-l1">L1 - Trees</a></li>
<li><a href="#trees-l2">L2 - Trees</a></li>
<li><a href="#trees-l3">L3 - Trees</a></li>
<li><a href="#trees-ds">DS: Trees</a></li>
<li><a href="#trees-ms">MS: Trees</a></li>
</ul>
</details>
</div>
<!-- Binary Search Trees [Live Lectures] -->
<div class="section">
<details>
<summary>Binary Search Trees [Live Lectures]</summary>
<ul>
<li><a href="#bst-l1">L1 - BST</a></li>
<li><a href="#bst-l2">L2 - BST</a></li>
<li><a href="#bst-l3">L3 - BST</a></li>
<li><a href="#bst-ds">DS - BST</a></li>
<li><a href="#bst-ms">MS: BST</a></li>
</ul>
</details>
</div>
<!-- Heaps [Live Lectures] -->
<div class="section">
<details>
<summary>Heaps [Live Lectures]</summary>
<ul>
<li><a href="#heaps-l1">L1 - Heaps</a></li>
<li><a href="#heaps-l2">L2 - Heaps</a></li>
<li><a href="#heaps-l3">L3 - Heaps</a></li>
<li><a href="#heaps-ds">DS: Heap</a></li>
<li><a href="#heaps-ms">MS: Heap</a></li>
</ul>
</details>
</div>
<!-- Tries [Live Lectures] -->
<div class="section">
<details>
<summary>Tries [Live Lectures]</summary>
<ul>
<li><a href="#tries-l2">L2 - Maps n Tries</a></li>
<li><a href="#tries-l3">L3 - Maps n Tries</a></li>
<li><a href="#tries-ds">DS: Maps n Tries</a></li>
<li><a href="#tries-ms">MS: Maps n Tries</a></li>
</ul>
</details>
</div>
<!-- Dynamic Programming [Live Lectures] -->
<div class="section">
<details>
<summary>Dynamic Programming [Live Lectures]</summary>
<ul>
<li><a href="#dp-ms">MS: DP</a></li>
<li><a href="#dp-l1">L1 - DP</a></li>
<li><a href="#dp-l2">L2 - DP</a></li>
<li><a href="#dp-l3">L3 - DP</a></li>
<li><a href="#dp-l4">L4 - DP</a></li>
<li><a href="#dp-ds-l1">DS: DP L1</a></li>
<li><a href="#dp-ds-l2">DS: DP L2</a></li>
</ul>
</details>
</div>
<!-- Graphs [Live Lectures] -->
<div class="section">
<details>
<summary>Graphs [Live Lectures]</summary>
<ul>
<li><a href="#graphs-l1">L1 - Graphs</a></li>
<li><a href="#graphs-l2">L2 - Graphs</a></li>
<li><a href="#graphs-l3">L3 - Graphs</a></li>
<li><a href="#graphs-l8">L8 - Graphs</a></li>
<li><a href="#graphs-l9">L9 - Graphs</a></li>
<li><a href="#graphs-ds-concepts">DS: Graphs [Concepts]</a></li>
<li><a href="#graphs-l11">L11 - Graphs</a></li>
<li><a href="#graphs-ds-2">DS: Graphs - 2</a></li>
<li><a href="#graphs-ms">MS: Graph</a></li>
</ul>
</details>
</div>
<!-- Miscellaneous [LIVE Sessions] -->
<div class="section">
<details>
<summary>Miscellaneous [LIVE Sessions]</summary>
<ul>
<li><a href="#misc-last-class">The LAST LIVE Class</a></li>
</ul>
</details>
</div>
<div class="progress" title="Progress">
<div id="progressBar"></div>
</div>
</aside>
<main id="topics" aria-live="polite">
<!-- Dynamic right-side content: topic pages load here via iframe -->
<iframe id="topicFrame" name="topicFrame" src="topics/template.html?topic=intro-welcome" title="Topic Content" style="width:100%; min-height:75vh; border:none; border-radius:8px;"></iframe>
<article id="s2-patterns" class="card topic" data-title="Pattern Printing - Overview" data-difficulty="Beginner">
<div class="header">
<h2>Pattern Printing - Overview</h2>
<span class="badge">Beginner</span>
<div class="favorite" role="button" aria-label="Bookmark" title="Bookmark">❤</div>
</div>
<p class="muted">Content coming soon.</p>
</article>
<article id="s4-search-sort" class="card topic" data-title="Searching & Sorting - Overview" data-difficulty="Beginner">
<div class="header">
<h2>Searching & Sorting - Overview</h2>
<span class="badge">Beginner</span>
<div class="favorite" role="button" aria-label="Bookmark" title="Bookmark">❤</div>
</div>
<p class="muted">Content coming soon.</p>
</article>
<article id="s5-strings" class="card topic" data-title="Strings - Overview" data-difficulty="Beginner">
<div class="header">
<h2>Strings - Overview</h2>
<span class="badge">Beginner</span>
<div class="favorite" role="button" aria-label="Bookmark" title="Bookmark">❤</div>
</div>
<p class="muted">Content coming soon.</p>
</article>
<article id="s6-maths-pointers" class="card topic" data-title="Needed Maths & Pointers - Overview" data-difficulty="Beginner">
<div class="header">
<h2>Needed Maths & Pointers - Overview</h2>
<span class="badge">Beginner</span>
<div class="favorite" role="button" aria-label="Bookmark" title="Bookmark">❤</div>
</div>
<p class="muted">Content coming soon.</p>
</article>
</main>
</div>
<section id="about" class="hero" aria-label="About">
<h2>About</h2>
<p>
This site is inspired by W3Schools and GeeksforGeeks, built as a free resource to help you learn DSA.
It includes flowcharts, code examples, and practice problems, with a focus on clarity and practicality.
</p>
</section>
<section id="youtube" class="hero" aria-label="YouTube">
<h2>YouTube Channel</h2>
<p>Follow the channel <strong>@abhijayshah74</strong> (Abhijay Shah). Playlist: "Revise the Redesigned DSA-Codehelp-RED-SUPREME_4.0"</p>
<div class="controls">
<a class="btn primary" href="https://www.youtube.com/@abhijayshah74" target="_blank" rel="noopener">Visit Channel</a>
</div>
<div>
https://abhijayshah.github.io/dsa/
📱 CONNECT WITH ME:
YouTube Channel Co-Founder (catcatchcode : abhijayshah.online): https://www.youtube.com/channel/UCX8i_v1eL9VuLWG1fKwEXhw
Unofficial Instagram: https://www.instagram.com/abhijayshah74/
LinkedIn: https://www.linkedin.com/in/abhijayshah/
Github : - https://github.com/Abhijayshah
FaceBook : https://www.facebook.com/abhijayshah74
Twitter : https://x.com/abhijayshah74
Reddit : https://www.reddit.com/user/Zestyclose-Pass-9556/
Mastodon: https://mastodon.social/@Abhijayshah
🌐 💼 My Work & Portfolio ➤ : https://abhijayshah.online/
🌐 Website (For Career(CAT) ): https://catcatchcode.online/
🌐Website(For Soul (Satsang)): https://satsangvachansatsangseva.online/
</div>
</section>
<section id="license" class="hero" aria-label="License">
<h2>License</h2>
<p class="license">© 2025 Abhijay Shah - All Rights Reserved</p>
<div class="controls">
<a class="btn" href="LICENSE" target="_blank" rel="noopener">View License File</a>
<a class="btn" href="CONTRIBUTING.md" target="_blank" rel="noopener">Contributing Guide</a>
<a class="btn" href="CODE_OF_CONDUCT.md" target="_blank" rel="noopener">Code of Conduct</a>
</div>
</section>
<footer>
<div class="footer-inner">
<div>
<span class="license">© 2025 Abhijay Shah</span>
· <a href="https://github.com/Abhijayshah/DSA-Codehelp-RED-SUPREME_4.0" target="_blank" rel="noopener">GitHub Repository</a>
· <a href="https://www.youtube.com/@abhijayshah74" target="_blank" rel="noopener">YouTube</a>
</div>
<div>
<a class="btn" href="https://github.com/Abhijayshah/DSA-Codehelp-RED-SUPREME_4.0" target="_blank" rel="noopener">⭐ Star on GitHub</a>
</div>
</div>
</footer>
<script>
// Smooth scroll for nav links
document.querySelectorAll('a[href^="#"]').forEach(a => {
a.addEventListener('click', e => {
const id = a.getAttribute('href').slice(1);
const el = document.getElementById(id);
if (el) { e.preventDefault(); el.scrollIntoView({ behavior: 'smooth' }); }
});
});
// Theme toggle
const themeToggle = document.getElementById('themeToggle');
const root = document.documentElement;
const savedTheme = localStorage.getItem('theme');
if (savedTheme) root.setAttribute('data-theme', savedTheme);
themeToggle.addEventListener('click', () => {
const next = root.getAttribute('data-theme') === 'dark' ? 'light' : 'dark';
root.setAttribute('data-theme', next);
localStorage.setItem('theme', next);
});
// Search filter
const search = document.getElementById('search');
const topics = Array.from(document.querySelectorAll('.topic'));
// Initialize topics count
document.getElementById('topicsCount').textContent = topics.length;
search.addEventListener('input', () => {
const q = search.value.toLowerCase();
let visible = 0;
topics.forEach(card => {
const title = card.dataset.title.toLowerCase();
const diff = card.dataset.difficulty.toLowerCase();
const match = title.includes(q) || diff.includes(q);
card.style.display = match ? '' : 'none';
if (match) visible++;
});
document.getElementById('topicsCount').textContent = visible;
});
// Bookmark/favorites
document.querySelectorAll('.favorite').forEach(f => {
const key = 'fav-' + f.closest('.topic').id;
if (localStorage.getItem(key) === '1') f.classList.add('active');
f.addEventListener('click', () => {
f.classList.toggle('active');
localStorage.setItem(key, f.classList.contains('active') ? '1' : '0');
});
});
// Progress tracker
const progressBar = document.getElementById('progressBar');
const topicsKeys = ['topic-arrays-intro'];
const updateProgress = () => {
const completed = topicsKeys.filter(k => localStorage.getItem('complete-' + k) === '1').length;
const pct = Math.round((completed / topicsKeys.length) * 100);
progressBar.style.width = pct + '%';
};
updateProgress();
document.getElementById('markComplete-arrays').addEventListener('click', () => {
localStorage.setItem('complete-topic-arrays-intro', '1');
updateProgress();
});
// Copy buttons
document.querySelectorAll('.copy-btn').forEach(btn => {
btn.addEventListener('click', () => {
const lang = btn.dataset.target;
const codeEl = btn.previousElementSibling.querySelector('code');
navigator.clipboard.writeText(codeEl.textContent).then(() => {
btn.textContent = 'Copied!'; setTimeout(() => btn.textContent = 'Copy ' + (lang === 'cpp' ? 'C++' : lang.charAt(0).toUpperCase() + lang.slice(1)), 1200);
});
});
});
// Last updated timestamp
document.getElementById('updated-arrays').textContent = new Date().toLocaleString();
</script>
</body>
</html>