Space complexity : O(min(n,k))O(min(n,k))O(min(n,k)). The HashMap can contain upto min(n,k)min(n,k)min(n,k) different pairings.
how is it O(min(n,k) ?
Exactly, I had an issue with another problem too, the Two Sum problem to be specific, I contacted the support but they just told me to post about it in the discussion area.
Then I think they are just not doing anything. You contacted Support and they should have looked into it. Contact them again saying no one here seems to respond and others are facing the same issue.
Where did you send the mail to? Do write a strong mail so they look into it. Too bad they should have looked into it the first time you contacted them.
Are there any administrators or SUPPORT STAFF at this site at all?
This has been a serious issue with a lot of problemsets and no site administrator seems to care to fix it?
i too am noticing issues with Run Code related button and posting in the"Discuss" tab of problems. Any LeetCode support staff there to fix these issues?
This used to work before but it seems the UI has been changed recently.
When I click on possible solutions posted by lc members in the "Discuss" category, and want to reply to it, I get the following error. So I can't seem to be able to add any reply to posted solution.
For example for Q91 posted solution at https://leetcode.com/problems/decode-ways/discuss/114472/C:-Easy-to-understand-DP-(memoization)-solution-with-explanation.-(Accepted)
Decode Ways /topic/118868/c-very-simple-solution-with-explanation Not Found You seem to have stumbled upon a page that does not exist. Return to the home page.
This is occurring for various problems' Discuss tab. How to add reply to these threads? Fix?
Why has the "RUN CODE" button at the bottom of code screen been removed? How should one "run/test" the code before SUBMITTING?
There is a "debug code in playground" window but that seems to not work and just produces a compile error on correct code and seems broken. I tried to run a code sample that I submitted (and was accepted) and the same code produced the following error on the debug window.
(C++ code) I see this issue for problem # 116, #117.
Compile error Error:ld returned 1 exit status
The debug/Run test seems really flaky and I don't see any "Tree visualizer" anymore, which was there before.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.