Skip to content

Commit f4becf5

Browse files
authored
Merge pull request #3642 from shreyash3087/add/leetcode-2353
Added Solutions for Leetcode 2353
2 parents 3ea69cd + 3efa218 commit f4becf5

File tree

53 files changed

+886
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+886
-1
lines changed

dsa-problems/leetcode-problems/2300-2399.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export const problems = [
332332
"problemName": "2353. Design a Food Rating System",
333333
"difficulty": "Medium",
334334
"leetCodeLink": "https://leetcode.com/problems/design-a-food-rating-system",
335-
"solutionLink": "#"
335+
"solutionLink": "/dsa-solutions/lc-solutions/2300-2399/design-a-food-rating-system"
336336
},
337337
{
338338
"problemName": "2354. Number of Excellent Pairs",

dsa-solutions/lc-solutions/0200-0299/0207-course-schedule.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,3 +212,13 @@ class Solution:
212212
- **LeetCode Problem**: [Course Schedule](https://leetcode.com/problems/course-schedule/description/)
213213

214214
- **Leetcode Solutions:** [Course Schedule](https://leetcode.com/problems/course-schedule/solutions/)
215+
216+
---
217+
218+
<h2>Authors:</h2>
219+
220+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
221+
{['shreyash3087'].map(username => (
222+
<Author key={username} username={username} />
223+
))}
224+
</div>

dsa-solutions/lc-solutions/0400-0499/0420-strong-password-checker.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,3 +242,13 @@ class Solution(object):
242242
- **LeetCode Problem**: [Strong Password Checker](https://leetcode.com/problems/strong-password-checker/description/)
243243

244244
- **Solution Link**: [Strong Password Checker](https://leetcode.com/problems/strong-password-checker/solutions/)
245+
246+
---
247+
248+
<h2>Authors:</h2>
249+
250+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
251+
{['shreyash3087'].map(username => (
252+
<Author key={username} username={username} />
253+
))}
254+
</div>

dsa-solutions/lc-solutions/0400-0499/0436-find-right-interval.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,3 +224,13 @@ class Solution:
224224
- **LeetCode Problem**: [Find Right Interval](https://leetcode.com/problems/find-right-interval/description/)
225225

226226
- **Solution Link**: [Find Right Interval](https://leetcode.com/problems/find-right-interval/solutions/)
227+
228+
---
229+
230+
<h2>Authors:</h2>
231+
232+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
233+
{['shreyash3087'].map(username => (
234+
<Author key={username} username={username} />
235+
))}
236+
</div>

dsa-solutions/lc-solutions/0400-0499/0443-string-compression.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,13 @@ class Solution:
165165
- **LeetCode Problem**: [String Compression](https://leetcode.com/problems/string-compression/description/)
166166

167167
- **Solution Link**: [String Compression](https://leetcode.com/problems/string-compression/solutions/)
168+
169+
---
170+
171+
<h2>Authors:</h2>
172+
173+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
174+
{['shreyash3087'].map(username => (
175+
<Author key={username} username={username} />
176+
))}
177+
</div>

dsa-solutions/lc-solutions/0400-0499/0445-add-two-numberii.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,3 +404,13 @@ class Solution:
404404
- **LeetCode Problem**: [Add Two Numbers II](https://leetcode.com/problems/add-two-numbers-ii/description/)
405405

406406
- **Solution Link**: [Add Two Numbers II](https://leetcode.com/problems/add-two-numbers-ii/solutions/)
407+
408+
---
409+
410+
<h2>Authors:</h2>
411+
412+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
413+
{['shreyash3087'].map(username => (
414+
<Author key={username} username={username} />
415+
))}
416+
</div>

dsa-solutions/lc-solutions/0400-0499/0455-assign-cookies.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,3 +180,13 @@ class Solution:
180180
- **LeetCode Problem**: [Assign Cookies](https://leetcode.com/problems/assign-cookies/description/)
181181

182182
- **Solution Link**: [Assign Cookies](https://leetcode.com/problems/assign-cookies/solutions/)
183+
184+
---
185+
186+
<h2>Authors:</h2>
187+
188+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
189+
{['shreyash3087'].map(username => (
190+
<Author key={username} username={username} />
191+
))}
192+
</div>

dsa-solutions/lc-solutions/0400-0499/0460-lfu-cache.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,3 +359,13 @@ class LFUCache:
359359

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

362+
---
363+
364+
<h2>Authors:</h2>
365+
366+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
367+
{['shreyash3087'].map(username => (
368+
<Author key={username} username={username} />
369+
))}
370+
</div>
371+

dsa-solutions/lc-solutions/0400-0499/0473-matchsticks-to-square.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,3 +661,13 @@ def makesquare(self, nums):
661661
- **LeetCode Problem**: [Matchsticks to Square](https://leetcode.com/problems/matchsticks-to-square/description/)
662662

663663
- **Solution Link**: [Matchsticks to Square](https://leetcode.com/problems/matchsticks-to-square/solutions/)
664+
665+
---
666+
667+
<h2>Authors:</h2>
668+
669+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
670+
{['shreyash3087'].map(username => (
671+
<Author key={username} username={username} />
672+
))}
673+
</div>

dsa-solutions/lc-solutions/0400-0499/0494-target-sum.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,3 +498,13 @@ class Solution:
498498
- **LeetCode Problem**: [Target Sum](https://leetcode.com/problems/target-sum/description/)
499499

500500
- **Solution Link**: [Target Sum](https://leetcode.com/problems/target-sum/solutions/)
501+
502+
---
503+
504+
<h2>Authors:</h2>
505+
506+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
507+
{['shreyash3087'].map(username => (
508+
<Author key={username} username={username} />
509+
))}
510+
</div>

dsa-solutions/lc-solutions/0400-0499/0495-teemo-attacking.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,13 @@ class Solution:
138138
- **LeetCode Problem**: [Teemo Attacking](https://leetcode.com/problems/teemo-attacking/description/)
139139

140140
- **Solution Link**: [Teemo Attacking](https://leetcode.com/problems/teemo-attacking/solutions/)
141+
142+
---
143+
144+
<h2>Authors:</h2>
145+
146+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
147+
{['shreyash3087'].map(username => (
148+
<Author key={username} username={username} />
149+
))}
150+
</div>

dsa-solutions/lc-solutions/0400-0499/0498-diagonal-traverse.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,3 +553,13 @@ class Solution:
553553
- **LeetCode Problem**: [Diagonal Traverse](https://leetcode.com/problems/diagonal-traverse/description/)
554554

555555
- **Solution Link**: [Diagonal Traverse](https://leetcode.com/problems/diagonal-traverse/solutions/)
556+
557+
---
558+
559+
<h2>Authors:</h2>
560+
561+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
562+
{['shreyash3087'].map(username => (
563+
<Author key={username} username={username} />
564+
))}
565+
</div>

dsa-solutions/lc-solutions/0500-0599/0515-find-largest-value-in-each-tree-row.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,3 +453,13 @@ class Solution:
453453
- **LeetCode Problem**: [Find Largest Value in Each Tree Row](https://leetcode.com/problems/find-largest-value-in-each-tree-row/description/)
454454

455455
- **Solution Link**: [Find Largest Value in Each Tree Row](https://leetcode.com/problems/find-largest-value-in-each-tree-row/solutions/)
456+
457+
---
458+
459+
<h2>Authors:</h2>
460+
461+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
462+
{['shreyash3087'].map(username => (
463+
<Author key={username} username={username} />
464+
))}
465+
</div>

dsa-solutions/lc-solutions/0500-0599/0537-complex-number-multiplication.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,13 @@ class Solution:
149149
- **LeetCode Problem**: [Complex Number Multiplication](https://leetcode.com/problems/complex-number-multiplication/description/)
150150

151151
- **Solution Link**: [Complex Number Multiplication](https://leetcode.com/problems/complex-number-multiplication/solutions/)
152+
153+
---
154+
155+
<h2>Authors:</h2>
156+
157+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
158+
{['shreyash3087'].map(username => (
159+
<Author key={username} username={username} />
160+
))}
161+
</div>

dsa-solutions/lc-solutions/0500-0599/0541-reverse-string-ii.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,13 @@ class Solution(object):
125125
- **LeetCode Problem**: [Reverse String II](https://leetcode.com/problems/reverse-string-ii/description/)
126126

127127
- **Solution Link**: [Reverse String II](https://leetcode.com/problems/reverse-string-ii/solutions/)
128+
129+
---
130+
131+
<h2>Authors:</h2>
132+
133+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
134+
{['shreyash3087'].map(username => (
135+
<Author key={username} username={username} />
136+
))}
137+
</div>

dsa-solutions/lc-solutions/0500-0599/0553-optimal-division.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,3 +399,13 @@ class Solution:
399399
- **LeetCode Problem**: [Optimal Division](https://leetcode.com/problems/optimal-division/description/)
400400

401401
- **Solution Link**: [Optimal Division](https://leetcode.com/problems/optimal-division/solutions/)
402+
403+
---
404+
405+
<h2>Authors:</h2>
406+
407+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
408+
{['shreyash3087'].map(username => (
409+
<Author key={username} username={username} />
410+
))}
411+
</div>

dsa-solutions/lc-solutions/0500-0599/0557-reverse-words-in-a-string-iii.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,3 +349,13 @@ class Solution:
349349
- **LeetCode Problem**: [Reverse Words in a String III](https://leetcode.com/problems/reverse-words-in-a-string-iii/description/)
350350

351351
- **Solution Link**: [Reverse Words in a String III](https://leetcode.com/problems/reverse-words-in-a-string-iii/solutions/)
352+
353+
---
354+
355+
<h2>Authors:</h2>
356+
357+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
358+
{['shreyash3087'].map(username => (
359+
<Author key={username} username={username} />
360+
))}
361+
</div>

dsa-solutions/lc-solutions/0500-0599/0563-binary-tree-tilt.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,3 +209,13 @@ class Solution:
209209
- **LeetCode Problem**: [Binary Tree Tilt](https://leetcode.com/problems/binary-tree-tilt/description/)
210210

211211
- **Solution Link**: [Binary Tree Tilt](https://leetcode.com/problems/binary-tree-tilt/solutions/)
212+
213+
---
214+
215+
<h2>Authors:</h2>
216+
217+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
218+
{['shreyash3087'].map(username => (
219+
<Author key={username} username={username} />
220+
))}
221+
</div>

dsa-solutions/lc-solutions/0500-0599/0565-array-nesting.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,3 +267,13 @@ class Solution:
267267
- **LeetCode Problem**: [Array Nesting](https://leetcode.com/problems/array-nesting/description/)
268268

269269
- **Solution Link**: [Array Nesting](https://leetcode.com/problems/array-nesting/solutions/)
270+
271+
---
272+
273+
<h2>Authors:</h2>
274+
275+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
276+
{['shreyash3087'].map(username => (
277+
<Author key={username} username={username} />
278+
))}
279+
</div>

dsa-solutions/lc-solutions/0500-0599/0576-out-of-boundary-paths.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,3 +231,13 @@ class Solution:
231231
- **LeetCode Problem**: [Out of Boundary Paths](https://leetcode.com/problems/out-of-boundary-paths/description/)
232232

233233
- **Solution Link**: [Out of Boundary Paths](https://leetcode.com/problems/out-of-boundary-paths/solutions/)
234+
235+
---
236+
237+
<h2>Authors:</h2>
238+
239+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
240+
{['shreyash3087'].map(username => (
241+
<Author key={username} username={username} />
242+
))}
243+
</div>

dsa-solutions/lc-solutions/0500-0599/0591-tag-validator.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,3 +290,13 @@ class Solution:
290290
- **LeetCode Problem**: [Tag Validator](https://leetcode.com/problems/tag-validator/description/)
291291

292292
- **Solution Link**: [Tag Validator](https://leetcode.com/problems/tag-validator/solutions/)
293+
294+
---
295+
296+
<h2>Authors:</h2>
297+
298+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
299+
{['shreyash3087'].map(username => (
300+
<Author key={username} username={username} />
301+
))}
302+
</div>

dsa-solutions/lc-solutions/0500-0599/0592-fraction-addition-and-subtraction.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,3 +250,13 @@ class Solution:
250250
- **LeetCode Problem**: [Fraction Addition and Subtraction](https://leetcode.com/problems/fraction-addition-and-subtraction/description/)
251251

252252
- **Solution Link**: [Fraction Addition and Subtraction](https://leetcode.com/problems/fraction-addition-and-subtraction/solutions/)
253+
254+
---
255+
256+
<h2>Authors:</h2>
257+
258+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
259+
{['shreyash3087'].map(username => (
260+
<Author key={username} username={username} />
261+
))}
262+
</div>

dsa-solutions/lc-solutions/0500-0599/0593-valid-square.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,13 @@ class Solution:
138138
- **LeetCode Problem**: [Valid Square](https://leetcode.com/problems/valid-square/description/)
139139

140140
- **Solution Link**: [Valid Square](https://leetcode.com/problems/valid-square/solutions/)
141+
142+
---
143+
144+
<h2>Authors:</h2>
145+
146+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
147+
{['shreyash3087'].map(username => (
148+
<Author key={username} username={username} />
149+
))}
150+
</div>

dsa-solutions/lc-solutions/0500-0599/0599-minimum-index-sum-of-two-lists.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,3 +253,13 @@ class Solution:
253253
- **LeetCode Problem**: [Minimum Index Sum of Two Lists](https://leetcode.com/problems/minimum-index-sum-of-two-lists/description/)
254254

255255
- **Solution Link**: [Minimum Index Sum of Two Lists](https://leetcode.com/problems/minimum-index-sum-of-two-lists/solutions/)
256+
257+
---
258+
259+
<h2>Authors:</h2>
260+
261+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
262+
{['shreyash3087'].map(username => (
263+
<Author key={username} username={username} />
264+
))}
265+
</div>

dsa-solutions/lc-solutions/0600-0699/0609-find-duplicate-file-in-system.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,3 +322,13 @@ class Solution:
322322
- **LeetCode Problem**: [Find Duplicate File in System](https://leetcode.com/problems/find-duplicate-file-in-system/description/)
323323

324324
- **Solution Link**: [Find Duplicate File in System](https://leetcode.com/problems/find-duplicate-file-in-system/solutions/)
325+
326+
---
327+
328+
<h2>Authors:</h2>
329+
330+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
331+
{['shreyash3087'].map(username => (
332+
<Author key={username} username={username} />
333+
))}
334+
</div>

dsa-solutions/lc-solutions/0600-0699/0611-valid-triangle-number.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,3 +231,13 @@ class Solution:
231231
- **LeetCode Problem**: [Valid Triangle Number](https://leetcode.com/problems/valid-triangle-number/description/)
232232

233233
- **Solution Link**: [Valid Triangle Number](https://leetcode.com/problems/valid-triangle-number/solutions/)
234+
235+
---
236+
237+
<h2>Authors:</h2>
238+
239+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
240+
{['shreyash3087'].map(username => (
241+
<Author key={username} username={username} />
242+
))}
243+
</div>

dsa-solutions/lc-solutions/0600-0699/0621-task-scheduler.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,3 +419,13 @@ We sort the frequency array, which has a size of 26. The space used for sorting
419419
- **LeetCode Problem**: [Task Scheduler](https://leetcode.com/problems/task-scheduler/description/)
420420

421421
- **Solution Link**: [Task Scheduler](https://leetcode.com/problems/task-scheduler/solutions/)
422+
423+
---
424+
425+
<h2>Authors:</h2>
426+
427+
<div style={{display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', gap: '10px'}}>
428+
{['shreyash3087'].map(username => (
429+
<Author key={username} username={username} />
430+
))}
431+
</div>

0 commit comments

Comments
 (0)