forked from prepguides/prepguides.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalgorithms.html
More file actions
206 lines (180 loc) · 5.38 KB
/
algorithms.html
File metadata and controls
206 lines (180 loc) · 5.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Algorithms - PrepGuides.dev</title>
<meta name="description" content="Interactive algorithm visualizations for technical interview preparation">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary: #8b5cf6;
--secondary: #a855f7;
--success: #10b981;
--warning: #f59e0b;
--danger: #ef4444;
--dark: #1f2937;
--light: #f3f4f6;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 20px;
}
.main-container {
max-width: 1400px;
margin: 0 auto;
background: rgba(255, 255, 255, 0.98);
border-radius: 24px;
overflow: hidden;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
header {
background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
color: white;
padding: 40px;
text-align: center;
position: relative;
overflow: hidden;
}
.back-button {
position: absolute;
top: 20px;
left: 20px;
background: rgba(255, 255, 255, 0.2);
color: white;
border: none;
padding: 10px 20px;
border-radius: 8px;
cursor: pointer;
text-decoration: none;
font-weight: 500;
transition: all 0.3s ease;
}
.back-button:hover {
background: rgba(255, 255, 255, 0.3);
transform: translateY(-2px);
}
h1 {
font-size: 3rem;
font-weight: 800;
margin-bottom: 1rem;
}
.subtitle {
font-size: 1.2rem;
opacity: 0.9;
}
.content {
padding: 40px;
}
.algorithms-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 30px;
margin-bottom: 40px;
}
.algorithm-card {
background: white;
border-radius: 16px;
padding: 30px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
border: 1px solid #e5e7eb;
transition: all 0.3s ease;
cursor: pointer;
}
.algorithm-card:hover {
transform: translateY(-4px);
box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}
.algorithm-title {
font-size: 1.5rem;
font-weight: 700;
color: var(--dark);
margin-bottom: 10px;
}
.algorithm-description {
color: #6b7280;
margin-bottom: 20px;
line-height: 1.6;
}
.algorithm-features {
list-style: none;
margin-bottom: 20px;
}
.algorithm-features li {
padding: 5px 0;
color: #4b5563;
position: relative;
padding-left: 20px;
}
.algorithm-features li::before {
content: '✓';
position: absolute;
left: 0;
color: var(--primary);
font-weight: bold;
}
.access-button {
background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
color: white;
border: none;
padding: 12px 24px;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
text-decoration: none;
display: inline-block;
transition: all 0.3s ease;
}
.access-button:hover {
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}
.coming-soon {
background: #f8fafc;
border: 2px dashed #cbd5e1;
border-radius: 16px;
padding: 40px;
text-align: center;
color: #64748b;
}
.coming-soon h3 {
font-size: 1.5rem;
margin-bottom: 10px;
color: var(--dark);
}
@media (max-width: 768px) {
h1 {
font-size: 2rem;
}
.content {
padding: 20px;
}
.algorithms-grid {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
<div class="main-container">
<header>
<a href="index.html" class="back-button">← Back to Home</a>
<h1>🔢 Algorithms</h1>
<p class="subtitle">Interactive algorithm visualizations for technical interview preparation</p>
</header>
<div class="content">
<div class="algorithms-grid">
<!-- Algorithm cards will be dynamically generated from base.json -->
</div>
</div>
</div>
<!-- Dynamic Card Generation -->
<script src="algorithms/code/card-generator.js"></script>
</body>
</html>