Skip to content

Commit 7f5a89a

Browse files
committed
Update Second Smallest and Second Largest Element in an Array.md
1 parent 78b226f commit 7f5a89a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/CP/tuf/Second Smallest and Second Largest Element in an Array.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ I iterate through the array once and update these values carefully.
110110
```cpp
111111
#include <climits>
112112
#include <vector>
113-
using namespace std;
113+
using namespace std; 
114114

115115
pair<int, int> secondSmallestAndLargest(vector<int> &arr) {
116116
int n = arr.size();
@@ -160,7 +160,7 @@ This is optimal since I must inspect every element at least once.
160160
161161
## Edge Cases to Remember
162162
163-
- Array size < 2 → no second elements
163+
 - Array size < 2 → no second elements
164164
165165
- All elements equal → no second smallest or largest
166166

0 commit comments

Comments
 (0)