Best String interview Question java @ tesla, apple, google, amazon, meta, uber || Valid Anagram: 242

Поділитися
Вставка
  • Опубліковано 7 лис 2024

КОМЕНТАРІ • 3

  • @DestinationFAANG
    @DestinationFAANG  2 роки тому

    ***************GitHub Repository for Questions solved so far **************
    github.com/DestinationFAANG/Destination-FAANG---Java-Solution
    *************** Problem Statement *****************
    Leetcode Link: leetcode.com/problems/valid-anagram/
    **************** Java Solution ***********************
    class Solution {
    public boolean isAnagram(String s, String t) {


    if(s.length() != t.length()){
    return false;
    }

    int[] count = new int[26];

    for(int i=0; i

  • @vivekchand19
    @vivekchand19 2 роки тому +1

    Hey your videos are too good, they are very helpful. One small feedback in the video title. It would be nice & easy to read if you can put problem title first ... I mean "Valid Anagram: 242 || Best String interview Question java @ tesla, apple, google, amazon, meta, uber" instead of "Best String interview Question java @ tesla, apple, google, amazon, meta, uber || Valid Anagram: 242" ... It would be easy to ready & when someone searches would be more inclined on clicking the video. Hope this helps :)

    • @DestinationFAANG
      @DestinationFAANG  2 роки тому +2

      I agree with you. In my past videos I had titles where the problem statement was at the end. But from most of recent videos, I have titles as you suggested. And I will correct past videos as well. Thanks for the feedback