I dont get the question at all, but my code works.... so easy?


  • 0
    J

    public class Solution {
    public int findLUSlength(String a, String b) {
    if(a.equals(b)) return -1;
    return a.length()>b.length()?a.length():b.length();
    }
    }


Log in to reply
 

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