I have one question, is there an issue with Kotlin answers ?
How can all my tests be green but none of the validators pass ?
(of course I didnāt hardcoded answers )
Anyone can help me ? I guess Iām not allowed to paste my code here so Iām quite stuck
Update : I rewrited my solution in Java (same algo) and all validators pass.
So I guess there might be an issue with Kotlin
The puzzle statement is way too wordy. Felt like I was reading a charles dickens novel and the important information gets lost in the paragraphs. A more concise statement would be useful. As a side note, this problem seems much harder than it actually is. Maybe a note of that would help?
Just giving some ways to improve the statement, no need to take it personally. Yes, Iād prefer a wordy statement over a wordless statement, but Iād prefer a concise statement to both of those.
And I solved the puzzle just fine,not sure where I implied I needed it, but thanks for the passive aggressive tip nonetheless lol.
to me, your first message seemed more aggressive than @java_coffee_cupās answer and didnāt imply you had solved the puzzle
Youāve made your point about the length of the statement and the author has the right to disagree.
Why post? Just to agitate? He didnāt disagree with me either, he agreed it was wordy. He just doesnāt appear to care.
The point of the discussion area is to post comments and concerns, so itās not aggressive to post constructive criticism. Getting mad and being like āoh well if you need help feel free to search for someā. Who asked for help lol? The problem is simple. Itās just wordy.
Of course the community manager post to agitateā¦
You have not implied you need help, but neither the oppositeā¦ And you are the one who became aggressive when @java_coffee_cup supposed you need someā¦
The point of the discussion area of a puzzle is to speak about this puzzle. So if you have unrelated criticisms, please use a private message.
Well, since you posted your feedback and the author answered, lets close the digression.
This is a great beginner problem, but it doesnāt really test implementation of stacks, since with a little thought about it, one realizes that its not necessary to keep track of stacks at all, just remember the set of the topmost values of all stacks. It is irrelevant how large the stacks are or what values lie under the topmost item in each stack, so you can forget about them.
Why in the example the stacking was: aab bcc , we could have done :ab abcc, ? Or whatās the āefficientā rule, i undestand that when ship b come, it can take the two container at once, but it doesnt do A. So do i go with the less stacking area or is there something else?
Although the solution of the problem is actually simple, I donāt think this problem should be an āeasyā problem because the solution is not as straightforward as other problems in the same category. Does anyone agree? Just wanted to share my opinion here
I understand this is supposed to be solved using stacks, but while looking at the pattern, it felt like it was a Longest Increasing Subsequence problem. My code got accepted with it but I wonder if there are any cases where it might fail.
First iteration put M on first stack.
Second iteration puts I on top of M on first stack.
Third iteration canāt put W on first stack, so a new stack is created with W.
ā¦
According to me you donāt need stacks to solve this because it is not the requirement to produce the content of the stacks. You only need to return the number of stacks, so you only need to keep track of the top container of each stack, to see if you can put the new container on top of it or not.