Make It Anagram

Sort by

recency

|

77 Discussions

|

  • + 0 comments

    interview experience: https://medium.com/p/eef5d3cbcf99

  • + 0 comments

    don't have ruby ;)

  • + 0 comments

    Python 2

    total += max(w1.count(letter) - w2.count(letter), w2.count(letter) - w1.count(letter)) if ((letter in w1 and letter not in w2) or (letter not in w1 and letter in w2) or w1.count(letter) != w2.count(letter)) else 0 
    

    or

    total += abs(w1.count(letter) - w2.count(letter)) if ((letter in w1 and letter not in w2) or (letter not in w1 and letter in w2) or w1.count(letter) != w2.count(letter)) else 0 
    
  • + 0 comments

    System.out.println((src.length()+tar.length())-length);

  • + 0 comments

    just write this (src.length()+tar.length()-length) inside sop()