-
Notifications
You must be signed in to change notification settings - Fork 380
Closed
Description
Your LeetCode username
''
class OrderedStream {
String str[];
int ptr;
public OrderedStream(int n) {
str=new String[n];
}
public List<String> insert(int idKey, String value) {
List<String> arr=new ArrayList<String>();
str[idKey-1]=value;
while(ptr<str.length && str[ptr]!=null)
{
arr.add(str[ptr]);
ptr++;
}
return arr;
}
}
''
Category of the bug
- Question
- Solution
- Language
- Missing Test Cases
Description of the bug
Code you used for Submit/Run operation
// Two Sum
class Solution {
public:
vector<int> twoSum(vector<int> &a, int s) {
}
};