Skip to content

Missing Test Case - 1656. Design an Ordered Stream #9905

@gargaakanksha

Description

@gargaakanksha

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) {

    }
};

Language used for code

Expected behavior

Screenshots

Additional context

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions