1 Reverse String Write a function that reverses a string. The input string is given as an array of characters s. You must do this by modifying the input array in-place with O(1) extra memory. Example 1: Input: s = [“h”,”e”,”l”,”l”,”o”] Output: [“o”,”l”,”l”,”e”,”h”] Example 2: Input: s = [“H”,”a”,”n”,”n”,”a”,”h”] Output: [“h”,”a”,”n”,”n”,”a”,”H”] Constraints: Solution: 2 Longest Common Prefix Write a function … Read More “String related LC questions | Javascript” »
Tag: Interview
There can be many instances where you have to handle pressure, such as meeting tight project deadlines, fixing critical bugs, or handling unexpected issues. To answer this question effectively, you can follow these steps: Remember to focus on your actions and the result, and avoid negative comments about the situation or blaming others. Also, emphasize … Read More “HR Interview | Tell me about a time you had to handle pressure” »
if you’re asked to describe a time when you surpassed expectations, you should follow these steps: For example, you could describe a time when you were tasked with developing a new software application within a tight deadline. You took it upon yourself to work longer hours and collaborate closely with your team to streamline the … Read More “HR Interview | Tell me about a time you surpassed expectations” »
As an IT developer, I once set a goal to complete the development of a new software application within three months. I broke down the project into smaller tasks and assigned each task to a specific team member. I scheduled regular check-ins to ensure everyone was on track and to address any challenges that arose. … Read More “HR Interview | Tell me about a time you created a goal and achieved it” »
Here are the key points to keep in mind while answering the question “Tell me about a time when you persuaded someone to change an opinion?” as an IT developer: Sample answerAs an IT developer, I remember a time when I had to persuade my team leader to adopt a new software development approach. The … Read More “HR Interview | Tell me about a time when you persuaded someone to change an opinion” »
While answering this question please follow these steps 1 Describe the situation 2 Describe the steps you took 3 Describe the result Sample answer In my previous job, I worked with a colleague who was known for being difficult to work with. This person was often unresponsive to emails and would frequently miss deadlines, causing … Read More “HR Interview | Tell me about a time you worked with a difficult person” »
“Do you have any questions for me?” is a question that is asked towards the end of the interview to see if the candidate is engaged, intelligent and interested. It also provides the candidate with an opportunity to leave a positive lasting impression. When answering this question, it is important to ask the right type … Read More “HR Interview | Do you have any questions for me?” »
The key to answering this question is to focus on what you can give to the company. Please keep the following points in mind: Sample Answer: When asked about where I see myself in five years, I envision myself in a position where I have continued to grow both personally and professionally. Over the next … Read More “HR Interview | Where do you see yourself in five years?” »
When it comes to job interviews, one question that is almost guaranteed to come up is “Why should we hire you?” This question is your opportunity to demonstrate your value to the company and convince the interviewer that you are the best candidate for the job. As an IT developer, there are several reasons why … Read More “HR Interview | Why should we hire you?” »
you may have heard of the term “garbage collection.” It is an essential concept in modern programming languages like JavaScript. It is an automated process that frees up memory occupied by objects that are no longer in use. This article will provide you with an in-depth understanding of garbage collection in JavaScript. What is Garbage … Read More “Garbage Collection in JavaScript: Understanding How It Works” »