Deloitte Interview experience Java Developer 2+ years experience

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 พ.ย. 2024

ความคิดเห็น • 24

  • @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;

  • @AshokkumarS-oc8kc
    @AshokkumarS-oc8kc หลายเดือนก่อน

    Iterate the string
    If (str.indexOf(str.charAt(i)) == str.lastIndexOf(str.charAt(i)))
    Return the character.
    Once the loop finishes, return -1.

  • @raghavendrac1053
    @raghavendrac1053 8 หลายเดือนก่อน

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

  • @HanilKumarMuchu
    @HanilKumarMuchu 9 หลายเดือนก่อน +2

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

  • @AxissehSammy
    @AxissehSammy ปีที่แล้ว +1

    Use Streams if you are using 1.8

  • @ayushsahu3983
    @ayushsahu3983 ปีที่แล้ว +1

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

  • @sanjaykumarray149
    @sanjaykumarray149 6 หลายเดือนก่อน

    How many rounds of interview you had buddy?

  • @ChandanKumar-xd1tg
    @ChandanKumar-xd1tg ปีที่แล้ว

    Current interview Questions??

    • @krishnakantsharma2201
      @krishnakantsharma2201  ปีที่แล้ว

      Yes bro. And u can see this video also th-cam.com/video/_byMXtfsmxY/w-d-xo.html

    • @Softwfdzc1355
      @Softwfdzc1355 ปีที่แล้ว

      This is a real interview?

  • @funtube7444
    @funtube7444 7 หลายเดือนก่อน

    Bro is using chatgpt😂

  • @avaneetagrahari4502
    @avaneetagrahari4502 ปีที่แล้ว

    He got selected or not?

  • @ManishWorkspace
    @ManishWorkspace ปีที่แล้ว +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;
    }
    }

  • @Softwfdzc1355
    @Softwfdzc1355 ปีที่แล้ว +2

    This is real interview of Deloitte?

  • @divyanshkaushik6265
    @divyanshkaushik6265 5 หลายเดือนก่อน

    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);
    }
    }