Deloitte Interview experience Java Developer 2+ years experience

Поделиться
HTML-код
  • Опубликовано: 17 окт 2024

Комментарии • 23

  • @abhijitkarmakar6328
    @abhijitkarmakar6328 Год назад +3

    In the first coding question, he using array hashing and character ASCII value, since it was mentioned that we only have lowercase characters, so the person created a array of size 26 to denote the each character index values. He was substracting a because ASCII range for 65-90(a-z), so the hash array would look something like int [] hashArray = {0,0,0,......0} , 26 zeros on each index. Now when he gets the index of each char by substracting a. For example if we want index of b, it will be 66-65 = 1 and then incrementing the value at that index, after computation he would have an array in which index have count of the characters.
    Now he could easily iterate through the array for each character and find if count of the char is 1 then return the index else if not found return -1;

  • @raghavendrac1053
    @raghavendrac1053 7 месяцев назад

    Can you please make vedio on Deloitte techno manegeral round for java developers

  • @AxissehSammy
    @AxissehSammy 11 месяцев назад +1

    Use Streams if you are using 1.8

  • @HanilKumarMuchu
    @HanilKumarMuchu 7 месяцев назад +1

    public class Practise {
    public static int method1(String str) {
    String s1=str;
    int count=0;
    int num=0;
    for(int i=0;i

  • @sanjaykumarray149
    @sanjaykumarray149 5 месяцев назад

    How many rounds of interview you had buddy?

  • @ayushsahu3983
    @ayushsahu3983 11 месяцев назад

    How much package you had got from deloitte after 2 years exp.

  • @ChandanKumar-xd1tg
    @ChandanKumar-xd1tg Год назад

    Current interview Questions??

    • @krishnakantsharma2201
      @krishnakantsharma2201  Год назад

      Yes bro. And u can see this video also ruclips.net/video/_byMXtfsmxY/видео.html

    • @Softwfdzc1355
      @Softwfdzc1355 Год назад

      This is a real interview?

  • @funtube7444
    @funtube7444 5 месяцев назад

    Bro is using chatgpt😂

  • @ManishWorkspace
    @ManishWorkspace 11 месяцев назад +4

    this is first question of answer
    String sentence = "abcdcaf";
    for (int i = 0; i < sentence.length(); i++) {
    int count = 0;
    for (int j = 0; j < sentence.length(); j++) {
    if (sentence.charAt(i) == sentence.charAt(j)) {
    count = count + 1;
    }
    }
    if (count == 1) {
    System.out.println(sentence.charAt(i));
    break;
    }
    }

  • @avaneetagrahari4502
    @avaneetagrahari4502 11 месяцев назад

    He got selected or not?

  • @Softwfdzc1355
    @Softwfdzc1355 Год назад +2

    This is real interview of Deloitte?

  • @divyanshkaushik6265
    @divyanshkaushik6265 3 месяца назад

    public class FirstNonRepeatingCharacter {
    public static int firstNonRepeatingCharacter(String str) {
    Map frequencyMap = str.chars()
    .mapToObj(c -> (char) c)
    .collect(Collectors.groupingBy(c -> c, LinkedHashMap::new, Collectors.counting()));
    Optional firstNonRepeatingChar = frequencyMap.entrySet()
    .stream()
    .filter(entry -> entry.getValue() == 1)
    .map(Map.Entry::getKey)
    .findFirst();
    return firstNonRepeatingChar.map(c -> str.indexOf(c)).orElse(-1);
    }
    public static void main(String[] args) {
    String input = "abcdcafb";
    int result = firstNonRepeatingCharacter(input);
    System.out.println(result);
    }
    }