We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello!,
I tried to use the code for deleting k digits but it seems it fails in some test cases.
Given num = 891, k =1. Output 89
num
k
Output
I think the correct solution is 81 instead. I've a similar code to get the min/max number by removing k digits, this will return the correct solution.
81
Please let me know if i'm missing something here.
Thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello!,
I tried to use the code for deleting k digits but it seems it fails in some test cases.
Given
num
= 891,k
=1.Output
89I think the correct solution is
81
instead. I've a similar code to get the min/max number by removing k digits, this will return the correct solution.Please let me know if i'm missing something here.
Thanks
The text was updated successfully, but these errors were encountered: