Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save kellatirupathi/1ee04592c266e6d1b4be627da2732a8e to your computer and use it in GitHub Desktop.

Select an option

Save kellatirupathi/1ee04592c266e6d1b4be627da2732a8e to your computer and use it in GitHub Desktop.
Transcript for transcript_Verona_Matchmaking_1pSEXbxLp-DKnTQzeHMiP_h6Spp5XZ54x.txt
[00:07:00] 90.5
[00:16:38] Sorry, guys.
[00:16:40] I'm running a little late.
[00:16:48] Hello.
[00:16:55] Am I audible to you guys?
[00:16:56] Yeah, I'm going to be audible.
[00:16:58] Okay.
[00:16:59] Hi, it's Arpita.
[00:17:02] I see for React Native.
[00:17:05] Okay.
[00:17:06] Yeah, I'd like to introduce Kaushik.
[00:17:10] He has experience in React Native.
[00:17:12] So, please go ahead and start with the interview.
[00:17:15] Okay. Hello, Gaushek. How are you?
[00:17:25] Hi, sir.
[00:17:26] Hello.
[00:17:28] So I've seen your assignment.
[00:17:31] Can you just quickly run it on your local?
[00:17:33] Yes, sir.
[00:17:36] Shall I share my screen, sir?
[00:17:46] Sir, is my screen visible?
[00:17:48] Yes.
[00:18:20] Okay, just can you quickly show me your code operations,
[00:18:24] all the creating event, deleting event,
[00:18:25] and drag and drop feature that we asked.
[00:18:28] Okay.
[00:18:30] Like, firstly, I'll show the create functionality.
[00:18:34] Yeah.
[00:18:46] You are running it on your local device?
[00:18:50] Yes, I am running it on screen.
[00:18:54] Android Studio?
[00:18:57] Like in Android Studio, I don't have that Google account.
[00:19:00] So I'm running in my local device.
[00:19:04] OK.
[00:19:15] Just change the time once.
[00:19:23] Yes, like any day.
[00:19:25] Okay.
[00:19:29] Keep it at ease.
[00:19:33] Okay.
[00:19:56] Okay, go to the calendar interview.
[00:20:03] Yeah, drag the 7 to somewhere else.
[00:20:05] Okay.
[00:20:20] Yeah, it is.
[00:20:22] All right, you moved it to which date, sorry?
[00:20:24] 18th.
[00:20:25] 18th, okay.
[00:20:27] Not just, okay.
[00:20:29] Just open the event and edit it.
[00:20:32] Okay, yeah, I'm editing.
[00:20:37] Like for editing and delete, I have implemented this file to write.
[00:20:41] Nice.
[00:20:45] We just change the date.
[00:20:47] Like, no, sir, I have not kept that changing the date functionality for this.
[00:20:54] OK, OK. So you can change time and location.
[00:20:58] Right. Yes.
[00:21:00] OK, for date, you have to drag and drop it again.
[00:21:47] So it is changed.
[00:21:50] Like for deleting.
[00:21:52] Again, I'll go for delete.
[00:21:53] Yes.
[00:22:05] Just quickly click on any date like for example 21st that is Sunday.
[00:22:11] Okay.
[00:22:17] And how are you calling this events from Google Calendar?
[00:22:21] Yes, from the Google Calendar itself.
[00:22:24] Okay.
[00:22:25] In the code now, can you show me the code where you added the drag and drop function?
[00:22:31] Okay, sir.
[00:22:32] Wait.
[00:22:36] You can close your device if you want.
[00:22:39] Okay.
[00:22:45] But drag and drop functionality, I have used a pan responder and animated view.
[00:22:52] like this is the code for drag and drop functionality.
[00:23:01] Firstly, we'll set the dragging event like for long press.
[00:23:06] I have used long press for starting the drag functionality.
[00:23:11] Whenever the user long press on any event.
[00:23:16] Like how you're fetching this drop date?
[00:23:19] This go drop date.
[00:23:20] Oh, yeah.
[00:23:22] Whenever the user releases the cache share, we will take the X and Y from the event and
[00:23:37] we will check whether this point in which box this point is present.
[00:23:44] And in that point, date will update that date.
[00:23:50] Okay.
[00:23:50] And if it's not present inside the box, let's say you are dragging it and you drag it above the grid, your date grid, what will happen?
[00:24:01] Like it won't update.
[00:24:03] So, okay, cool.
[00:24:07] All right, and can you show me that package?
[00:24:11] Okay.
[00:24:19] You go to dev dependencies.
[00:24:27] All right.
[00:24:29] Okay.
[00:24:30] Now, show me the layout for your navigation.
[00:24:34] Okay.
[00:24:38] Have you only used a stack navigator in this entire system application?
[00:24:44] Using stack screen, okay.
[00:24:53] Okay, here you used one param in screen options that is header shown.
[00:24:59] Yes, sir.
[00:25:01] What it is used for and what are the similar options available here?
[00:25:06] Do you know about that?
[00:25:09] Like say I'm unable to get your push.
[00:25:11] You have passed it header shown false.
[00:25:14] What if I pass it true?
[00:25:16] Like we'll get the header in the screen.
[00:25:19] Okay.
[00:25:20] And what will header display?
[00:25:22] Like the screen name, the particular screen name.
[00:25:27] And where it will fetch that screen name from?
[00:25:30] Like we are mentioning here, like we are giving a name like splash.
[00:25:34] If we mention header shown true, we'll get a splash as a header.
[00:25:40] Okay, fine.
[00:25:43] Okay, just open your Google Chrome once.
[00:25:47] Okay.
[00:25:49] and the console there.
[00:25:52] Okay.
[00:25:53] Console.
[00:25:54] Yeah.
[00:25:56] This open new tab, yeah.
[00:26:04] So what is your what you're asking about?
[00:26:09] Okay, okay.
[00:26:10] Just close this search box.
[00:26:12] You're using Windows, right?
[00:26:14] So type control shift J.
[00:26:17] Open new tab and then type the new tab.
[00:26:22] Okay.
[00:26:23] Then not in this one, just open the job, then type that.
[00:26:32] Yeah, go to console.
[00:26:34] Okay, now just clear it.
[00:26:43] Yeah, that, yeah.
[00:26:45] Now write a function to reverse a string.
[00:26:52] strings are okay
[00:27:51] Okay, if it's like you can go to code sandbox, it will be easy for you.
[00:27:55] Okay.
[00:27:56] Let's type code sandbox and JavaScript.
[00:28:05] You open the JavaScript version here.
[00:28:16] go to your JS file.
[00:28:28] where this index dot and this go to index for this now here you can type that and call that function
[00:28:35] in the console or every one
[00:28:52] I just signed in here, don't read it and sign it yet.
[00:28:56] Okay.
[00:28:57] Use your Google account and sign in.
[00:29:12] Now you'll be able to edit.
[00:31:50] is long this function.
[00:31:53] Okay.
[00:32:19] Open the terminal in the window next to you.
[00:32:24] Not here, not here on the right side.
[00:32:28] You will see an option.
[00:32:29] Just drag this meet screen and you'll see the option of terminal in the bottom bar.
[00:32:36] Not like that.
[00:32:54] No, the preview. You have to open the preview.
[00:32:58] Yeah, just on three dots.
[00:33:02] Enable, yeah.
[00:33:03] Just click it on again.
[00:33:05] Do it again.
[00:33:21] All right, just copy paste this whole code and open this tab again.
[00:34:24] No, no, no, no, no, no, no, no, no, no, no, no, no, no, no, no, no, no, no, no, no, no,
[00:34:27] let it open.
[00:34:28] It's opening in the right window.
[00:34:41] Also make sure your connectivity is good.
[00:36:17] You have to call that in.
[00:36:42] Okay, just quickly check the chat.
[00:36:46] I have given you one more link.
[00:36:48] It will be more easy.
[00:36:54] The team's chart, you will see it there.
[00:37:17] I'm going to go ahead and start.
[00:37:39] Can we do something about this?
[00:37:42] Yeah, just I'm checking.
[00:37:46] Okay.
[00:38:03] That will be the problem.
[00:38:04] Sorry, again.
[00:38:14] Thank you.
[00:38:55] Hello, have you now?
[00:38:57] Yeah.
[00:38:58] You can carry on.
[00:39:05] Okay, I'm just sending you the link again.
[00:39:11] Open this one.
[00:39:14] Here in the JS window, you can just quickly type that function.
[00:39:19] You can close this window.
[00:39:23] Yeah.
[00:42:35] See, now you have got a condition of infinite loop.
[00:42:39] So just quickly debug it, just figure out how can you solve this.
[00:43:20] Yeah.
[00:43:28] All right, fine.
[00:43:30] Okay, quickly open the chat again.
[00:43:37] And tell me what will be the output of this.
[00:44:15] You are not audible, Kaushik.
[00:44:24] Hello.
[00:44:25] Yeah.
[00:44:26] Am I audible, sir?
[00:44:27] Yeah, yeah.
[00:44:28] Yeah.
[00:44:29] We'll get six as output, sir.
[00:44:32] Okay.
[00:44:33] And how?
[00:44:34] Like, firstly, the reduce function will take first two numbers as a as one and b as two.
[00:44:43] and it will add both of them and it will return back to the list as a 3 and again it takes a 3 as a and this 3 as b and it will add and it will return back the 6 to the list.
[00:44:58] Okay.
[00:45:00] Also tell me the output of this one.
[00:45:05] Okay.
[00:45:10] like it will be five I guess like I'm not sure about it okay and why is that
[00:45:19] happening let's say your answer is correct
[00:45:28] like the JavaScript will like they convert this string to the number.
[00:45:39] So what's that process is called?
[00:45:43] Like I am unable to remember the name of the process, but I know that process will occur.
[00:45:49] That is time conversions.
[00:45:51] Okay.
[00:45:53] And what will be the output of this one?
[00:45:57] This will be 61 in yesterday.
[00:46:00] Okay.
[00:46:02] And same if I do just the same.
[00:46:17] Now what will be the output?
[00:46:21] It will be the same as 61.
[00:46:29] Okay, can you open that code pen again?
[00:46:33] And
[00:46:34] the Fibonacci series
[00:46:36] up to
[00:46:38] let's say 10th.
[00:46:40] N is 10.
[00:46:43] Okay.
[00:48:19] They're calling the wrong function.
[00:48:21] Hello.
[00:48:22] Okay.
[00:51:42] Yes, sir.
[00:51:43] Okay.
[00:51:44] Can you optimize it?
[00:51:50] I'll try to optimize it.
[00:51:51] Okay.
[00:52:06] Also, instead of printing this array, I want you to print these numbers individually and comma separated.
[00:52:14] Okay.
[00:52:20] Just tell me the approach, what approach you will take.
[00:52:23] Like I'm thinking directly we can make a console over here.
[00:52:30] No, I don't think that will work.
[00:52:32] But so see, the better approach will be you have to write a loop inside that function.
[00:52:40] Okay.
[00:52:41] So you have done two good things here.
[00:52:44] Like first this n0, n1.
[00:52:48] And the secondary is that return is right, but you have to write it inside a loop.
[00:52:54] And the iteration will increase and it will push into this fifth series array.
[00:53:00] Then you have to print this array items individually.
[00:53:04] In that case, you are just running loop once your function is sorted, your code will look clean.
[00:53:10] Okay.
[00:53:11] Okay, sir.
[00:53:13] like you got that right?
[00:53:15] I said thank you for the approach.
[00:53:17] Okay, okay.
[00:53:18] Just look at the chat once again.
[00:53:21] Okay.
[00:53:22] See, I have given you two loops here.
[00:53:27] Okay.
[00:53:29] Can you tell me what will be the output of both of them?
[00:54:04] like the output for the functions like will be the same output i guess okay and the output will be
[00:54:14] something like uh firstly it will print zero and then after one second it will print one
[00:54:20] and after two seconds it will print two and after three seconds it will print three
[00:54:28] and so on.
[00:54:29] Okay, just copy the first loop and run it in the code pen.
[00:54:39] So you are saying the output will be first I'll get one, two, three, four and so on in the intervals, right?
[00:54:49] Yeah, I'm thinking.
[00:54:52] see what's the output here the output is five so it took how many times uh in five seconds right
[00:55:02] yeah so okay and now just comment it out and copy the second loop
[00:55:24] Now check the console.
[00:55:32] Okay, now just look at this both loops and tell me what's the difference here.
[00:55:52] like initializing the variables like in the first loop we are initializing the variable using var
[00:55:58] and in second loop
[00:56:00] We are initializing using let.
[00:56:02] Okay, so now can you think of any way how it is different?
[00:56:08] The logic is same.
[00:56:09] I just change the variable declaration, right?
[00:56:13] Yes.
[00:56:13] So what can cause this different nature?
[00:56:19] Just think about it.
[00:56:27] like
[00:56:31] I think there is a functional scope.
[00:56:38] And let is global scope, I think.
[00:56:41] But we are using both of the loops in the global scope, right?
[00:56:45] We are not calling it inside any functions.
[00:56:49] Yes.
[00:56:50] So the scope of both of these are same here.
[00:56:56] Yeah.
[00:57:02] Just Google it.
[00:57:04] Okay.
[00:57:06] You want chat GPT now.
[00:57:08] You can use chat GPT as well.
[00:57:10] Okay.
[00:57:14] If copy paste both the function ask what's wrong here, why are you getting different outputs?
[00:57:21] Okay.
[00:58:25] Okay.
[00:58:26] Got the point?
[00:58:27] Yes, sir.
[00:58:28] Now explain it to me.
[00:58:31] Okay.
[00:58:32] In the first function, like there is a functional scope variable, like whenever the set timeout
[00:58:41] is called, like on that time, the i is set to be 5.
[00:58:48] So, whenever the set timeout is executing, the value is already became to 5 because it
[00:58:56] is a functional scope variable.
[00:58:59] Then our way printing will get all files, but in the case of a.
[00:59:05] there we declare in using let for every every time out like for every exhibiting of timeout
[00:59:16] the j value will be different because it is a scope
[00:59:23] and how these different scope affecting this
[00:59:27] Sir?
[00:59:28] These different scopes are affecting the output, right?
[00:59:32] Yes, sir.
[00:59:33] And why is it so?
[00:59:38] Because the farm.
[00:59:40] Okay.
[00:59:41] Remember I asked you a question last time about hoisting.
[00:59:47] Sir, can you please repeat?
[00:59:49] I asked you a question about hoisting last time, remember?
[00:59:52] Yeah, yes.
[00:59:54] It's the same concept here, the hoisting here.
[00:59:57] See, so which of the element is now hoisted now?
[01:00:01] War or let?
[01:00:05] The wire is hoisted.
[01:00:07] Okay.
[01:00:11] So what happened here?
[01:00:13] It just went inside the loop.
[01:00:15] Okay.
[01:00:16] Okay.
[01:00:17] And set timeout took a time.
[01:00:20] In that time, the loop value also incremented.
[01:00:23] So, VAR's value now incremented to first,
[01:00:26] then second, then third, then fourth, and then fifth.
[01:00:29] Okay.
[01:00:30] That's why you are getting 555 each time.
[01:00:33] But let is not wasting itself.
[01:00:35] That's why value is incrementing after the loop.
[01:00:40] Okay.
[01:00:41] Okay.
[01:00:42] After the step, sorry.
[01:00:44] Thank you, sir.
[01:00:46] Thank you for sharing this.
[01:00:49] Okay, just open the code pen again and type two arrays.
[01:00:54] One is number 567.
[01:00:59] declare two arrays.
[01:01:06] 5, 6 and 7.
[01:01:07] Yes.
[01:01:09] Okay.
[01:01:10] And the second area is 89910.
[01:01:21] Now, how would you merge these two arrays?
[01:01:25] Like I want the output to be 5, 6, 7, 8, 9, 10.
[01:01:28] Like just we can simply add both arrays.
[01:01:32] Or we can use spread operator.
[01:01:51] Don't create another variable.
[01:02:17] See, no, no, no, stop there.
[01:02:21] Yeah, see the output is 5,6.
[01:02:24] Okay.
[01:02:25] Yeah, the output is 5,6,7,8, then 9,10.
[01:02:32] But I want 5,6,7,8,9,10.
[01:02:36] Okay.
[01:02:37] How do you do that?
[01:02:38] Like we can use spread operator.
[01:02:49] Oh, sorry.
[01:02:56] Yeah.
[01:02:58] Fine.
[01:02:58] Okay, but I don't want these arrays, array brackets, sorry.
[01:03:03] Okay.
[01:03:04] How do you do that?
[01:03:16] Where are you getting this five from?
[01:03:17] Okay, okay, okay.
[01:03:19] All right.
[01:03:46] I think we should store this thing in another variable, then we can print.
[01:03:51] Then we won't get the...
[01:03:52] We can only create two variables, that is array1 and array2.
[01:03:55] That's the given.
[01:03:56] We have to compromise.
[01:03:58] We don't want to compromise the space here.
[01:04:08] You can manipulate the same variable.
[01:04:13] So you can manipulate the same variable, but you can only declare two variables.
[01:05:06] Again, that's seven and five.
[01:05:10] Okay, no, the below is out.
[01:05:12] Okay, okay, okay.
[01:05:16] Yeah, but I don't want these brackets.
[01:05:18] I just only want values.
[01:05:37] All right, I'll give you one hint.
[01:05:40] There's a method in JavaScript to do the same.
[01:05:45] Can you remember that?
[01:05:50] You can use dot map.
[01:05:53] Dot map, but it will create one array more.
[01:05:57] You know how map works?
[01:05:59] Behind the same maps create one additional array,
[01:06:03] whether you use it or not, but it will consume your RAM.
[01:06:07] Okay.
[01:06:07] So the main constraint here is I don't want to compromise my space.
[01:06:13] Okay.
[01:06:22] I am unable to remember the methods.
[01:06:41] Sorry, use these two arrays.
[01:06:45] One is 1, 2, 3.
[01:06:47] Okay.
[01:07:05] And the other one is 236.
[01:07:09] 234.
[01:07:20] Okay.
[01:07:21] Okay.
[01:07:22] Now, can you give me, I want two output here.
[01:07:27] One is the union of these two arrays and the other is intersection of these two arrays.
[01:07:35] There will be two print statements.
[01:07:39] One will be printing the union and the second one will be printing intersection.
[01:07:48] Okay.
[01:09:43] Sorry, sir, I'm unable to get the logic.
[01:09:47] Okay, okay.
[01:09:47] Can you quickly tell me your thought process about this?
[01:09:52] How would you, like...
[01:09:55] Give me a quick algo.
[01:10:02] I'm thinking to iterate a for loop for these two arrays and we'll check whether this element
[01:10:11] is the array 2 or not.
[01:10:16] For intersection, we'll check whether the element is present in array 2 or not and using
[01:10:22] that we'll create a new array and we'll print that array.
[01:10:30] Okay, also how would you check if let's say I've given you a number 4 if it is available in array 2 or not?
[01:10:38] Like we can use dot find method to check whether the number is present or not.
[01:10:45] Okay, and what if it is like...
[01:10:48] iterating multiple times let's say you have four in two positions okay but you
[01:10:56] want to only fetch the first one the first position
[01:11:23] No, just quickly tell me, you don't have to write it.
[01:11:26] Just like by using dot find method, we can get the only first number.
[01:11:33] Okay.
[01:11:34] And what about if I want to fetch the last occurrence?
[01:11:40] Oh.
[01:11:47] like there is a L index like I'm there is a method called L index like left left index
[01:11:59] I will give you the last value.
[01:12:02] I'm thinking so.
[01:12:28] I'm thinking that we can use our index of four.
[01:12:33] We can get the other another index of that particular number.
[01:12:39] Okay, that's it from my side.
[01:12:44] If you have any questions.
[01:12:48] Yeah, that's it.
[01:12:50] You can stop presenting as well.
[01:12:52] Okay.
[01:13:01] Can I leave the meeting?
[01:13:04] Sorry?
[01:13:05] Can I leave the meeting, sir?
[01:13:07] Yeah, sure.
[01:13:12] Yeah, I have enough.
[01:13:16] Okay, so this is from my side.
[01:13:20] I'll talk to Nishant and he'll get back to you.
[01:13:24] I'll pass on my feedback.
[01:13:27] Okay.
[01:13:27] Yeah, any suggestions?
[01:13:30] Yeah, like he was good at basics, but he should go a little bit for the intermediates.
[01:13:38] Like if you can see the chat, like this for loop question that should be like easy, not at intermediate level.
[01:13:48] The hosting was the answer.
[01:13:50] I remember he answered the hosting in our previous rounds.
[01:13:55] But you should be able to solve these kind of questions.
[01:14:01] Yeah.
[01:14:03] So, if we train him according to your expectations, would you consider interviewing him again?
[01:14:12] Sorry, your voice is breaking a little bit.
[01:14:15] Yes, am I audible now?
[01:14:17] Yeah.
[01:14:18] If we train the candidate according to your expectations, would you be interested in interviewing the candidate again?
[01:14:29] Okay, but do you have anyone else?
[01:14:34] For that, maybe I have to check with the team.
[01:14:38] The candidate had also done his project as given by Nishant.
[01:14:45] Did he get an opportunity to explain it for you?
[01:14:49] Yeah, he explained it to me but see the project wise he was good. I have seen his code also. I was impressed and also the first round I only took the first round. Actually someone else had to take the second round today but he is on sick leave.
[01:15:07] That's what I had to take. I have given the positive feedback last thing, but I think he should like study a little more.
[01:15:16] Otherwise, it will be like.
[01:15:19] I think like the questions I asked was not on the hard level.
[01:15:23] I went so easy to medium easy type.
[01:15:28] I was hoping he will be able to solve this but I'll share the explained feedback and
[01:15:37] Nishant will be the one who will get the results of this.
[01:15:40] Thanks, thanks.
[01:15:41] So I'll also discuss with Akshita and our program manager.
[01:15:46] Let me see like if we have got any more candidates for trained and react native.
[01:15:51] And if there are, I'll get back to you.
[01:15:53] Okay.
[01:15:54] Thanks.
[01:15:55] Thanks for your time.
[01:15:56] Thank you.
[01:15:57] Thanks.
[01:15:58] Bye bye.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment