-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContribute1.html
More file actions
235 lines (198 loc) · 8.4 KB
/
Contribute1.html
File metadata and controls
235 lines (198 loc) · 8.4 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PDSA - Week 1 Summary</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Prism.js CSS for Syntax Highlighting -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css" rel="stylesheet">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Roboto', Arial, sans-serif;
line-height: 1.6;
background-color: #f9f9f9;
color: #333;
margin: 0;
padding: 0;
}
.content-container {
width: min(95%, 1100px);
margin: 20px auto;
padding: 20px;
background: #fff;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
h1, h2, h3 {
color: #1abc9c;
}
h1 {
font-size: 2.5rem;
margin-bottom: 20px;
}
h2 {
font-size: 2rem;
margin-top: 30px;
margin-bottom: 15px;
}
h3 {
font-size: 1.75rem;
margin-top: 20px;
margin-bottom: 10px;
}
pre {
background: #fff;
border: 1px solid #ddd;
border-radius: 5px;
overflow-x: auto;
padding: 15px;
}
code {
font-family: 'Courier New', Courier, monospace;
}
.topics-toolbar {
width: min(95%, 1100px);
margin: 20px auto 0;
display: flex;
justify-content: flex-end;
}
.topics-toolbar button {
border: none;
border-radius: 6px;
background: #1abc9c;
color: #fff;
padding: 8px 12px;
cursor: pointer;
font-size: 14px;
}
.topics-container {
width: min(95%, 1100px);
margin: 10px auto 0;
padding: 16px 20px;
background: #fff;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.topics-container.hidden {
display: none;
}
.topics-container h2 {
margin: 0 0 10px;
font-size: 1.5rem;
}
#topicsList {
margin: 0;
padding-left: 20px;
}
#topicsList li {
margin: 4px 0;
}
#topicsList li.topic-subitem {
margin-left: 16px;
}
#topicsList a {
color: #1abc9c;
text-decoration: none;
}
#topicsList a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="topics-toolbar">
<button id="toggleTopicsButton" type="button" onclick="toggleTopics()">Hide Sidebar</button>
</div>
<div id="topicsContainer" class="topics-container">
<h2>Sidebar</h2>
<ul id="topicsList"></ul>
</div>
<div class="content-container" style="background-color: rgb(233, 241, 238);">
<br>
<br>
<h2>Let’s Start Competitive Programming!</h2>
<p>As you embark on your journey through the <strong>Programming, Data Structures, and Algorithms (PDSA)</strong> course, it’s time to complement your learning with something equally transformative—<strong>competitive problem solving</strong>!</p>
<p>Why wait to finish the course when you can apply your knowledge as you learn? Here’s why diving into competitive programming alongside PDSA is a game-changer:</p>
<ol>
<li><strong>Reinforce Your Learning</strong>: Competitive problem-solving challenges allow you to immediately apply theoretical concepts, solidifying your understanding and helping you grasp nuances.</li>
<li><strong>Build Strong Foundations</strong>: Facing diverse problems ensures you master the fundamentals of algorithms and data structures, turning theory into practice.</li>
<li><strong>Develop Critical Thinking</strong>: Competitive programming teaches you to break down complex problems, analyze constraints, and devise optimal solutions—a skill essential for coding and beyond.</li>
<li><strong>Stay Motivated</strong>: Each problem you solve is a small victory, keeping you energized and motivated throughout your PDSA journey.</li>
<li><strong>Discover Your Potential</strong>: The challenges will push your boundaries and help you realize just how capable and creative you can be.</li>
</ol>
<p>Start small—tackle beginner-level problems and build momentum as your PDSA knowledge grows. The synergy between the course material and competitive problem solving will accelerate your growth and prepare you for real-world challenges.</p>
<p><strong>"You don’t have to be great to start, but you have to start to be great."</strong></p>
<p><strong>Vikrant Mehta (21f3001348)</strong>, a Teaching Assistant (TA) for the PDSA course in the May and September 2024 terms, has created an excellent resource for beginners to get started with competitive programming. The resource is organized week-by-week, aligned with PDSA topics, making it easy to follow and progressively build your skills.</p>
<p>You can access it using the following link:
👉 <a href='https://vikrantmehta123.github.io/dsa/' target='_blank' class='url'>https://vikrantmehta123.github.io/dsa/</a></p>
</div>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
<!-- Prism.js JS for Syntax Highlighting -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-python.min.js"></script>
<script>
function slugifyHeading(text) {
return text
.toLowerCase()
.replace(/[^a-z0-9\s-]/g, '')
.trim()
.replace(/\s+/g, '-')
.replace(/-+/g, '-');
}
function buildTopics() {
const topicsList = document.getElementById('topicsList');
if (!topicsList) {
return;
}
const headings = document.querySelectorAll('.content-container h1, .content-container h2, .content-container h3');
topicsList.innerHTML = '';
headings.forEach((heading, index) => {
const title = heading.textContent.trim();
if (!title) {
return;
}
if (!heading.id) {
const baseId = slugifyHeading(title) || `section-${index + 1}`;
let candidateId = baseId;
let suffix = 2;
while (document.getElementById(candidateId)) {
candidateId = `${baseId}-${suffix}`;
suffix += 1;
}
heading.id = candidateId;
}
const listItem = document.createElement('li');
if (heading.tagName === 'H3') {
listItem.classList.add('topic-subitem');
}
const link = document.createElement('a');
link.href = `#${heading.id}`;
link.textContent = title;
listItem.appendChild(link);
topicsList.appendChild(listItem);
});
if (!topicsList.children.length) {
const emptyItem = document.createElement('li');
emptyItem.textContent = 'No topics available.';
topicsList.appendChild(emptyItem);
}
}
function toggleTopics() {
const topicsContainer = document.getElementById('topicsContainer');
const toggleButton = document.getElementById('toggleTopicsButton');
if (!topicsContainer || !toggleButton) {
return;
}
const hidden = topicsContainer.classList.toggle('hidden');
toggleButton.textContent = hidden ? 'Show Sidebar' : 'Hide Sidebar';
}
document.addEventListener('DOMContentLoaded', buildTopics);
</script>
<script src="/assets/sidebar-toc.js"></script>
</body>
</html>