I admire your patience , most people would have ended the interview long back ...
@krishnamohan57713 ай бұрын
wonderful video, but rebase could have been explained much better..
@punyabikash36244 ай бұрын
Excellent very helpful sir👌 👌
@ryanwong18734 ай бұрын
can i please get source code?
@Nightcrawler3336 ай бұрын
Thank you for this amazing video. Extremely useful
@user-du9mf8rl9u6 ай бұрын
public static void main (String args[]){ Integer[] num1 = {0,1,0,1,0,1,0,1,0,1}; for(int k=0 ; k<= num1.length ; k++) { for (int i = 0; i < num1.length - 1; i++) { int temp; if (num1[i] > num1[i + 1]) { temp = num1[i]; num1[i] = num1[i + 1]; num1[i + 1] = temp; } } } for(int j=0;j<num1.length;j++){ System.out.println(num1[j]); } }
@user-du9mf8rl9u6 ай бұрын
public static void main (String args[]){ Integer[] num1 = {0,1,0,1,0,1,0,1,0,1}; for(int k=0 ; k<= num1.length ; k++) { for (int i = 0; i < num1.length - 1; i++) { int temp; if (num1[i] > num1[i + 1]) { temp = num1[i]; num1[i] = num1[i + 1]; num1[i + 1] = temp; } } } for(int j=0;j<num1.length;j++){ System.out.println(num1[j]); } }
@user-nm8ll5lz4r6 ай бұрын
Coding knowledge is very poor
@abhishek2002able7 ай бұрын
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.
@stream2learn7 ай бұрын
Thank you so much 💓
@user-ct5xt3uf2r7 ай бұрын
'spark-shell' is not recognized as an internal or external command, operable program or batch file answer - add this in ur system varibles path - file:///C:/spark/spark-3.5.0-bin-hadoop3/bin
@surendramishra48137 ай бұрын
you are good interviewer, taking interview on selection mode not a rejection mode, most of interviewer pre decided like I will ask question from interviewee those he don't know
@SohailAhmad-cu9mo7 ай бұрын
Iam facing this issue please tell how to troubleshoot this 10:57:42 WARN TaskSetManager: Lost task 3.0 in stage 1.0 (TID 7) (DESKTOP-LTORSLO executor driver): Taskkilled (Stage cancelled: Job aborted due to stage failure: Task 2 in stage 1.0 failed tim recent failure: Lost task 2.0 in stage. 1.9 (TID 6) (DESKTOP-LTORSLO executor driver): org.apache.spark. SparkException: Python worker exited unexpectedly (crashed) at org.apache.spark.api.python.BasePythonRunners ReaderIterator$Sanonfun$1.applyOrElse(PythonRunner.scala:612) at org.apache.spark.api.python.BasePythonRunner $ReaderIterators Sanonfun$1.applyOrElse(PythonRunner.scala:594) at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scalá:38) ) at org.apache.spark.api.python.PythonRunner $$anon$3.read(PythonRunner.scala:789 at org.apache.spark.api.python. PythonRunner$$anon$3.read(PythonRunner.scala:766) at org.apache.spark.api.python.BasePythonRunner ReaderIterator.hasNext(PythonRunner.scala:525) at org.apache.spark.InterruptibleIterator.hasNext(InterruptibleIterator.scala:37) at scala.collection. Iterator.foreach(Iterator.scala:943) at scala.collection.Iterator.foreach$(Iterator.scala:943) at org.apache.spark.InterruptibleIterator.foreach (InterruptibleIterator.scala:28) at scala.collection.generic.Growable.Splussplusseq(Growable.scale:62) at scala.collection. generic.Growable.Splus$plusSeq$(Growable.scala:53) at scala.collection.mutable.ArrayBuffer.Splussplusses(Arraylluffer.scala:105) at scala.collection.mutable.ArrayBuffer.Splus$plus$eq(ArrayBuffer.scala:49) at scala.collection.TraversableOnce.to(TraversableOnce.scala:366) at scala.collection. TraversableOnce.tos (TraversableOnce.scala:364) at org.apache.spark. InterruptibleIterator.to(InterruptibleIterator.scala:28) at scala.collection.TraversableOnce.to@uffer(TraversableOnce.scala:358) at scala.collection.TraversableOnce.tolluffers(TraversableOnce.scala:358) at org.apache.spark. InterruptibleIterator.toBuffer(terruptibleIterator.scala:28) at scala.collection. TraversableOnce.toArray(TraversableOnce.scala: 345) at scala.collection.TraversableOnce. toArrays(TraversableOnce.scala:339) at org.apache.spark. InterruptibleIterator, toArray(InterruptibleIterator.scala:28) at org.apache.spark.rdd. RDD. Sanonfun$collect$2(RDD.scala:1046) at org.apache.spark. SparkContext, SanonfunsrunJob$5(SparkContext.scala:2438) org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:93) at at org.apache.spark.TaskContext.runTaskwithlisteners (TaskContext.scala:161) at org.apache.spark.scheduler.Task.run(Task.scala:141) at org.apache.spark. executor, Executor$TaskRunnen SanonfunSrun$4(Executor.scala:620) org.apache.spark util.SparkErrorUtils, trywithSafeFinally(SparkErrorUtils.scala:64) at at org.apache.spark.util.SparkErrorUtils.trywithSafeFinally$(SparkErrorUtils.scala:61) at org.apache.spark.util.Utilss.trywithSafeFinally(Utils.scala:94) apache.spark. org.ap at org. or Executor$TaskRunner.run(Executor.scala:623) .executor at java.base/java.util.concurrent.ThreadPoolExecutor.runlorker (ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) : Caused by java.io.EOFException at java.base/java.io. DataInputStream.readInt(DataInputStream.java:397) at org.apache.spark.api.python.Pythonilunner$Sanon$3.read(PythonRunner.scala:774
@SohailAhmad-cu9mo7 ай бұрын
In both cmd and pycharm
@niharikab52027 ай бұрын
Is he selected???
@stream2learn7 ай бұрын
Nope
@youssefelhormi40187 ай бұрын
Sir can you please send me the source codes
@RealSlimShady-um6gf8 ай бұрын
What was he answering?
@vasudevans9489 ай бұрын
Excellent video - vivid hand holding session bro. THANK YOU
@osmanhaiderr9 ай бұрын
bro i don't have word for you🥰🥰
@stream2learn9 ай бұрын
Always Welcome!
@072010399 ай бұрын
@Stream nice interview
@aqilaghamirzayev10709 ай бұрын
10 years of experience or 6 months experience?
@aman331810 ай бұрын
For the algo question answer , i don't remember if the panelists asked NOT TO USE any inbuilt methods. If they said so then pardon i am sorry. In that Case ONLY ONE LINE CODE WILL DO:- int ar[]={0,0,1,1,0,1,1,0,0,0,0,1,0,0}; Arrays.sort(ar); for(int i=0;i<ar.length;i++) sop(ar[i]+",");
@tomjosi74210 ай бұрын
i love the interviewer, very patient and knowledgeable. The interviewee though is hard headed. I know he is good but he doesn't listen to instructions so it depends on what kind of projects you want to put him. it's always good to listen to the interviewer and comply with the instructions.
@RealSlimShady-um6gf10 ай бұрын
Viewing. Any reason why you were helping with code? This will eat your time asking other questions. Put vs Post you were helping
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; }
@syedfaiq246411 ай бұрын
when i run spark-shell command on cmd i receive the system cannot find the path specified
@demchuckdima Жыл бұрын
I am interested is he hired ?
@stream2learn Жыл бұрын
Nope. Rejected.
@India_Tour_Video Жыл бұрын
Sometimes we don't get opportunity so theory knowledge is there but we should give opportunity then only anyone will get practical experience
@nbs710010 ай бұрын
Exactly people should understand that .. at least give him a chance and hire people
@NBJavaDev Жыл бұрын
Routing questions to somewhere else. Seems explaining anything he finds relevant.
@PJ-oz2pg Жыл бұрын
I used to pause in between the videos and tried to give the answers and it was very good rehearsal. You were also very patient with the interviewee in moments when he panicked initially. That was really nice. Thank you for the upload.
@stream2learn Жыл бұрын
Happy that it helped.
@swethas5368 Жыл бұрын
Thanks for you explanation. BUt I'm getting below error can you please help me ERROR FileFormatWriter: Aborting job.................. raise Py4JJavaError( py4j.protocol.Py4JJavaError: An error occurred while calling o32.csv.
@shwetarameshtapele6856 Жыл бұрын
It would be really helpful if you could post more videos like this
@stream2learn Жыл бұрын
Sure 🎉
@prerakchoksi2379 Жыл бұрын
he should be rejected bad perfornamce.
@huseyinbarin1653 Жыл бұрын
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; } }
@karthikvernekar461 Жыл бұрын
Can u plss snd me the source code for this
@rakshithreddybollu235 Жыл бұрын
You really confused us starting from the merge conflicts explanation(due to incorrect commit message), which is the crucial part of this video. But, trust me this is the best video out there covering all use cases . If possible , please edit the video from merge conflicts section for future viewers.
@abdellilahsettah168 Жыл бұрын
Very interesting, people can't sort an array with function :D Buy answer more complex things..
@abdellilahsettah168 Жыл бұрын
Arrays.stream(integers).sorted().forEach(System.out::print); He was thinking very complex and strange to me, also stressed :D
@tomjosi74210 ай бұрын
Arrays.stream(integers) .sorted((a, b) -> b - a) .forEach(System.out::print)
@abdellilahsettah16810 ай бұрын
@@tomjosi742 you do not need even to sort via lambda, the natural sort is given by default
@tomjosi74210 ай бұрын
@@abdellilahsettah168 i know that, but incase you want to reverse from left to right
@edgardesousjouarre3581 Жыл бұрын
For the questions wtih 0 on left and 1 set right here is the best code i think public static void put0OnTheLeft(Integer[] integers) { List<Integer> integersList = Arrays.asList(integers ); integersList.parallelStream().sorted((y,x ) -> x.compareTo(y)).forEach(System.out::println); } main table ---> Integer[] entiers = {1,0,0,1,0,1,0,1,0,0,0,1,1,1};
@devolajide Жыл бұрын
public static void separateZerosAndOnes(Integer[] entiers) { Arrays.sort(entiers, (a, b) -> a.compareTo(b)); }
@SandySachhu Жыл бұрын
Declare two pointers one for zero and other for 1...n swap it at every occurrence.
@Pawan76457 Жыл бұрын
I haven't seen interviewer like you who really make the opposite person confident. And you looks so strong in technical.
@Pawan76457 Жыл бұрын
That was not the best way to do the arrangement of zeros and one's so many conversations he is doing
@Pawan76457 Жыл бұрын
int index=0; For(int i=0;i<arr.length;i++){ If(arr[i]==0){ arr[index++]=0; } } While (index<arr.length){ arr[index++]=1; // Now all the array will be filled up with 0's in left and 1's in right 😊 }
@rsbalhara11 Жыл бұрын
If I would’ve been taking this interview definitely this guy Is rejected. He doesn’t have the pure real-time skills he just trying to answer from theoretical perspective.
@gupta-xh4sk10 ай бұрын
If you theory concepts are clear then u may proceed otherwise how people would proceed i mean to say find path
@saalikkhan7768 Жыл бұрын
For those looking for answers of the Algo question. Its simple in-place algo (You can say its a simple swapping the numbers algo). int[] intArr = {0,1,0,1,0,0,1,0,1,0}; int j = 0; for(int i =0; i<intArr.length; i++){ if(intArr[i] > 0){ int temp = intArr[j]; intArr[j] = intArr[i]; intArr[i] = temp; j++; } }
@Pawan76457 Жыл бұрын
Did u even see the output or just suggesting like this????
@Pawan76457 Жыл бұрын
It would be like below: For(int i=0;i<are.length-1;i++){ If(arr[i]>arr[i+1]){ int temp=arr[i]; arr[i]=are[i+1]; arr[i+1]=temp; } }
@syedr16 Жыл бұрын
@saalikkhan7786 this actually sorting 0s to the right rather the below snippet is working properly int j = 0; for(int i =0; i<intArr.length; i++){ if(intArr[i] == 0){ int temp = intArr[j]; intArr[j] = intArr[i]; intArr[i] = temp; j++; } }
Hi sir, It would be great 👍, if you could send me the source code for this project tutorial. Could you do so, please, sir? 🙏 Thank you in advance.
@stream2learn Жыл бұрын
Sure.
@shifuteamendurance Жыл бұрын
@@stream2learn Thank you. I'll be looking forward to your email.🙏
@shifuteamendurance Жыл бұрын
From Belgium @stream2learn Great tutorial It's really well done. I like the debugging part and refactoring, topics that we don't find in other tutorials. I would really appreciate if you could send me your sources files in order for me to have a better understanding. Thank you in advance😀
@shifuteamendurance Жыл бұрын
Hi Ashwin, It would be great 👍, if you could send me the source code for this project tutorial. Could you do so, please, sir? 🙏 Thank you in advance.