Java Interview| 10+ years experience| Realtime Java Microservices Interview.

Поділитися
Вставка
  • Опубліковано 11 січ 2025

КОМЕНТАРІ • 64

  • @abhishek2002able
    @abhishek2002able 11 місяців тому +4

    I dont know who you are or where you work, but the way you articulate a problem statement and the way you never give up on the candidates is truly amazing. More power to you! Lucky are the folks on your team to have a mentor like you.

  • @hectorflores1176
    @hectorflores1176 2 роки тому +41

    For all the experts developers that say they can do it better, it is really difficult to code on real time, some of you will get extremely nervious, this is not a way to see the full potential of the candidate. After all, the real potential of a candidate is how he adapts to the team, learn new things, help others! Dont forget all you guys started from some point!

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

      This is the screening process followed by almost all IT companies in India

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

      If starting point is 10+ years then you're in the wrong field my friend.

  • @MrMikomi
    @MrMikomi Рік тому +14

    A 10+ years' experience developer's value does not lie in solving leetcode problems. Their value lies in their ability to work unsupervised, to be self-reliant, assiduous, diligent, trustworthy, able to pick up and develop pieces of work with no previous experience, to communicate well with technical and nontechnical colleagues, to have extensive deep and broad knowledge in many areas, to take responsibility for significant parts of the system on which they work....the list goes on and on. Solving leetcode problems quickly doesn't come into it, not at all.

    • @stream2learn
      @stream2learn  Рік тому

      Well Said.

    • @sidneymonteiro3670
      @sidneymonteiro3670 Рік тому

      You are 100% correct.
      Leetcode, hackerrank, codility... are 3rd party money makers on a broken hiring process.

    • @girishpv8193
      @girishpv8193 Рік тому

      "Their value lies in their ability to work unsupervised, to be self-reliant, assiduous, diligent, trustworthy, able to pick up and develop pieces of work with no previous experience". people test coding skills using leetcode problems in a timed environment to test if the candidate has this skill or not...

    • @australiainformationport2907
      @australiainformationport2907 11 місяців тому

      you said it !

  • @Pawan76457
    @Pawan76457 Рік тому +5

    int index=0;
    For(int i=0;i

  • @vivektiwari2844
    @vivektiwari2844 Рік тому

    int countZeros = 0;
    // Count the number of zeros
    for (int num : arr) {
    if (num == 0) {
    countZeros++;
    }
    }
    // Overwrite the array with 0s and 1s
    for (int i = 0; i < countZeros; i++) {
    arr[i] = 0;
    }
    for (int i = countZeros; i < arr.length; i++) {
    arr[i] = 1;
    }

  • @rahulchoudhary414
    @rahulchoudhary414 7 місяців тому

    I admire your patience , most people would have ended the interview long back ...

  • @akware977
    @akware977 2 роки тому +3

    Thanks for sharing experience

  • @amantiwari1481
    @amantiwari1481 2 роки тому +3

    Sorting was easy question ..We could use two pointer algorithm ..initialize first pointer at the start of index and second pointer at the end of index... then we will compare left pointer with right ..if left 0 and right 1 ..increment the left pointer and right pointer ...if left pointer 1 and right 0 we will swap it and increment the left and decrement the right .....if both 0 then increment left leave right as it is ..and if both 1 decrement right and leave left as it is................ Time complexity will be O(n) and space complexity O(1) as everything happened in place

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

      Just loop the array, keep a separate index variable, whenever you encounter 0, insert 0 at the index and increase the index variable. After that in another loop, start with the index’s current value to the array length and insert 1 in the same array.

    • @priyankayadav-ee3ez
      @priyankayadav-ee3ez 2 роки тому +1

      Or count 0's and 1's and later fill the array 🙂

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

      @@Fatality_Retired you mean whenever you encounter 1 and not 0

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

      @@anupkumarbaranwal if you have to bring all 1’s at last then you have to insert 0, whenever you encounter 0, so that all 0’s get inserted in the beginning and rest will be filled with 1 as we will have the 0 counter and total array length.

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

      @@priyankayadav-ee3ez 😂hacker

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

    very good, thanks

  • @meditationrelaxationsounds356
    @meditationrelaxationsounds356 2 роки тому +7

    11 years of experience but dont know how to sort 0 's and 1's, poor performance

    • @reynasebasti3635
      @reynasebasti3635 Рік тому

      Yes we don't learn algo n code at the night of interview after 11 years of experience, like u "desperate" "coder"

    • @Pawan-fd6wl
      @Pawan-fd6wl Рік тому +1

      Bro how much experience you have?? Let's discuss on dsa if u think u r genius

    • @meditationrelaxationsounds356
      @meditationrelaxationsounds356 Рік тому

      @@Pawan-fd6wl peasant

    • @demchuckdima
      @demchuckdima Рік тому

      I would create an int to count '0'
      and no sortings

    • @RN-jo8zt
      @RN-jo8zt Рік тому +1

      fresher 😄😃just solved few leetcode problems

  • @Fatality_Retired
    @Fatality_Retired 2 роки тому +3

    Wow this was pretty easy for so much experience.

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

      But was even this answered properly ?

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

      @@stream2learn Nope, specially the core java answers.

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

      @@Fatality_Retired yeah

    • @prerakchoksi2379
      @prerakchoksi2379 Рік тому +1

      @@stream2learn that guy didnt seemed seriously prepared

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

    11yrs with this knowledge ,he is faking no jpql knowledge.He just learnt the architecture from someone.

  • @juliodegerardo7550
    @juliodegerardo7550 2 роки тому +7

    Integer[] tab = {0,1,0,1,0,1,0,1,0,1,0,1};
    LinkedList list = new LinkedList();
    for (int val: tab) {
    if(val == 0)
    list.addFirst(val);
    else
    list.addLast(val);
    }
    System.out.println(list);

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

      Excellent. What would be the performance of this ?

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

      can also use deque...
      for ( ... )
      {
      if 0 dq.add(0) else dq.addLast(1)
      }

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

      This is not an efficient algorithm as per space complexity will be O(n).

    • @varungudisena9463
      @varungudisena9463 Рік тому

      Excellent

  • @ThiriHaymar-z3e
    @ThiriHaymar-z3e 11 місяців тому

    public static void main (String args[]){

    Integer[] num1 = {0,1,0,1,0,1,0,1,0,1};
    for(int k=0 ; k num1[i + 1]) {
    temp = num1[i];
    num1[i] = num1[i + 1];
    num1[i + 1] = temp;
    }
    }
    }
    for(int j=0;j

  • @andhbhakht6444
    @andhbhakht6444 3 роки тому +1

    anybody who is having less than 3 years experience

  • @Rajdeep11082
    @Rajdeep11082 Рік тому +1

    private static void sortArr(Integer[] inputArr) {
    boolean swapRequired = true;
    while (swapRequired) {
    swapRequired = false;
    for (int i = 0; i < inputArr.length - 1; i++) {
    if(inputArr[i] > inputArr[i+1]) {
    swapRequired = true;
    inputArr[i] = inputArr[i] + inputArr[i+1];
    inputArr[i+1] = inputArr[i] - inputArr[i+1];
    inputArr[i] = inputArr[i] - inputArr[i+1];
    }
    }
    }
    }

  • @SouravSuman-k5j
    @SouravSuman-k5j Місяць тому

    My solution for soring the array -
    for (int i=0; i < num.length; i++) {
    for(int j = 0; j < i; j++) {
    if(num[i] < num[j]) {
    num[j] = num[i] + num[j];
    num[i] = num[j] - num[i];
    num[j] = num[j] - num[i];
    }
    }
    }
    for (int k : num) {
    System.out.println(k);
    }

  • @MindFreeaforLife
    @MindFreeaforLife Рік тому +1

    Very interesting, people can't sort an array with function :D Buy answer more complex things..

  • @aqilaghamirzayev1070
    @aqilaghamirzayev1070 Рік тому

    10 years of experience or 6 months experience?

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

    Company name please ?

  • @demchuckdima
    @demchuckdima Рік тому +1

    I am interested
    is he hired ?

  • @huseyinbarin1653
    @huseyinbarin1653 Рік тому +1

    what an inefficient approach to sort 0(s) and 1(s)
    simply you can count and rearrange the integer array without creating not extra space and with O(n) Time Complexity
    Integer[] arr = new Integer[]{0, 1, 0, 1, 0, 1, 0};
    int zeroCount = 0;
    for (Integer integer : arr) {
    if (integer == 0) zeroCount++;
    }
    int counter = 0;
    while (counter < arr.length) {
    if (zeroCount-- > 0) {
    arr[counter++] = 0;
    } else {
    arr[counter++] = 1;
    }
    }

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

    has he selected?

  • @NBJavaDev
    @NBJavaDev Рік тому

    Routing questions to somewhere else. Seems explaining anything he finds relevant.

  • @prerakchoksi2379
    @prerakchoksi2379 Рік тому +1

    he should be rejected
    bad perfornamce.

  • @onestopreferralOfficial-lv7sp
    @onestopreferralOfficial-lv7sp 5 місяців тому

    Rejected

  • @harshpalsingh1145
    @harshpalsingh1145 Рік тому +2

    Bro needs to go back to college.

  • @shahidanwar6254
    @shahidanwar6254 3 роки тому +1

    selected?

    • @stream2learn
      @stream2learn  3 роки тому +6

      What do you think ? After Judging his skills.

  • @vivektiwari2844
    @vivektiwari2844 Рік тому

    persons.stream()
    .filter(person -> person.getAge() >= 45)
    .forEach(System.out::println);

  • @ThiriHaymar-z3e
    @ThiriHaymar-z3e 11 місяців тому +1

    public static void main (String args[]){

    Integer[] num1 = {0,1,0,1,0,1,0,1,0,1};
    for(int k=0 ; k num1[i + 1]) {
    temp = num1[i];
    num1[i] = num1[i + 1];
    num1[i + 1] = temp;
    }
    }
    }
    for(int j=0;j

  • @niharikab5202
    @niharikab5202 Рік тому +1

    Is he selected???