Is there anything wrong with [leetcode26]Remove Duplicates from Sorted Array?


  • 0
    Y

    I think it wants to return int[] but the definition returns int, so my code can't be accepted. Do you meet the same problem?
    public int removeDuplicates(int[] nums)


  • 0
    L

    yes.I think so.I also find this problem.I think there is a bug.


Log in to reply
 

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