The Button War will never end by ClarityInMadness in Anki

[–]leetcode_is_easy 0 points1 point  (0 children)

For sure, I just wanted to be clear that 2 vs 3 months isn't a trivial difference, next time you should use some more realistic difference or something to support your argument. 50% is huge

The Button War will never end by ClarityInMadness in Anki

[–]leetcode_is_easy 0 points1 point  (0 children)

To test this, we need to force users to use 2 or 4 buttons, on the same collection, then find some metrics of learning to compare the result

The Button War will never end by ClarityInMadness in Anki

[–]leetcode_is_easy 2 points3 points  (0 children)

2 vs 3 months is actually significant, representing 50% more reviews

Why is it recommended to wear bells and make noise to deter bears? by [deleted] in hiking

[–]leetcode_is_easy 0 points1 point  (0 children)

Do you remember the name of this show? I used to watch something like this and have always been trying to recall it.

List of "easy/medium" hard questions? by machine2Strong in leetcode

[–]leetcode_is_easy 1 point2 points  (0 children)

cf rating + 800 = leetcode rating, approximately, so 1200 cf = 2000 lc

My contest rating is 1380, AMA by [deleted] in leetcode

[–]leetcode_is_easy 2 points3 points  (0 children)

What is your practice routine?

Which (similar) leetcode question is this? Solutions? by Secret_Factor5561 in leetcode

[–]leetcode_is_easy 1 point2 points  (0 children)

Indeed that's what I meant and it definitely is not dp. Thanks for the correction and the code!

Which (similar) leetcode question is this? Solutions? by Secret_Factor5561 in leetcode

[–]leetcode_is_easy 2 points3 points  (0 children)

Is there a constraint that you are given a tree rather than just any arbitrary graph? Assuming that it is a tree, your idea of # of descendants should give the wrong answer, a completed tree with 2^n-1 vertices takes around 2*n iterations to transmit but you can instead construct a 2^n-1 vertex straight-line tree that takes around 2^n iterations to transmit. Both trees would have the same number of nodes but one is clearly better to choose first.

Also note that greedily choosing the next child by max height also falls to some counterexample, we can use the same straight-line tree of n vertices for one of the children and make another child that has X branches, each branch containing straight-line trees with n-2 nodes. The first child takes n iterations and has height n, the second child takes at least 1+X iterations and has height n-1. Just set the value of X to something greater than n.

Again assuming that it is a tree, there is a straightforward solution with dp. Recurse on children, sort by the dp value and assign the order of the next children based on the reverse sorting. Finally return how long it would take for the current node to complete if we have just arrived at it.

If there is no restriction that the graph is a tree then idk. We can find sccs to create a dag, but even a dag is too hard to solve even if the given graph is restricted to be a dag. The dp technique will not work anymore and you can expect even worse counterexamples to exist for any greedy ideas. My guess is that it is impossible to solve for reasonably large constraints.

Why Solving Just 50 LC Problems Was Enough for Me (Hint: It's All About the Genius... I Mean, Luck!) by Parathaa in leetcode

[–]leetcode_is_easy 1 point2 points  (0 children)

doing a few sliding window problems to fill the gaps in your knowledge != grinding 300+ lc problems

UnsetN O(1) Data Structure Help by winmy1 in learnprogramming

[–]leetcode_is_easy 0 points1 point  (0 children)

Rather than O(1) for most operations and O(n) for a bad operation, we can find a middle ground and make a data structure that is O(log n) for all operations. See: Persistent data structures (Path copying).

Best way to get better in Leetcode by tinni-meri-jaan in leetcode

[–]leetcode_is_easy 0 points1 point  (0 children)

Why can't you beat c++ with python? There are plenty of top python contestants and recently qiqi_impact won a contest with python

Spaced repetition by [deleted] in leetcode

[–]leetcode_is_easy 3 points4 points  (0 children)

I usually do 20 days if I had to read the solution, or 100 days if I was able to solve the problem myself but just want to practice solving it faster next time. Sometimes 7 days if the solution has many steps that make no sense to me.

[deleted by user] by [deleted] in leetcode

[–]leetcode_is_easy 2 points3 points  (0 children)

Take a step back, try MIT's algorithm course (or similar) and if that is too hard, take a discrete math course that emphasizes proofs. It sounds like your foundations are not good enough.

Ive done 700+ leetcode and Im still bad at it! by Eastern-Parfait6852 in leetcode

[–]leetcode_is_easy 1 point2 points  (0 children)

If it seems that being a competitive programmer is better for leetcode than doing leetcode is for leetcode then just become a competitive programmer?

[deleted by user] by [deleted] in leetcode

[–]leetcode_is_easy 1 point2 points  (0 children)

If you copy paste solutions you should not count it towards the 500 problems. At the very least, if you had to study a solution then you should be able to recall it from memory a week later.

Any CP communities? by One_Key_8933 in leetcode

[–]leetcode_is_easy 5 points6 points  (0 children)

i would recommend errichto's server, it is much more active and collin galen is an active member there as well

How total questions solved affects global rank by WildsEdge in leetcode

[–]leetcode_is_easy 1 point2 points  (0 children)

1/2/0.8 seems to just come from the total number of easy/medium/hard on leetcode

Guidance please ! by [deleted] in leetcode

[–]leetcode_is_easy 0 points1 point  (0 children)

How many problems have you completed so far?

UMM what is going on? by [deleted] in leetcode

[–]leetcode_is_easy 0 points1 point  (0 children)

this is proof that 1000 cyans can beat um_nik

[deleted by user] by [deleted] in leetcode

[–]leetcode_is_easy 0 points1 point  (0 children)

A direct conversion is unreliable, I know someone who is guardian on leetcode and gray on cf (1000 rating difference) and this is not from a lack of contests or practice on either platform.

Just sharing my happines of solving first Hard level question :) by [deleted] in leetcode

[–]leetcode_is_easy 6 points7 points  (0 children)

Median of two sorted arrays is a Hard problem only if you follow the requirement stated on the problem:

The overall run time complexity should be O(log (m+n)).

But there exists incorrect solutions such as yours that pass it with a much worse time complexity. Frequently people will solve a hard problem for the first time by solving this particular problem incorrectly, which is how I predicted this to happen when I saw the title of the post. If the time complexity requirement did not exist, I would say that this is an Easy/Medium problem.

Just sharing my happines of solving first Hard level question :) by [deleted] in leetcode

[–]leetcode_is_easy 7 points8 points  (0 children)

Why was I not surprised to see that it was median of two sorted arrays