Upload Button Icon Add office photos

Filter interviews by

Lifesight Software Developer Interview Questions and Answers

Updated 14 Sep 2021

6 Interview questions

A Software Developer was asked
Q. 

Sliding Window Maximum Problem Statement

You are given an array/list of integers with length 'N'. A sliding window of size 'K' moves from the start to the end of the array. For each of the 'N'-'K'+1 possib...

Ans. 

Sliding window maximum problem where we find maximum element in each window of size K.

  • Use a deque to store indices of elements in decreasing order within the window.

  • Pop elements from the deque that are out of the current window.

  • Append the maximum element from the front of the deque to the result for each window.

A Software Developer was asked
Q. 

Combination Sum Problem Statement

Given an array of distinct positive integers ARR and a non-negative integer 'B', find all unique combinations in the array where the sum is equal to 'B'. Numbers can be ch...

Ans. 

Find all unique combinations in an array where the sum is equal to a given target sum, with elements in non-decreasing order.

  • Use backtracking to generate all possible combinations of elements in the array that sum up to the target sum.

  • Sort the array to ensure elements in each combination are in non-decreasing order.

  • Handle duplicate elements in the array to avoid duplicate combinations.

  • Consider edge cases like empt...

Software Developer Interview Questions Asked at Other Companies

asked in Amazon
Q1. Maximum Subarray Sum Problem Statement Given an array of integers ... read more
asked in Rakuten
Q2. Merge Two Sorted Arrays Problem Statement Given two sorted intege ... read more
asked in Amazon
Q3. Minimum Number of Platforms Needed Problem Statement You are give ... read more
asked in Cognizant
Q4. Nth Fibonacci Number Problem Statement Calculate the Nth term in ... read more
asked in PhonePe
Q5. Form a Triangle Problem Statement You are given an array of integ ... read more
A Software Developer was asked
Q. 

Longest Substring with K Distinct Characters

You are provided with a string S of length N, consisting of lowercase English alphabet letters, and a positive integer K.

Your task is to determine the maximum...

Ans. 

Find the longest substring with at most K distinct characters in a given string.

  • Use a sliding window approach to keep track of the characters and their counts in the substring.

  • Maintain a hashmap to store the characters and their frequencies.

  • Update the window size and characters count as you iterate through the string.

  • Return the maximum length of the substring with at most K distinct characters.

A Software Developer was asked
Q. 

Cycle Detection in Undirected Graph Problem Statement

You are provided with an undirected graph containing 'N' vertices and 'M' edges. The vertices are numbered from 1 to 'N'. Your objective is to determin...

Ans. 

Detect if an undirected graph contains a cycle.

  • Use depth-first search (DFS) to detect cycles in the graph.

  • Maintain a visited array to keep track of visited vertices.

  • If a visited vertex is encountered again during DFS, a cycle exists.

  • Consider disconnected graphs as well.

  • Example: For input N=3, Edges=[[1, 2], [2, 3], [1, 3]], output is Yes.

A Software Developer was asked
Q. 

Validate Binary Search Tree (BST)

You are given a binary tree with 'N' integer nodes. Your task is to determine whether this binary tree is a Binary Search Tree (BST).

BST Definition:

A Binary Search Tre...

Ans. 

Validate if a given binary tree is a Binary Search Tree (BST) or not.

  • Check if the left subtree of a node contains only nodes with data less than the node's data.

  • Check if the right subtree of a node contains only nodes with data greater than the node's data.

  • Recursively check if both the left and right subtrees are also binary search trees.

  • Example: For each node, validate if its left child is less than the node and ...

A Software Developer was asked
Q. 

Covid Vaccination Distribution Problem

As the Government ramps up vaccination drives to combat the second wave of Covid-19, you are tasked with helping plan an effective vaccination schedule. Your goal is ...

Ans. 

Given constraints and rules, find maximum vaccines administered on a specific day during a vaccination drive.

  • Iterate through each test case and calculate the maximum number of vaccines distributed on the specified day.

  • Distribute vaccines evenly across days while maximizing the number on the specified day.

  • Ensure that the sum of vaccines administered does not exceed the maximum allowed.

  • Consider edge cases like when ...

Lifesight Software Developer Interview Experiences

1 interview found

I appeared for an interview in Jan 2021.

Round 1 - Video Call 

(3 Questions)

Round duration - 75 Minutes
Round difficulty - Medium

This round was with SDE-1 
After my introduction , he asked me 3 Questions
 

  • Q1. 

    Validate Binary Search Tree (BST)

    You are given a binary tree with 'N' integer nodes. Your task is to determine whether this binary tree is a Binary Search Tree (BST).

    BST Definition:

    A Binary Search Tr...

  • Ans. 

    Validate if a given binary tree is a Binary Search Tree (BST) or not.

    • Check if the left subtree of a node contains only nodes with data less than the node's data.

    • Check if the right subtree of a node contains only nodes with data greater than the node's data.

    • Recursively check if both the left and right subtrees are also binary search trees.

    • Example: For each node, validate if its left child is less than the node and right...

  • Answered by AI
  • Q2. 

    Longest Substring with K Distinct Characters

    You are provided with a string S of length N, consisting of lowercase English alphabet letters, and a positive integer K.

    Your task is to determine the maximu...

  • Ans. 

    Find the longest substring with at most K distinct characters in a given string.

    • Use a sliding window approach to keep track of the characters and their counts in the substring.

    • Maintain a hashmap to store the characters and their frequencies.

    • Update the window size and characters count as you iterate through the string.

    • Return the maximum length of the substring with at most K distinct characters.

  • Answered by AI
  • Q3. 

    Cycle Detection in Undirected Graph Problem Statement

    You are provided with an undirected graph containing 'N' vertices and 'M' edges. The vertices are numbered from 1 to 'N'. Your objective is to determi...

  • Ans. 

    Detect if an undirected graph contains a cycle.

    • Use depth-first search (DFS) to detect cycles in the graph.

    • Maintain a visited array to keep track of visited vertices.

    • If a visited vertex is encountered again during DFS, a cycle exists.

    • Consider disconnected graphs as well.

    • Example: For input N=3, Edges=[[1, 2], [2, 3], [1, 3]], output is Yes.

  • Answered by AI
Round 2 - Video Call 

(2 Questions)

Round duration - 90 Miinutes
Round difficulty - Medium

This round was with a Senior Data Engineer as this position was a mix of Backend and Big Data.

 

  • Q1. 

    Covid Vaccination Distribution Problem

    As the Government ramps up vaccination drives to combat the second wave of Covid-19, you are tasked with helping plan an effective vaccination schedule. Your goal is...

  • Ans. 

    Given constraints and rules, find maximum vaccines administered on a specific day during a vaccination drive.

    • Iterate through each test case and calculate the maximum number of vaccines distributed on the specified day.

    • Distribute vaccines evenly across days while maximizing the number on the specified day.

    • Ensure that the sum of vaccines administered does not exceed the maximum allowed.

    • Consider edge cases like when the n...

  • Answered by AI
  • Q2. 

    Combination Sum Problem Statement

    Given an array of distinct positive integers ARR and a non-negative integer 'B', find all unique combinations in the array where the sum is equal to 'B'. Numbers can be c...

  • Ans. 

    Find all unique combinations in an array where the sum is equal to a given target sum, with elements in non-decreasing order.

    • Use backtracking to generate all possible combinations of elements in the array that sum up to the target sum.

    • Sort the array to ensure elements in each combination are in non-decreasing order.

    • Handle duplicate elements in the array to avoid duplicate combinations.

    • Consider edge cases like empty arr...

  • Answered by AI
Round 3 - Video Call 

(1 Question)

Round duration - 75 Minutes
Round difficulty - Easy

This round was taken by Engineering Manager
There were 2 sections to this round
Technical and Non Techincal
 

  • Q1. 

    Sliding Window Maximum Problem Statement

    You are given an array/list of integers with length 'N'. A sliding window of size 'K' moves from the start to the end of the array. For each of the 'N'-'K'+1 possi...

  • Ans. 

    Sliding window maximum problem where we find maximum element in each window of size K.

    • Use a deque to store indices of elements in decreasing order within the window.

    • Pop elements from the deque that are out of the current window.

    • Append the maximum element from the front of the deque to the result for each window.

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from Guru Gobind Singh Indraprastha University. Eligibility criteria2+ years of Work Experience in the relevant fieldLifesight interview preparation:Topics to prepare for the interview - DataStructures, Algorithms, Problem Solving, Big Data, Distributed Systems, SparkTime required to prepare for the interview - 3 MonthsInterview preparation tips for other job seekers

Tip 1 : Be solid with the basics of Ds, Algo. Good to have end to end projects which are hosted on cloud.
Tip 2 : Its always good to be presentable and have good communications skills
Tip 3 : Be honest, clear in approach and always walkthrough your thought process to the interviewer

Application resume tips for other job seekers

Tip 1 : Mention your projects and experience at the top. Be clear on what was done, a brief on how it was done, language /tech stack involved. If possible try to host and make it accessible. You never know if you can present it with just one click.
Tip 2 : Choose a balance between, white spaces and text, it should be well indented, no grammatical errors.
Tip 3 : It takes less than 2 min to scan a resume. Don't mention things which are irrelevant.

Final outcome of the interviewSelected

Skills evaluated in this interview

Top trending discussions

View All
Interview Tips & Stories
2w
toobluntforu
·
works at
Cvent
Can speak English, can’t deliver in interviews
I feel like I can't speak fluently during interviews. I do know english well and use it daily to communicate, but the moment I'm in an interview, I just get stuck. since it's not my first language, I struggle to express what I actually feel. I know the answer in my head, but I just can’t deliver it properly at that moment. Please guide me
Got a question about Lifesight?
Ask anonymously on communities.

Interview questions from similar companies

I appeared for an interview in Dec 2020.

Round 1 - Coding Test 

(1 Question)

Round duration - 40 minutes
Round difficulty - Easy

  • Q1. 

    Count Subsequences Problem Statement

    Given an integer array ARR of size N, your task is to find the total number of subsequences in which all elements are equal.

    Explanation:

    A subsequence of an array i...

  • Ans. 

    Count the total number of subsequences in which all elements are equal in an integer array.

    • Iterate through the array and count the frequency of each element.

    • Calculate the total number of subsequences for each element using the formula (frequency * (frequency + 1) / 2).

    • Sum up the total number of subsequences for all elements and return the result modulo 10^9 + 7.

  • Answered by AI

Interview Preparation Tips

Eligibility criteriaNoWipro Limited interview preparation:Topics to prepare for the interview - Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic ProgrammingTime required to prepare for the interview - 4 monthsInterview preparation tips for other job seekers

Tip 1 : Do practice as much as you can
Tip 2 : Coding is key to crack

Application resume tips for other job seekers

Tip 1 : It should look nice
Tip 2 : Skills should be mentioned properly

Final outcome of the interviewRejected

Skills evaluated in this interview

Software Developer Interview Questions Asked at Other Companies

asked in Amazon
Q1. Maximum Subarray Sum Problem Statement Given an array of integers ... read more
asked in Rakuten
Q2. Merge Two Sorted Arrays Problem Statement Given two sorted intege ... read more
asked in Amazon
Q3. Minimum Number of Platforms Needed Problem Statement You are give ... read more
asked in Cognizant
Q4. Nth Fibonacci Number Problem Statement Calculate the Nth term in ... read more
asked in PhonePe
Q5. Form a Triangle Problem Statement You are given an array of integ ... read more

Interview Questionnaire 

3 Questions

  • Q1. Mathematical ,verbal, logical, puzzles, pseudo code
  • Q2. Verbal
  • Q3. Logical

Interview Preparation Tips

Interview preparation tips for other job seekers - Help me for infosys apptitude test interview

I applied via Campus Placement and was interviewed in Oct 2021. There was 1 interview round.

Interview Questionnaire 

1 Question

  • Q1. Tell me about yourself

Interview Preparation Tips

Interview preparation tips for other job seekers - Explore your self , add studies,hobbies,short term and long term goals.keep it short and simple.

Interview Questionnaire 

2 Questions

  • Q1. What is software configuration management?
  • Ans. 

    Software configuration management is the process of tracking and controlling changes made to software throughout its lifecycle.

    • It involves version control, build management, and release management.

    • It ensures that changes are made in a controlled and systematic manner.

    • Examples include Git, SVN, and Jenkins.

    • It helps to maintain the integrity and quality of the software.

    • It is essential for collaboration among team members...

  • Answered by AI
  • Q2. What are software requirements?
  • Ans. 

    Software requirements are the functional and non-functional specifications that a software system must meet.

    • Software requirements define what the software should do and how it should behave

    • They include functional requirements (what the software should do) and non-functional requirements (how well it should do it)

    • Requirements are typically documented in a requirements specification document

    • They are used to guide the dev...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - 👉 First of all you have a good communication skills,Technical skills
👉 Be Confidential and be prepared
👉 Review common interview questions
👉 And finally End the interview with a good impression

I appeared for an interview in Nov 2020.

Round 1 - Coding Test 

(1 Question)

Round duration - 2 hours
Round difficulty - Medium

In the 1st round 
Aptitude
Reasoning
English
Automata fix( code debug) 
Timing in morning
Environment is good
Interviewer was very cool and interactive

  • Q1. 

    Encode the Message Problem Statement

    Given a text message, your task is to return the Run-length Encoding of the given message.

    Run-length encoding is a fast and simple method of encoding strings, repres...

  • Ans. 

    Implement a function to encode a text message using run-length encoding.

    • Iterate through the message and count consecutive characters

    • Append the character and its count to the encoded message

    • Handle edge cases like single characters or empty message

  • Answered by AI
Round 2 - Video Call 

(1 Question)

Round duration - 30 minutes
Round difficulty - Medium

This is interview round 
Ques from basic electronics
C language

  • Q1. 

    Print Name and Age Problem Statement

    Create a class named Person with a string variable 'name' and an integer variable 'age', such that these variables are not accessible outside the class. Implement a me...

  • Ans. 

    Create a class Person with private variables name and age, and methods to set and get their values.

    • Create a class Person with private variables 'name' and 'age'.

    • Implement a method setValue to set the variables' values.

    • Implement a method getValue to print the variables' values.

    • Ensure the name is a non-empty string and the age is a non-negative integer.

    • Encapsulate the data and provide a clear interface for setting and ge...

  • Answered by AI

Interview Preparation Tips

Eligibility criteriaAbove 6 cgpaCognizant interview preparation:Topics to prepare for the interview - Electronics basics, C language , Data structure, OOPS, ProjectsTime required to prepare for the interview - 2 monthsInterview preparation tips for other job seekers

Tip 1 : Do aptitude from indiabix. Go through your basics. At least one language u know. Learn about your branch basics. Know concept of data structure and oops. 
Tip 2 : prepare your final project well. 

Application resume tips for other job seekers

Tip 1 : the skills you know very well mention in resume
Tip 2 : mention project in resume

Final outcome of the interviewSelected

Skills evaluated in this interview

Interview Questionnaire 

2 Questions

  • Q1. They asked me on java and I have joined as a fresher they not much questions as I got selected as fresher on oops concepts and collections
  • Q2. Please be confident while facing interview and they will check your communication skills
Are these interview questions helpful?

Interview Questionnaire 

1 Question

  • Q1. Based on programming

Interview Questionnaire 

2 Questions

  • Q1. Hibernate,Java 7,Multithreading
  • Q2. Prepare well on the above topics
Round 1 - Aptitude Test 

HTML

Round 2 - Aptitude Test 

Aptitude and resume shortlist and HTML

Round 3 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips

Interview Preparation Tips

Interview preparation tips for other job seekers - No tips

Tell us how to improve this page.

Lifesight Software Developer Reviews and Ratings

based on 1 review

4.0/5

Rating in categories

4.0

Skill development

4.0

Work-life balance

3.0

Salary

3.0

Job security

3.0

Company culture

4.0

Promotions

3.0

Work satisfaction

Explore 1 Review and Rating
Product Marketing Manager
7 salaries
unlock blur

₹15 L/yr - ₹17 L/yr

Associate Product Manager
6 salaries
unlock blur

₹17 L/yr - ₹19 L/yr

Data Analyst
6 salaries
unlock blur

₹4.6 L/yr - ₹7.6 L/yr

Associate Software Engineer
5 salaries
unlock blur

₹8 L/yr - ₹9 L/yr

Senior Software Engineer
5 salaries
unlock blur

₹15 L/yr - ₹42.5 L/yr

Explore more salaries
Compare Lifesight with

TCS

3.6
Compare

Accenture

3.7
Compare

Wipro

3.7
Compare

Cognizant

3.7
Compare
write
Share an Interview