Skip to content

Added Solutions for Leetcode 2353 #3642

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dsa-problems/leetcode-problems/2300-2399.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export const problems = [
"problemName": "2353. Design a Food Rating System",
"difficulty": "Medium",
"leetCodeLink": "https://leetcode.com/problems/design-a-food-rating-system",
"solutionLink": "#"
"solutionLink": "/dsa-solutions/lc-solutions/2300-2399/design-a-food-rating-system"
},
{
"problemName": "2354. Number of Excellent Pairs",
Expand Down
10 changes: 10 additions & 0 deletions dsa-solutions/lc-solutions/0200-0299/0207-course-schedule.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,3 +212,13 @@ class Solution:
- **LeetCode Problem**: [Course Schedule](https://leetcode.com/problems/course-schedule/description/)

- **Leetcode Solutions:** [Course Schedule](https://leetcode.com/problems/course-schedule/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -242,3 +242,13 @@ class Solution(object):
- **LeetCode Problem**: [Strong Password Checker](https://leetcode.com/problems/strong-password-checker/description/)

- **Solution Link**: [Strong Password Checker](https://leetcode.com/problems/strong-password-checker/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -224,3 +224,13 @@ class Solution:
- **LeetCode Problem**: [Find Right Interval](https://leetcode.com/problems/find-right-interval/description/)

- **Solution Link**: [Find Right Interval](https://leetcode.com/problems/find-right-interval/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
10 changes: 10 additions & 0 deletions dsa-solutions/lc-solutions/0400-0499/0443-string-compression.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,13 @@ class Solution:
- **LeetCode Problem**: [String Compression](https://leetcode.com/problems/string-compression/description/)

- **Solution Link**: [String Compression](https://leetcode.com/problems/string-compression/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
10 changes: 10 additions & 0 deletions dsa-solutions/lc-solutions/0400-0499/0445-add-two-numberii.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,3 +404,13 @@ class Solution:
- **LeetCode Problem**: [Add Two Numbers II](https://leetcode.com/problems/add-two-numbers-ii/description/)

- **Solution Link**: [Add Two Numbers II](https://leetcode.com/problems/add-two-numbers-ii/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
10 changes: 10 additions & 0 deletions dsa-solutions/lc-solutions/0400-0499/0455-assign-cookies.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,13 @@ class Solution:
- **LeetCode Problem**: [Assign Cookies](https://leetcode.com/problems/assign-cookies/description/)

- **Solution Link**: [Assign Cookies](https://leetcode.com/problems/assign-cookies/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
10 changes: 10 additions & 0 deletions dsa-solutions/lc-solutions/0400-0499/0460-lfu-cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,3 +359,13 @@ class LFUCache:

- **Solution Link**: [LFU Cache](https://leetcode.com/problems/lfu-cache/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>

Original file line number Diff line number Diff line change
Expand Up @@ -661,3 +661,13 @@ def makesquare(self, nums):
- **LeetCode Problem**: [Matchsticks to Square](https://leetcode.com/problems/matchsticks-to-square/description/)

- **Solution Link**: [Matchsticks to Square](https://leetcode.com/problems/matchsticks-to-square/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
10 changes: 10 additions & 0 deletions dsa-solutions/lc-solutions/0400-0499/0494-target-sum.md
Original file line number Diff line number Diff line change
Expand Up @@ -498,3 +498,13 @@ class Solution:
- **LeetCode Problem**: [Target Sum](https://leetcode.com/problems/target-sum/description/)

- **Solution Link**: [Target Sum](https://leetcode.com/problems/target-sum/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
10 changes: 10 additions & 0 deletions dsa-solutions/lc-solutions/0400-0499/0495-teemo-attacking.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,13 @@ class Solution:
- **LeetCode Problem**: [Teemo Attacking](https://leetcode.com/problems/teemo-attacking/description/)

- **Solution Link**: [Teemo Attacking](https://leetcode.com/problems/teemo-attacking/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
10 changes: 10 additions & 0 deletions dsa-solutions/lc-solutions/0400-0499/0498-diagonal-traverse.md
Original file line number Diff line number Diff line change
Expand Up @@ -553,3 +553,13 @@ class Solution:
- **LeetCode Problem**: [Diagonal Traverse](https://leetcode.com/problems/diagonal-traverse/description/)

- **Solution Link**: [Diagonal Traverse](https://leetcode.com/problems/diagonal-traverse/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -453,3 +453,13 @@ class Solution:
- **LeetCode Problem**: [Find Largest Value in Each Tree Row](https://leetcode.com/problems/find-largest-value-in-each-tree-row/description/)

- **Solution Link**: [Find Largest Value in Each Tree Row](https://leetcode.com/problems/find-largest-value-in-each-tree-row/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,13 @@ class Solution:
- **LeetCode Problem**: [Complex Number Multiplication](https://leetcode.com/problems/complex-number-multiplication/description/)

- **Solution Link**: [Complex Number Multiplication](https://leetcode.com/problems/complex-number-multiplication/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
10 changes: 10 additions & 0 deletions dsa-solutions/lc-solutions/0500-0599/0541-reverse-string-ii.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,13 @@ class Solution(object):
- **LeetCode Problem**: [Reverse String II](https://leetcode.com/problems/reverse-string-ii/description/)

- **Solution Link**: [Reverse String II](https://leetcode.com/problems/reverse-string-ii/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
10 changes: 10 additions & 0 deletions dsa-solutions/lc-solutions/0500-0599/0553-optimal-division.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,3 +399,13 @@ class Solution:
- **LeetCode Problem**: [Optimal Division](https://leetcode.com/problems/optimal-division/description/)

- **Solution Link**: [Optimal Division](https://leetcode.com/problems/optimal-division/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -349,3 +349,13 @@ class Solution:
- **LeetCode Problem**: [Reverse Words in a String III](https://leetcode.com/problems/reverse-words-in-a-string-iii/description/)

- **Solution Link**: [Reverse Words in a String III](https://leetcode.com/problems/reverse-words-in-a-string-iii/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
10 changes: 10 additions & 0 deletions dsa-solutions/lc-solutions/0500-0599/0563-binary-tree-tilt.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,3 +209,13 @@ class Solution:
- **LeetCode Problem**: [Binary Tree Tilt](https://leetcode.com/problems/binary-tree-tilt/description/)

- **Solution Link**: [Binary Tree Tilt](https://leetcode.com/problems/binary-tree-tilt/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
10 changes: 10 additions & 0 deletions dsa-solutions/lc-solutions/0500-0599/0565-array-nesting.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,3 +267,13 @@ class Solution:
- **LeetCode Problem**: [Array Nesting](https://leetcode.com/problems/array-nesting/description/)

- **Solution Link**: [Array Nesting](https://leetcode.com/problems/array-nesting/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -231,3 +231,13 @@ class Solution:
- **LeetCode Problem**: [Out of Boundary Paths](https://leetcode.com/problems/out-of-boundary-paths/description/)

- **Solution Link**: [Out of Boundary Paths](https://leetcode.com/problems/out-of-boundary-paths/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
10 changes: 10 additions & 0 deletions dsa-solutions/lc-solutions/0500-0599/0591-tag-validator.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,3 +290,13 @@ class Solution:
- **LeetCode Problem**: [Tag Validator](https://leetcode.com/problems/tag-validator/description/)

- **Solution Link**: [Tag Validator](https://leetcode.com/problems/tag-validator/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -250,3 +250,13 @@ class Solution:
- **LeetCode Problem**: [Fraction Addition and Subtraction](https://leetcode.com/problems/fraction-addition-and-subtraction/description/)

- **Solution Link**: [Fraction Addition and Subtraction](https://leetcode.com/problems/fraction-addition-and-subtraction/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
10 changes: 10 additions & 0 deletions dsa-solutions/lc-solutions/0500-0599/0593-valid-square.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,13 @@ class Solution:
- **LeetCode Problem**: [Valid Square](https://leetcode.com/problems/valid-square/description/)

- **Solution Link**: [Valid Square](https://leetcode.com/problems/valid-square/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,13 @@ class Solution:
- **LeetCode Problem**: [Minimum Index Sum of Two Lists](https://leetcode.com/problems/minimum-index-sum-of-two-lists/description/)

- **Solution Link**: [Minimum Index Sum of Two Lists](https://leetcode.com/problems/minimum-index-sum-of-two-lists/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -322,3 +322,13 @@ class Solution:
- **LeetCode Problem**: [Find Duplicate File in System](https://leetcode.com/problems/find-duplicate-file-in-system/description/)

- **Solution Link**: [Find Duplicate File in System](https://leetcode.com/problems/find-duplicate-file-in-system/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -231,3 +231,13 @@ class Solution:
- **LeetCode Problem**: [Valid Triangle Number](https://leetcode.com/problems/valid-triangle-number/description/)

- **Solution Link**: [Valid Triangle Number](https://leetcode.com/problems/valid-triangle-number/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
10 changes: 10 additions & 0 deletions dsa-solutions/lc-solutions/0600-0699/0621-task-scheduler.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,3 +419,13 @@ We sort the frequency array, which has a size of 26. The space used for sorting
- **LeetCode Problem**: [Task Scheduler](https://leetcode.com/problems/task-scheduler/description/)

- **Solution Link**: [Task Scheduler](https://leetcode.com/problems/task-scheduler/solutions/)

---

<h2>Authors:</h2>

<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
{['shreyash3087'].map(username => (
<Author key={username} username={username} />
))}
</div>
Loading
Loading