Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

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

Select an option

Save kellatirupathi/1eb83ed5678e19e3cc050de3f14992f8 to your computer and use it in GitHub Desktop.
Transcript for transcript_19f3AglxD75c6fL1QVXqWildupxq2wB94_1_2763_181fab149276_5.txt
[00:00:03] Okay, so you are familiar with problem solving?
[00:00:07] Like DSA problems?
[00:00:09] Yeah, I have used Python.
[00:00:13] So I will share you one problem in chat, okay?
[00:00:19] One minute, just give me a minute.
[00:00:55] Okay.
[00:00:56] Okay.
[00:00:57] Like which medium, which mode of playground shall I use?
[00:01:01] Like,
[00:01:07] You can use any online compiler and any language you know.
[00:01:12] Okay.
[00:01:52] Let's take my inputs.
[00:02:05] I'll let you see the numbers.
[00:02:14] Okay.
[00:02:16] I think that'd be fine.
[00:02:19] I think that's fine.
[00:06:51] Okay.
[00:09:39] Yes.
[00:09:40] Sir?
[00:09:41] Yeah, it's working.
[00:09:44] Do you need to implement other test case like I have only put this test case?
[00:09:49] So can you explain your approach first?
[00:09:53] Yeah, first I have installing an array, empty array.
[00:10:00] with numbers an array of numbers of like this array first element
[00:10:08] and I am using a loop with numbers like traversing from from 2 to and the array 10
[00:10:20] and the conditions comes here if like numbers of one the array of first element is double equal to the
[00:10:29] previous element plus one that's the consecutive terms come here then then we need to array we need to put this array into this sub array
[00:10:40] So, if not, we need to append the array into the subarray into the array.
[00:10:48] And further we need to let that subarray to number 5.
[00:10:54] And this process goes on and then we get the subarray of constants.
[00:11:05] So I have shared you a link of
[00:11:09] Injects.
[00:11:10] Inject.
[00:11:13] Okay, lucky website.
[00:11:45] Now create a button and check the functionalities.
[00:12:01] So, I'm not sure how many people make it, but I'm going to make it.
[00:12:12] Okay, we are adding new gates with the time, start time and time, right?
[00:12:18] Yes.
[00:12:20] So, okay.
[00:12:21] How many times you can add new?
[00:12:23] A new row of the day start time and time will be.
[00:12:27] Okay.
[00:12:27] Yes.
[00:12:29] You can add individual values inside every input.
[00:12:33] Also, you have cross icon.
[00:12:37] In every room you can delete the particular room as well okay clear it will delete all the rooms okay yeah yeah these are the functionalities
[00:12:50] So can you build this small application?
[00:12:55] Yeah, like it's input like date and time.
[00:13:00] Okay, input time we need to do in a deep container.
[00:13:04] and clear all we need to clear that list we need to add a list first of all here append into the root element yeah can do
[00:13:13] okay you can open any like your vs code or any online id if you want okay
[00:13:24] Like it's full of JavaScript.
[00:13:30] You can use React.
[00:13:32] Sure.
[00:13:34] Okay, React.
[00:13:37] Like, if I need to, okay, I'm open your music.
[00:13:56] Let's see if it works.
[00:14:01] So, not to stop recording.
[00:14:05] And I don't see that this applications.
[00:14:11] Documents, yeah.
[00:14:12] Projects, projects.
[00:14:22] Let's see.
[00:14:28] Same.
[00:14:30] We'll supply directory demo.
[00:14:34] For the demo.
[00:14:36] Yeah.
[00:14:38] Que...
[00:15:59] Sir, before starting that, I have a question like one minute.
[00:16:03] Yeah, regarding this question, like whether we have inbuilt in called day or we need to redefine like user friendly this part like day.
[00:16:19] You can use it as well.
[00:16:26] If you can't find any, so you can use any simple input as well.
[00:16:32] Ok.
[00:16:33] Cool.
[00:16:37] Sometimes.
[00:16:49] She is just going to act.
[00:19:13] Yeah, that's true.
[00:22:16] Can you open the local host 5173?
[00:22:23] Megan, sir?
[00:22:28] You are showing for going today.
[00:22:31] Not yet, not the last.
[00:22:36] I had to fix that.
[00:22:42] I'm sorry.
[00:22:49] Maybe.
[00:22:57] Your voice is breaking and your camera is stuck.
[00:23:07] It is still breaking.
[00:23:12] That's why I think so.
[00:23:19] You need to disconnect and join again.
[00:23:23] Your voice is breaking.
[00:23:26] I think that's a good point.
[00:23:38] Sir, now we start again.
[00:23:42] Yeah, yeah.
[00:23:43] You are audible now.
[00:23:46] Chaco.
[00:23:51] Okay, and it do.
[00:23:56] To determine that.
[00:24:01] Okay.
[00:24:02] And.
[00:24:05] It was great.
[00:24:40] Que se dará a ter em.
[00:24:59] Maybe I'm going to start.
[00:25:07] Good night.
[00:27:24] Some of the errors.
[00:27:29] I'm going to try to fix it.
[00:27:32] It's 40 for the half of K5.
[00:27:49] Well, you just have to talk.
[00:28:16] Hello?
[00:28:22] Hello?
[00:28:23] Am I audible?
[00:28:25] Yes, you are audible.
[00:28:26] Yes, sir.
[00:28:27] Some terminal issues.
[00:28:29] Like, shall I use this concept in my own project?
[00:28:36] Yeah.
[00:28:38] Yes, you can.
[00:28:40] Yeah, then I'm copying this.
[00:28:48] Yeah, thank you.
[00:29:07] Okay.
[00:29:17] What is this project?
[00:30:20] Opening package is on package.
[00:30:29] Can you see the command?
[00:30:30] Start.
[00:30:31] So, that is list of the name of the device.
[00:30:34] Again, you are ready to send the sub-device.
[00:30:40] Sorry, come again.
[00:30:41] I can't get you.
[00:30:42] So there are command like start build test agent.
[00:30:46] You can use them.
[00:30:48] What issue are you getting?
[00:30:49] Running the npm start.
[00:30:52] Yeah, npm start.
[00:30:54] I have used that.
[00:30:57] Ok, eso a ti.
[00:31:08] I didn't script command not to follow.
[00:31:14] I think I have scripted it.
[00:31:16] That's why I'm reading.
[00:31:18] Sorry, I have not entirely scripted.
[00:31:22] Sir, your voice was breaking, sir.
[00:31:27] Hello?
[00:31:28] The script is not installed.
[00:31:32] Or it is deprecated already.
[00:31:33] So maybe.
[00:31:35] Do you have any white project already?
[00:31:39] Like I have a playground like JavaScript playground.
[00:31:42] So let me.
[00:31:46] Okay, sir.
[00:31:46] One minute.
[00:31:47] I'll be trying.
[00:31:48] Let's leave that.
[00:31:50] Let's move to the next question.
[00:31:51] Okay.
[00:31:53] But it's an easy program, sir.
[00:31:55] Need to solve like.
[00:31:57] No problem.
[00:31:58] Actually, I don't have that much time.
[00:32:02] Okay.
[00:32:03] Yes, we can know.
[00:32:05] But the implementation, I can explain the implementations.
[00:32:08] Okay, give me an implementation.
[00:32:11] Yeah.
[00:32:12] So here we are using functional components in React.
[00:32:15] So we need to use like use state here.
[00:32:18] It's an important thing like like getting inputs like date, day, day and time inputs.
[00:32:27] And like in that website, it was going to the console log.
[00:32:31] So we can.
[00:32:32] Due to the console log otherwise we can store and other thing is we need to store in an array like in a spread using spread operator we need to get the old values and a new value like using previous state
[00:32:49] so what would be the structure of the model you are
[00:32:52] going to print, going to show.
[00:32:56] Come again, sir.
[00:32:58] What is the model fields you have?
[00:33:01] Like you need to use like a string object.
[00:33:05] What do you want to use it?
[00:33:06] Yeah, it's a good question.
[00:33:08] Like if we are storing that value, like in the console, I have seen that it's in a format of array.
[00:33:16] Like the date and time would be stored in the like in the form of string maybe in the string and it should be go to the use state with array
[00:33:28] so array of what strings or get array of objects like a key value pair no no no one minute let me check
[00:33:39] Let me think, sir.
[00:33:40] Can you give me two minutes?
[00:33:43] Okay.
[00:33:45] Like, sorting, you know.
[00:33:50] Yeah, we are storing it as an object, like T value.
[00:33:55] Okay, Q value object.
[00:33:58] Okay, so we have like a unique delete method as well, to delete any specific row.
[00:34:05] So how would you write that function to delete any specific row?
[00:34:09] Yeah, like we need to address like specify each with an index like key.
[00:34:16] We need to give a key.
[00:34:18] By using that key, we need to delete that.
[00:34:23] So how should I remove it from the array?
[00:34:27] Yeah, like using the key, like every list need to be specified using a key.
[00:34:34] Using the like, if we need to delete that, we need to give a like index format and specify the key and remove item from the list like that we can give.
[00:34:48] Okay so instead of happen we can use dot remove so how would you store this array
[00:34:56] yeah like array we need to have the existing elements also so in order to attend that we need to use previous state like it's an
[00:35:06] arrow function, short hand function, like using previous state, we can store and spread operator.
[00:35:12] We can store the existence array and the new array into the array.
[00:35:17] No, I'm asking how do you store the array in your React application using any
[00:35:24] We have hooks like use state, use control, reducer or something.
[00:35:30] Like we used state, like it's a hooks, used state and we use square brackets to store the arrays.
[00:35:38] So can you use context and use reducer?
[00:35:47] Use contest is used for like it's avoid for
[00:35:51] avoiding props drilling we use conduct so that that will be used for use conduct and use reference
[00:36:01] I think it's use ready sir right yes you're ready sir you study sir this time I will come over this like
[00:36:14] Reducing complex calculations, I think so.
[00:36:17] Maybe we can also use that.
[00:36:21] But normally we use use state.
[00:36:25] So what, how many hooks have you used in your, like I have used like use state, use effects
[00:36:35] and, and I land, land, not used, but land, use memo and use callback.
[00:36:42] And etc and the custom use also it's applicable we can use that okay
[00:36:49] so you are you haven't like used context apis use reducer yeah yeah i also used like uh context and this like um to avoid props trilling i used context
[00:37:02] create context and use context.
[00:37:04] So have you used any library that is alternative to context API?
[00:37:11] Library.
[00:37:13] Plate 2.
[00:37:16] No, no, no.
[00:37:18] Like I'm not familiar with that library.
[00:37:22] Or if I contest, it's if you could.
[00:37:27] I have project.
[00:37:28] Shall I open a project?
[00:37:31] No, you don't need to open any project.
[00:37:33] Okay.
[00:37:34] So that I can explain that how that used.
[00:37:38] Okay.
[00:37:39] It's no issue.
[00:37:39] So how you optimize your React application?
[00:37:43] Yeah, if you are using a use effect in our react, we need to use the dependency array because crucial in a react application is a rendering.
[00:37:55] If you are missing the dependency array, like in use effect, then it will be rendered in every seconds.
[00:38:02] The any changes occurs so so dependency array is an important thing to optimize
[00:38:09] anything else like um lazy loading more concept out there like lazy loading and then uh then storing like uh images format
[00:38:21] in a separate file and compressed image to avoid a slow response.
[00:38:29] More are there.
[00:38:31] So can you tell me about deep about the lazy learning?
[00:38:38] Come again, sir?
[00:38:40] Can you tell me in detail the lazy nodding?
[00:38:44] LAC loading is we are setting a time I think so that's the thing I think correct me if I am wrong like setting a time to load an action.
[00:38:56] Actually, in lazy loading, what we do, like, we load the different components
[00:39:05] previously, before showing up, after that required, if it is required, then we load only.
[00:39:14] Okay.
[00:39:15] If it's because we know load that right?
[00:39:18] Yes.
[00:39:19] Yeah, good.
[00:39:21] I need to search more about that.
[00:39:23] Yeah.
[00:39:25] So, you know about event loop in JavaScript?
[00:39:29] Do it.
[00:39:30] So, event loop.
[00:39:34] Even loops like onClick that's a matter you are talking about onClick onSubmit
[00:39:42] how JavaScript handles async and async yeah yeah yeah that's that's the thing yeah like JavaScript is a
[00:39:50] language that use like line by line execution so line by line execution means like if you are giving a console it will be prioritized
[00:40:00] in a stack format.
[00:40:03] Console will be executed first and then only other formats.
[00:40:08] So JavaScript is a single function.
[00:40:15] JavaScript is single thread language, right?
[00:40:18] It runs on single thread JavaScript.
[00:40:23] Yeah, single function at a time.
[00:40:26] So how it manages to perform a single operation?
[00:40:31] Passing operations.
[00:40:33] Yes.
[00:40:34] Yeah, we use async keyword and await to do to perform the action like in a specific time and promises.
[00:40:44] We also use promises to resolve or reject some of the functions.
[00:40:49] Like mostly we use async functions.
[00:40:52] To resolve a function.
[00:40:55] So what it does under the hood?
[00:40:59] Come again, sir?
[00:41:00] What it does under the hood?
[00:41:04] Promise a sync of it.
[00:41:06] It's all our syntax, right?
[00:41:08] How it manages inside like the...
[00:41:11] Interior of the JavaScript and Node.js.
[00:41:14] Yeah, yeah, I understand that.
[00:41:15] Like if you are defining a function with asynchronous, async, then we need to give all the inside operations in the await format.
[00:41:26] Whereas in promises, we need to give that like
[00:41:30] There are three properties in there like pending, fulfilled and rejected.
[00:41:36] So resolve, reject, this all the formats are used in there inside the function.
[00:41:44] Okay, so you have like created some backends as well or not?
[00:41:50] Yeah, using Node.js, I have built like API response requests.
[00:41:57] What types of API have you created?
[00:42:00] Like RESTful API like called like get push.
[00:42:07] Delete post all this four concept I have cleared and created more of them.
[00:42:13] So what is rest?
[00:42:17] Restful APIs are like restricted some like I have like this this four concept are under that API I think so.
[00:42:30] What is different between put and patch?
[00:42:34] put and catch catch is used for catch and error in a no no no catch not put and patch
[00:42:44] catch like I have seen that in a question like put and patch are similar with some times but but various put and patch are
[00:42:57] somewhat similar but any time is like missing between that some some minute difference was there so can i know that what is that like difference between
[00:43:11] So why do we use put and patch?
[00:43:13] Do you know that?
[00:43:16] I am familiar with put but patch is new to me but I heard about that.
[00:43:21] So why we use put method?
[00:43:24] Yeah, if you need to update anything like in a system thing, if we need to update anything, we use put.
[00:43:35] or updating you are saying right yeah updating anything from there that is also used for updating but instead of replacing the whole document or row it is just updating the partial of the
[00:43:52] can you come again sir i can't understand that
[00:43:54] patch updates partially put up put replace the old document completely okay partially it will be doing action okay okay okay great great so i'm running out of time so
[00:44:10] do you have any question for me
[00:44:13] Yes, sir.
[00:44:14] If the process like I said, then what is the process next?
[00:44:22] Come again?
[00:44:25] Like, I am attending technical round one.
[00:44:27] And is there any technical round two?
[00:44:31] Yes, there is one more technical round.
[00:44:34] Okay, okay.
[00:44:34] And what are the concepts there?
[00:44:39] It is like basic, it judges your understanding.
[00:44:45] How will you understand the problem?
[00:44:47] How will you take them?
[00:44:48] And how will you solve them?
[00:44:51] Also the structuring part as well.
[00:44:53] You want to communicate better because it is a behavioral problem as well.
[00:45:03] Anything else?
[00:45:05] Okay, another question.
[00:45:06] Sorry to interrupt.
[00:45:09] I researched the company.
[00:45:10] It's in Bangalore, PocoCare.
[00:45:13] And it's based on the medical emergency.
[00:45:19] I have research on that.
[00:45:21] It's cool.
[00:45:21] And in the company, if I'm selected, what's the role of myself?
[00:45:28] Yeah, you are going to hire, right?
[00:45:34] Full stack developer.
[00:45:36] Okay, great.
[00:45:38] Okay, sir.
[00:45:39] That's all from me.
[00:45:40] And thank you for your time.
[00:45:43] It was a wonderful time with you.
[00:45:44] And thank you for the patience.
[00:45:45] Sorry for the inconvenience.
[00:45:48] Okay.
[00:45:49] Okay.
[00:45:50] Thank you, sir.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment