How to unlock the "solution"?


  • 0
    Z

    I submit first question, Status is accepted,and the solution unlocked.

    When i submit second question ,status also is accpected but the solution hadn't unlocked.

    Why that?

    How can I unlocked the solution?

    The second question is Same Tree by JAVA

    Here is my solution

    public boolean isSameTree(TreeNode p, TreeNode q) {
        if (p == null && q == null)
            return true;
        else if (p == null || q == null)
            return false;
        if (p.val != q.val)
            return false;
        return isSameTree(p.left,q.left)&&isSameTree(p.right,q.right);
    }

  • 2
    M

    The solution is yet not available for this question. Solution is available for only some of the questions.


  • 0
    Z

    u mean some question hadn't have solution yet?


  • 0
    M

    Yes that's correct! Solution has been posted only for some of the questions so far!


  • 0
    G

    He is not talking about the Editorial Solution but the general ones . the one by people


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.