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: job interview
Please consider the following points in mind: As an IT leader, I believe in leading by example and empowering my team members to reach their full potential. My leadership style is based on collaboration, communication, and trust. I prefer to give my team members the autonomy to make decisions and be innovative. One of my … Read More “HR Interview | Describe your leadership style” »
Points to keep in mind while answering this question 1 Resist Using an exact number 2 Use neutral research – find what companies are paying for the same role and say as per my research for this role companies are paying this range of salary.3 Use the salary tool for finding range of salary (Linkedin, … Read More “HR Interview | What are your salary expectations?” »
While answering this question please consider the below points in mind.1 Be Honest 2 Be Confident and unapologetic 3 Describe the good that came from it Sample Answer: Yes, I can certainly explain my employment gap. During that period, I took some time to focus on personal matters that required my attention. I was able … Read More “HR Interview | Can you explain your employment gap?” »
While answering this question please consider the below points in mind.1 Be Positive 2 Emphasize what you’re looking for 3 Relate your answer to the current role Sample Example: While I have enjoyed my time in my current role, I feel that it is time for me to move on and take on new challenges. … Read More “HR Interview | Why do you want to leave your current role?” »
While answering this question please keep these points in mind sample answer 1 ) “My greatest weakness as a developer is that I tend to get so absorbed in my work that I lose track of time and forget to take breaks. While this can be helpful in terms of getting projects done quickly and … Read More “HR interview | what is your greatest weakness?” »
During answering this question don’t be arrogant and try to be humble. To answer this question try to keep these points in mind. Here is the sample answer I believe that my greatest strength as an IT developer is my ability to constantly learn and adapt to new technologies and programming languages. I enjoy taking … Read More “HR Interview | What is your greatest strength?” »