Skip to content

Commit a6dc4ec

Browse files
committed
debug code and update and also, added video content in DSA
1 parent bbf26c8 commit a6dc4ec

17 files changed

+214
-477
lines changed

dsa-solutions/lc-solutions/0000-0099/0001-two-sum.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
id: two-sum
2+
id: 01-two-sum
33
title: Two Sum Solution
44
sidebar_label: 0001 - Two Sum
55
tags:
@@ -577,8 +577,14 @@ The hash table approach is the most efficient and is recommended for large input
577577

578578
:::
579579

580-
## References
581580

582-
- **LeetCode Problem:** [LeetCode Problem](https://leetcode.com/problems/two-sum/)
583-
- **Solution Link:** [Two Sum Solution on LeetCode](https://leetcode.com/problems/two-sum/solutions/4958021/two-sum-problem-solution-using-hash-table-ts-js-java-py-cpp-recommended-solutions)
584-
- **Authors LeetCode Profile:** [Ajay Dhangar](https://leetcode.com/ajaydhangar49/)
581+
582+
---
583+
584+
<h2>Authors:</h2>
585+
586+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
587+
{['ajay-dhangar'].map(username => (
588+
<Author key={username} username={username} />
589+
))}
590+
</div>

dsa-solutions/lc-solutions/0000-0099/0002-Add-Two-Numbers.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
id: add-two-numbers
2+
id: 02-add-two-numbers
33
title: Add Two Numbers Solution
44
sidebar_label: 0002 - Add Two Numbers
55
tags:
@@ -362,8 +362,12 @@ Output: [8,9,9,9,0,0,0,1]
362362

363363
:::
364364

365-
## Resources
365+
---
366+
367+
<h2>Authors:</h2>
366368

367-
- **LeetCode Problem:** [Add Two Numbers Problem](https://leetcode.com/problems/add-two-numbers/)
368-
- **Solution Link:** [Add Two Numbers Solution on LeetCode](https://leetcode.com/problems/add-two-numbers/solutions/3368572/easy-and-understanding-solution-with-intuition-approach-complexity-and-codes)
369-
- **Authors LeetCode Profile:** [Ajay Dhangar](https://leetcode.com/ajaydhangar49/), [Amruta Jayanti](https://leetcode.com/u/user7669cY/)
369+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
370+
{['ajay-dhangar'].map(username => (
371+
<Author key={username} username={username} />
372+
))}
373+
</div>

dsa-solutions/lc-solutions/0000-0099/0003-Longest-Substring-Without-Repeating-Characters.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
id: longest-substrings-without-repeating-characters
2+
id: 03-longest-substrings-without-repeating-characters
33
title: Longest Substring Without Repeating Characters (LeetCode)
44
sidebar_label: 0003 - Longest Substring Without Repeating Characters
55
tags:
@@ -424,7 +424,12 @@ We will test the solution with the sample test cases provided in the problem sta
424424

425425
## Resources
426426

427+
---
428+
429+
<h2>Authors:</h2>
427430

428-
- **LeetCode Problem:** [Longest Substring Without Repeating Characters on LeetCode](https://leetcode.com/problems/longest-substring-without-repeating-characters/)
429-
- **Solution Link:** [Longest Substring Without Repeating Characters Solution on LeetCode](https://leetcode.com/problems/longest-substring-without-repeating-characters/solutions/2467813/3-longest-substring-without-repeating-characters-solution-with-full-details)
430-
- **Authors LeetCode Profile:** [Ajay Dhangar](https://leetcode.com/ajaydhangar49/), [Amruta Jayanti](https://leetcode.com/u/user7669cY/)
431+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
432+
{['ajay-dhangar'].map(username => (
433+
<Author key={username} username={username} />
434+
))}
435+
</div>

dsa-solutions/lc-solutions/0000-0099/0004-Median-of-two-Sorted-Array.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -806,8 +806,12 @@ The key idea is to use binary search to partition the smaller array in such a wa
806806

807807
:::
808808

809+
---
809810

810-
## References
811+
<h2>Authors:</h2>
811812

812-
- [LeetCode Problem](https://leetcode.com/problems/median-of-two-sorted-arrays/description/)
813-
- [GeeksforGeeks Article](https://www.geeksforgeeks.org/median-of-two-sorted-arrays/)
813+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
814+
{['ajay-dhangar'].map(username => (
815+
<Author key={username} username={username} />
816+
))}
817+
</div>

dsa-solutions/lc-solutions/0000-0099/0005-Longest-palindrome-substring.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,12 @@ def longestPalindrome(s: str) -> str:
206206

207207
We discussed four approaches to solve the "Longest Palindromic Substring" problem, each with varying complexities and trade-offs. The dynamic programming and center expansion approaches provide a good balance of simplicity and efficiency for practical use cases, while Manacher's algorithm offers the optimal theoretical performance.
208208

209-
```
209+
---
210210

211-
```
211+
<h2>Authors:</h2>
212+
213+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
214+
{['Yashgabani845', 'ajay-dhangar'].map(username => (
215+
<Author key={username} username={username} />
216+
))}
217+
</div>

dsa-solutions/lc-solutions/0000-0099/0006-ZigZag-Conversion.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of
1616
P A H N
1717
A P L S I I G
1818
Y I R
19-
2019
```
2120

2221
And then read line by line: "PAHNAPLSIIGYIR"

0 commit comments

Comments
 (0)