-
Notifications
You must be signed in to change notification settings - Fork 383
Closed
Description
LeetCode Username
Problem number, title, and link
Category of the bug
- Problem description
- Solved examples
- Problem constraints
- Problem hints
- Incorrect or missing "Related Topics"
- Incorrect test Case (Output of test case is incorrect as per the problem statement)
- Missing test Case (Incorrect/Inefficient Code getting accepted because of missing test cases)
- Editorial
- Programming language support
Description of the bug
Language used for code
class Solution {
public:
void reverseString(vector& s) {
int n;
int t=0;
int e= s.size()-1;
while(t<e){
swap(s[t++],s[e--]);
}
}
};
Code used for Submit/Run operation
// Paste your code here. Don't remove ``` given
// above and below the code.
Expected behavior
Screenshots
Additional context
Metadata
Metadata
Assignees
Labels
No labels