coding-questions
coding-questions copied to clipboard
Coding interview questions with solutions (deprecated)
Formatted and fixed typing error
I wrote a solution to the celebrity problem based on the description that I've run into. It's in python and not cpp, but it might be useful. It's got two...
I don't know how big you expect m to be, but if m is an int, n is long long and k is int - there's no need for simulating...
I came across 2 problem in your approach: 1) If you are doing it O(n) then you could do a simple scan and just minimum value and then return its...
Hello!, I tried to use the [code](https://github.com/checkcheckzz/coding-questions/blob/master/problem/Math/Delete%20k%20digits.cpp) for deleting k digits but it seems it fails in some test cases. Given `num` = 891, `k` =1. `Output` 89 I think...