Skip to content

Commit 63fd6bd

Browse files
Some changes in documentation
1 parent 6caedda commit 63fd6bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dsa-solutions/lc-solutions/0000-0099/0021-Merge-two-sorted-lists.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ Merge two sorted linked lists and return it as a sorted list. The list should be
3737

3838
### Constraints
3939

40-
- `The number of nodes in both lists is in the range [0, 50].`
41-
- `-100 <= Node.val <= 100`
42-
- `Both `list1` and `list2` are sorted in non-decreasing order.`
40+
- The number of nodes in both lists is in the range [0, 50].
41+
- -100 <= Node.val <= 100
42+
- Both `list1` and `list2` are sorted in non-decreasing order.
4343

4444
### Approach
4545

@@ -170,5 +170,5 @@ class Solution {
170170
### Conclusion
171171

172172
The above solution efficiently merges two sorted linked lists into a single sorted linked list. It employs a straightforward approach to compare the elements from both lists and attach the smaller element to the merged list. This ensures that the merged list maintains the sorted order of the input lists, providing a simple yet effective approach to solving the problem of merging two sorted linked lists.
173-
```
173+
174174

0 commit comments

Comments
 (0)