-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.html
578 lines (553 loc) · 20.8 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Prepare for software engineering interviews with our extensive collection of LeetCode questions categorized by company. Access coding challenges and solutions tailored for interviews at top tech companies like Google, Amazon, Facebook, Apple, Netflix, and more."
/>
<meta
name="keywords"
content="LeetCode, LeetCode questions by company, coding interview prep, software engineering interview, FAANG interview questions, top tech companies interview prep, Google interview questions, Amazon interview questions, Facebook interview questions, Apple interview questions, Netflix interview questions, Microsoft interview questions, algorithm problems, data structure questions, coding practice, interview guide, technical interviews, problem-solving, software developer interview prep, SDE interviews, tech job preparation, coding challenge solutions, computer science interviews, tech hiring"
/>
<meta name="author" content="Farneet Singh" />
<meta name="robots" content="index, follow" />
<meta
property="og:title"
content="LeetCode Company-Wise Interview Questions and Solutions"
/>
<meta
property="og:description"
content="Access categorized LeetCode interview questions for top tech companies. Optimize your preparation for software engineering roles at Google, Amazon, Facebook, Apple, and more."
/>
<meta property="og:image" content="data-science.png" />
<meta property="og:type" content="website" />
<meta
property="og:url"
content="https://company-wise-leetcode-farneet.netlify.app/"
/>
<title>LeetCode Company Questions</title>
<link
rel="shortcut icon"
href="https://img.icons8.com/?size=100&id=19293&format=png"
type="image/x-icon"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/habibmhamadi/multi-select-tag@3.0.1/dist/css/multi-select-tag.css"
/>
<script src="https://cdn.jsdelivr.net/gh/habibmhamadi/multi-select-tag@3.0.1/dist/js/multi-select-tag.js"></script>
<link
href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css"
rel="stylesheet"
/>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"
integrity="sha512-...the_CDN_link..."
crossorigin="anonymous"
/>
<link rel="stylesheet" href="style.css" />
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-adapter-date-fns"></script>
</head>
<!-- Google tag (gtag.js) -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-RFX0N9X8Y1"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-RFX0N9X8Y1");
</script>
<body class="bg-gray-900 text-white">
<div class="container mx-auto px-4">
<h1 class="text-5xl font-bold text-center mb-8 my-10 py-6">
Company-wise Leetcode Problems
</h1>
<!-- Dropdowns -->
<div
class="flex flex-wrap items-center justify-center mb-8 space-x-4 py-5"
>
<div class="relative">
<select
id="company-select"
class="select-dropdown appearance-none bg-gray-800 text-white px-4 py-2 rounded-lg focus:outline-none focus:bg-gray-700 pr-8 company-dropdown"
>
<option value="">Select a Company</option>
</select>
<i
data-feather="chevron-down"
class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400"
></i>
</div>
<div class="relative">
<select
id="duration-select"
class="select-dropdown appearance-none bg-gray-800 text-white px-4 py-2 rounded-lg focus:outline-none focus:bg-gray-700 pr-8"
>
<option value="">Select Duration</option>
</select>
<i
data-feather="chevron-down"
class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400"
></i>
</div>
<div class="relative">
<select
id="sort-select"
class="select-dropdown appearance-none bg-gray-800 text-white px-4 py-2 rounded-lg focus:outline-none focus:bg-gray-700 pr-8"
>
<option value="">Sort By</option>
<option value="difficulty-asc">Difficulty Ascending</option>
<option value="difficulty-desc">Difficulty Descending</option>
<option value="frequency-asc">Frequency Ascending</option>
<option value="frequency-desc">Frequency Descending</option>
</select>
<i
data-feather="chevron-down"
class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400"
></i>
</div>
<div class="relative">
<select
id="difficulty-filter"
class="select-dropdown appearance-none bg-gray-800 text-white px-4 py-2 rounded-lg focus:outline-none focus:bg-gray-700 pr-8"
>
<option value="">Filter by Difficulty</option>
<option value="Easy">Easy</option>
<option value="Medium">Medium</option>
<option value="Hard">Hard</option>
</select>
<i
data-feather="chevron-down"
class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400"
></i>
</div>
<div class="relative" style="display: flex">
<input
type="text"
id="id-search"
class="mt-1 block w-full pl-3 pr-12 sm:text-sm border-gray-300 rounded-md shadow-sm text-black"
placeholder="Search by Question..."
/>
<button
id="search-button"
class="ml-2 bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"
style="display: flex"
>
<i data-feather="search" class="mr-2"></i>
<span>Search</span>
</button>
</div>
<button
id="analysisBtn"
class="px-4 py-2 rounded-lg bg-purple-700 hover:bg-purple-600 text-white focus:outline-none focus:bg-purple-800 flex items-center space-x-2"
>
<i data-feather="bar-chart-2" class="mr-2"></i>
Analysis
</button>
<div class="relative">
<button
id="dropdownButton"
class="bg-pink-500 text-white px-4 py-2 rounded-lg flex items-center"
>
Add <span class="ml-2">+</span>
</button>
<div
id="dropdownMenu"
class="hidden absolute bg-gray-800 shadow-lg rounded-lg mt-2 w-48"
>
<ul>
<li
class="p-3 hover:bg-gray-600 cursor-pointer"
onclick="toggleNewEntryForm()"
>
New Entry
</li>
<li
class="p-3 hover:bg-gray-600 cursor-pointer py-3"
onclick="showSummary()"
>
Summary
</li>
</ul>
</div>
</div>
<button
id="clear-button"
class="px-4 py-2 rounded-lg bg-red-700 hover:bg-red-600 text-white focus:outline-none focus:bg-red-800 flex items-center space-x-2"
>
<i data-feather="x-circle"></i>
<span>Clear</span>
</button>
<br />
<br />
<br />
<br />
<div id="options">
<select
id="timeFrame"
class="select-dropdown appearance-none bg-gray-800 text-white px-4 py-2 rounded-lg focus:outline-none focus:bg-gray-700 pr-8"
>
<option value="week">Last 7 Days</option>
<option value="month">Last 1 Month</option>
<option value="month-wise">Month-wise</option>
</select>
</div>
<canvas id="problemsSolvedPerDay"></canvas>
<canvas id="problemsSolvedByHour"></canvas>
</div>
<!-- Company Logo and Current Selection -->
<div class="flex items-center justify-center mb-8 space-x-4">
<img
id="company-logo"
class="company-image h-16 w-16 rounded-full"
src=""
alt="Company Logo"
style="display: none"
/>
<span id="current-selection" class="text-lg font-semibold"></span>
</div>
<!-- Table Container -->
<div
id="table-container"
class="styled-table table-container overflow-x-auto"
>
<!-- Table will be dynamically generated here -->
</div>
</div>
<div id="newEntryForm" class="hidden mt-4 mx-auto w-full max-w-md">
<div class="text-white" style="font-size: 36px; text-align: center">
<span class="mx-2">New Question?</span><i class="fa-solid fa-plus"></i>
</div>
<br /><br />
<input
type="text"
id="uniqueId"
placeholder="Enter LeetCode Question ID"
class="border border-gray-300 text-black p-2 rounded-lg w-full mb-2"
/>
<select id="companies" style="color: black">
<option value="None">N/A</option>
<option value="Google">Google</option>
<option value="Microsoft">Microsoft</option>
<option value="Amazon">Amazon</option>
<option value="Facebook">Facebook</option>
<option value="Apple">Apple</option>
<option value="Netflix">Netflix</option>
<option value="Adobe">Adobe</option>
<option value="Salesforce">Salesforce</option>
<option value="Oracle">Oracle</option>
<option value="Uber">Uber</option>
<option value="LinkedIn">LinkedIn</option>
<option value="Twitter">Twitter</option>
<option value="Snapchat">Snapchat</option>
<option value="Yahoo">Yahoo</option>
<option value="Splinkr">Splinkr</option>
<option value="Atlassian">Atlassian</option>
<option value="eBay">eBay</option>
<option value="PayPal">PayPal</option>
<option value="Spotify">Spotify</option>
<option value="Airbnb">Airbnb</option>
<option value="Dropbox">Dropbox</option>
<option value="Intel">Intel</option>
<option value="IBM">IBM</option>
<option value="Tesla">Tesla</option>
<option value="Nvidia">Nvidia</option>
<option value="Samsung">Samsung</option>
<option value="Qualcomm">Qualcomm</option>
<option value="Bloomberg">Bloomberg</option>
<option value="Expedia">Expedia</option>
<option value="Lyft">Lyft</option>
<option value="Yelp">Yelp</option>
<option value="Reddit">Reddit</option>
<option value="Square">Square</option>
<option value="Visa">Visa</option>
<option value="Mastercard">Mastercard</option>
<option value="Goldman Sachs">Goldman Sachs</option>
<option value="Morgan Stanley">Morgan Stanley</option>
<option value="Cisco">Cisco</option>
<option value="Citrix">Citrix</option>
<option value="Vmware">Vmware</option>
<option value="Shopify">Shopify</option>
<option value="Pinterest">Pinterest</option>
<option value="Stripe">Stripe</option>
<option value="Robinhood">Robinhood</option>
<option value="Coinbase">Coinbase</option>
<option value="Riot Games">Riot Games</option>
<option value="Epic Games">Epic Games</option>
<option value="Palantir">Palantir</option>
<option value="Nutanix">Nutanix</option>
<option value="Slack">Slack</option>
<option value="Twitch">Twitch</option>
<option value="Fidelity Investments">Fidelity Investments</option>
<option value="Schwab">Schwab</option>
<option value="American Express">American Express</option>
<option value="Capital One">Capital One</option>
<option value="J.P. Morgan">J.P. Morgan</option>
<option value="BlackRock">BlackRock</option>
<option value="The Bank of New York Mellon">
The Bank of New York Mellon
</option>
<option value="State Street Corporation">
State Street Corporation
</option>
<option value="PNC Financial Services">PNC Financial Services</option>
<option value="TD Bank">TD Bank</option>
<option value="HSBC">HSBC</option>
<option value="Barclays">Barclays</option>
<option value="Credit Suisse">Credit Suisse</option>
<option value="Deutsche Bank">Deutsche Bank</option>
<option value="UBS">UBS</option>
<option value="Wells Fargo">Wells Fargo</option>
<option value="Zillow">Zillow</option>
<option value="Wayfair">Wayfair</option>
<option value="Akamai">Akamai</option>
<option value="MathWorks">MathWorks</option>
<option value="Duolingo">Duolingo</option>
<option value="Zynga">Zynga</option>
<option value="HubSpot">HubSpot</option>
<option value="Twilio">Twilio</option>
<option value="DocuSign">DocuSign</option>
<option value="Etsy">Etsy</option>
<option value="Groupon">Groupon</option>
<option value="DoorDash">DoorDash</option>
<option value="Grubhub">Grubhub</option>
<option value="Postmates">Postmates</option>
<option value="Instacart">Instacart</option>
<option value="Asana">Asana</option>
<option value="Blue Apron">Blue Apron</option>
<option value="Zoom">Zoom</option>
<option value="Hulu">Hulu</option>
<option value="Activision Blizzard">Activision Blizzard</option>
<option value="Electronic Arts">Electronic Arts</option>
</select>
<br />
<button
onclick="storeData()"
class="bg-green-500 text-white px-4 py-2 rounded-lg w-full"
>
Submit
</button>
</div>
<div class="flex justify-center items-center w-full">
<div id="summaryTable" class="hidden table-container overflow-x-auto">
<h1 id="summaryHeading">Summary</h1>
<div id="questionCountBanner" class="question-count-banner"></div>
<table class="w-full border-collapse border border-gray-300 mx-auto">
<thead>
<tr
style="
background-color: #0f67b1;
color: white;
border-bottom: 0px;
"
>
<th class="border border-gray-300 text-center">Unique ID</th>
<th class="border border-gray-300 text-center">
Name of the Problem
</th>
<th class="border border-gray-300 text-center">Link</th>
<th class="border border-gray-300 text-center">Difficulty</th>
<th class="border border-gray-300 text-center">Companies</th>
<th class="border border-gray-300 text-center">Date</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
<div
id="shortcut-box"
class="bg-gray-800 text-white py-8 px-6 md:px-12 lg:px-16 rounded-xl shadow-2xl max-w-xl mx-auto mt-10 relative"
>
<button
id="close-shortcut-btn"
class="absolute top-4 right-4 text-gray-400 hover:text-gray-200 text-xl font-bold"
>
×
</button>
<h2 class="text-2xl font-semibold text-center mb-4">
Keyboard Shortcuts
</h2>
<p class="text-center text-gray-400 mb-6">
Quickly navigate and use features with these shortcuts:
</p>
<div class="space-y-4">
<!-- Shortcut 1 -->
<div
class="flex items-center justify-between border-b border-gray-700 pb-2"
>
<div class="flex items-center space-x-3">
<span class="bg-gray-700 py-1 px-3 rounded-md font-mono text-sm"
>Ctrl + M</span
>
</div>
<span class="text-gray-300">Clear everything</span>
</div>
<!-- Shortcut 2 -->
<div
class="flex items-center justify-between border-b border-gray-700 pb-2"
>
<div class="flex items-center space-x-3">
<span class="bg-gray-700 py-1 px-3 rounded-md font-mono text-sm"
>/</span
>
</div>
<span class="text-gray-300">Focus on search bar</span>
</div>
<!-- Shortcut 3 -->
<div
class="flex items-center justify-between border-b border-gray-700 pb-2"
>
<div class="flex items-center space-x-3">
<span class="bg-gray-700 py-1 px-3 rounded-md font-mono text-sm"
>Enter</span
>
</div>
<span class="text-gray-300"
>Search by LeetCode question ID or name to find which companies have
asked it</span
>
</div>
</div>
</div>
<!-- <div
id="feedback-box"
class="bg-gray-800 text-white py-12 px-8 md:px-16 lg:px-20 rounded-xl shadow-2xl max-w-2xl mx-auto mt-10 relative"
>
<button
id="close-btn"
class="absolute top-4 right-4 text-gray-400 hover:text-gray-200 text-xl font-bold"
>
×
</button>
<h2 class="text-3xl font-semibold text-center mb-6">
Let me know what you think!
</h2>
<p class="text-center text-gray-400 mb-8">
Help me improve by sharing your thoughts and rating your experience.
</p>
<form action="https://formspree.io/f/xdovznoy" method="POST">
<textarea
id="suggestion"
name="message"
rows="7"
class="w-full px-4 py-3 text-gray-900 rounded-lg border border-gray-300 focus:outline-none focus:border-yellow-500 resize-none shadow-sm"
placeholder="Write your experience or suggestion here..."
required
></textarea>
<label for="rating" class="block text-lg font-medium mt-6 mb-3"
>Rate your experience:</label
>
<div class="flex justify-center space-x-3 mb-6" id="star-rating">
<input
type="radio"
id="star1"
name="rating"
value="1"
class="hidden"
/>
<label
for="star1"
title="Worst"
class="star text-4xl cursor-pointer hover:text-yellow-500"
>★</label
>
<input
type="radio"
id="star2"
name="rating"
value="2"
class="hidden"
/>
<label
for="star2"
title="Bad"
class="star text-4xl cursor-pointer hover:text-yellow-500"
>★</label
>
<input
type="radio"
id="star3"
name="rating"
value="3"
class="hidden"
/>
<label
for="star3"
title="Neutral"
class="star text-4xl cursor-pointer hover:text-yellow-500"
>★</label
>
<input
type="radio"
id="star4"
name="rating"
value="4"
class="hidden"
/>
<label
for="star4"
title="Good"
class="star text-4xl cursor-pointer hover:text-yellow-500"
>★</label
>
<input
type="radio"
id="star5"
name="rating"
value="5"
class="hidden"
/>
<label
for="star5"
title="Awesome"
class="star text-4xl cursor-pointer hover:text-yellow-500"
>★</label
>
</div>
<button
type="submit"
class="w-full bg-yellow-500 text-gray-900 font-semibold py-3 rounded-lg hover:bg-yellow-600 transition duration-300 ease-in-out shadow-md"
>
Send Feedback
</button>
</form>
</div> -->
<br />
<div>
<footer class="text-center py-4 text-white-400">
<p>
Built <i class="fas fa-tools text-white-500"></i> by
<a
href="https://github.com/farneet24"
target="_blank"
onclick="gtag('event', 'click', {'event_category': 'Link', 'event_label': 'GitHub Link'});"
class="text-yellow-500"
>
Farneet Singh
</a>
</p>
<br />
<br />
</footer>
</div>
<script src="script.js"></script>
<script>
feather.replace();
</script>
<script
src="https://kit.fontawesome.com/795c004276.js"
crossorigin="anonymous"
></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
</body>
</html>