We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The way you read input strings list is fine but what about the number of strings you supposed to read? According to your code, you can give input string count 2 but you can read more than 2 strings.
Example:
2
a1b2c3
abcdefgh
mnbvc
zaqwsx
1a2b3c
badcfehg
nmvbc
azwqxs
How you can give int count 2 and then can process 4 strings ?
Author of this question doesn't seem to care about the correctness of the problem. He Just jacked up the number of strings in the input test cases to test the performance.
String-o-Permute
You are viewing a single comment's thread. Return to all comments →
The way you read input strings list is fine but what about the number of strings you supposed to read? According to your code, you can give input string count 2 but you can read more than 2 strings.
Example:
2 a1b2c3 abcdefgh mnbvc zaqwsx
1a2b3c badcfehg nmvbc azwqxs
How you can give int count 2 and then can process 4 strings ?
Author of this question doesn't seem to care about the correctness of the problem. He Just jacked up the number of strings in the input test cases to test the performance.