Upload Button Icon Add office photos

HARMAN

Compare button icon Compare button icon Compare

Filter interviews by

HARMAN Android Developer Interview Questions and Answers

Updated 30 Dec 2024

8 Interview questions

An Android Developer was asked 6mo ago
Q. Explain the activity lifecycle.
Ans. 

Activity lifecycle refers to the series of states an activity goes through during its lifetime in an Android app.

  • onCreate() - activity is created

  • onStart() - activity becomes visible to the user

  • onResume() - activity is interacting with the user

  • onPause() - activity is partially visible but still running

  • onStop() - activity is no longer visible to the user

  • onDestroy() - activity is being destroyed

An Android Developer was asked 6mo ago
Q. Explain the MVVM architecture.
Ans. 

MVVM is an architectural pattern used in software development, particularly in Android apps, to separate the user interface from the business logic.

  • MVVM stands for Model-View-ViewModel

  • Model represents the data and business logic

  • View is the UI component that displays the data and interacts with the user

  • ViewModel acts as a mediator between the Model and the View, handling user interactions and updating the Model

  • MVVM...

Android Developer Interview Questions Asked at Other Companies

asked in Paytm
Q1. BST Iterator Problem Statement You are tasked with creating a cla ... read more
asked in Hike
Q2. Design a photo viewing app that displays images from the disk in ... read more
asked in Paytm
Q3. Cube Sum Pairs Problem Statement Given a positive integer N, find ... read more
asked in Rupeek
Q4. Majority Element Problem Statement Given an array/list 'ARR' cons ... read more
asked in Paytm
Q5. Colorful Knapsack Problem You are given a set of 'N' stones, each ... read more
An Android Developer was asked
Q. What are SOLID principles in OOP languages?
Ans. 

SOLID principles are a set of five design principles that help in creating maintainable and scalable software applications.

  • S - Single Responsibility Principle (SRP)

  • O - Open-Closed Principle (OCP)

  • L - Liskov Substitution Principle (LSP)

  • I - Interface Segregation Principle (ISP)

  • D - Dependency Inversion Principle (DIP)

An Android Developer was asked
Q. Explain the Room Persistence Library.
Ans. 

Room is an abstraction layer over SQLite to allow for more robust database access while harnessing the full power of SQLite.

  • Room is a part of Android Architecture Components.

  • It provides compile-time verification of SQL queries.

  • It simplifies database operations by eliminating boilerplate code.

  • It supports LiveData and RxJava for reactive programming.

  • It allows for easy migration of database schema.

  • It provides a clean...

An Android Developer was asked
Q. Write a Builder class.
Ans. 

A Builder class is used to create objects with a large number of optional parameters.

  • Builder class is a creational design pattern.

  • It separates the construction of a complex object from its representation.

  • It allows you to create different variations of an object while avoiding constructor pollution.

  • It has a fluent interface that allows you to chain method calls together.

  • Example: StringBuilder in Java.

An Android Developer was asked
Q. What do you know about MVVM?
Ans. 

MVVM stands for Model-View-ViewModel, an architectural pattern used in software development.

  • MVVM separates the user interface from the business logic and data access layers.

  • Model represents the data and business logic, View represents the UI, and ViewModel acts as a mediator between the two.

  • ViewModel exposes data and commands to the View, and communicates with the Model to retrieve and save data.

  • MVVM is commonly u...

An Android Developer was asked
Q. What is the Android Framework?
Ans. 

Android Framework is a set of APIs and tools provided by Android to develop applications for Android devices.

  • It provides a set of pre-built components for building mobile applications.

  • It includes libraries for UI design, data storage, networking, and more.

  • Developers can use Android Framework to create apps for smartphones, tablets, wearables, and other devices.

  • Examples of Android Framework components include Activ...

Are these interview questions helpful?
An Android Developer was asked
Q. Explain - Coroutin, RxJava
Ans. 

Coroutines and RxJava are both used for asynchronous programming in Android development.

  • Coroutines are a lightweight solution for asynchronous programming that allow for easy cancellation and error handling.

  • RxJava is a reactive programming library that uses Observables and Observers to handle asynchronous events.

  • Both Coroutines and RxJava can be used to simplify complex asynchronous code and improve app performanc...

HARMAN Android Developer Interview Experiences

3 interviews found

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
No response
Round 1 - Technical 

(2 Questions)

  • Q1. Explain activity lifecycle
  • Ans. 

    Activity lifecycle refers to the series of states an activity goes through during its lifetime in an Android app.

    • onCreate() - activity is created

    • onStart() - activity becomes visible to the user

    • onResume() - activity is interacting with the user

    • onPause() - activity is partially visible but still running

    • onStop() - activity is no longer visible to the user

    • onDestroy() - activity is being destroyed

  • Answered by AI
  • Q2. MVVM Architecture explain
  • Ans. 

    MVVM is an architectural pattern used in software development, particularly in Android apps, to separate the user interface from the business logic.

    • MVVM stands for Model-View-ViewModel

    • Model represents the data and business logic

    • View is the UI component that displays the data and interacts with the user

    • ViewModel acts as a mediator between the Model and the View, handling user interactions and updating the Model

    • MVVM help...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare Core Interview question
Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

It was DSA questions

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Naukri.com and was interviewed in Jul 2022. There were 2 interview rounds.

Round 1 - 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
Round 2 - Technical 

(7 Questions)

  • Q1. What is Android Framework?
  • Ans. 

    Android Framework is a set of APIs and tools provided by Android to develop applications for Android devices.

    • It provides a set of pre-built components for building mobile applications.

    • It includes libraries for UI design, data storage, networking, and more.

    • Developers can use Android Framework to create apps for smartphones, tablets, wearables, and other devices.

    • Examples of Android Framework components include Activities...

  • Answered by AI
  • Q2. What do you know about MVVM ?
  • Ans. 

    MVVM stands for Model-View-ViewModel, an architectural pattern used in software development.

    • MVVM separates the user interface from the business logic and data access layers.

    • Model represents the data and business logic, View represents the UI, and ViewModel acts as a mediator between the two.

    • ViewModel exposes data and commands to the View, and communicates with the Model to retrieve and save data.

    • MVVM is commonly used i...

  • Answered by AI
  • Q3. Explain Room Persistence Library.
  • Ans. 

    Room is an abstraction layer over SQLite to allow for more robust database access while harnessing the full power of SQLite.

    • Room is a part of Android Architecture Components.

    • It provides compile-time verification of SQL queries.

    • It simplifies database operations by eliminating boilerplate code.

    • It supports LiveData and RxJava for reactive programming.

    • It allows for easy migration of database schema.

    • It provides a clean API ...

  • Answered by AI
  • Q4. Write a Builder class.
  • Ans. 

    A Builder class is used to create objects with a large number of optional parameters.

    • Builder class is a creational design pattern.

    • It separates the construction of a complex object from its representation.

    • It allows you to create different variations of an object while avoiding constructor pollution.

    • It has a fluent interface that allows you to chain method calls together.

    • Example: StringBuilder in Java.

  • Answered by AI
  • Q5. Kotlin - letinit, val, var, extension function, data class.
  • Q6. Explain - Coroutin, RxJava
  • Ans. 

    Coroutines and RxJava are both used for asynchronous programming in Android development.

    • Coroutines are a lightweight solution for asynchronous programming that allow for easy cancellation and error handling.

    • RxJava is a reactive programming library that uses Observables and Observers to handle asynchronous events.

    • Both Coroutines and RxJava can be used to simplify complex asynchronous code and improve app performance.

    • Cor...

  • Answered by AI
  • Q7. What are SOLID principles in OOP languages?
  • Ans. 

    SOLID principles are a set of five design principles that help in creating maintainable and scalable software applications.

    • S - Single Responsibility Principle (SRP)

    • O - Open-Closed Principle (OCP)

    • L - Liskov Substitution Principle (LSP)

    • I - Interface Segregation Principle (ISP)

    • D - Dependency Inversion Principle (DIP)

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Keep brush your knowledge. Learn by examples, create sample projects.

Skills evaluated in this interview

Top trending discussions

View All
Interview Tips & Stories
1w (edited)
a team lead
Why are women still asked such personal questions in interview?
I recently went for an interview… and honestly, m still trying to process what just happened. Instead of being asked about my skills, experience, or how I could add value to the company… the questions took a totally unexpected turn. The interviewer started asking things like When are you getting married? Are you engaged? And m sure, if I had said I was married, the next question would’ve been How long have you been married? What does my personal life have to do with the job m applying for? This is where I felt the gender discrimination hit hard. These types of questions are so casually thrown at women during interviews but are they ever asked to men? No one asks male candidates if they’re planning a wedding or how old their kids are. So why is it okay to ask women? Can we please stop normalising this kind of behaviour in interviews? Our careers shouldn’t be judged by our relationship status. Period.
Got a question about HARMAN?
Ask anonymously on communities.

Interview questions from similar companies

I applied via Walk-in and was interviewed before Aug 2020. There was 1 interview round.

Interview Questionnaire 

1 Question

  • Q1. About my last job description

Interview Preparation Tips

Interview preparation tips for other job seekers - Says limited and point to point thing, and be clear....

Interview Questionnaire 

1 Question

  • Q1. Stge concepts, vSAN, RAID, basic testing, OS concepts, NVMe, SATA, SAS

I appeared for an interview before Sep 2020.

Round 1 - Coding Test 

(1 Question)

Round duration - 180 Minutes
Round difficulty - Medium

Round was held in the morning at 10 am.

  • Q1. 

    M - Coloring Problem Statement

    Given an undirected graph with 'N' nodes in the form of an adjacency matrix and an integer 'M', determine if it is possible to color the vertices of the graph using at most ...

  • Ans. 

    The problem involves determining if a given graph can be colored with at most 'M' colors without adjacent vertices sharing the same color.

    • Create a function that takes the adjacency matrix, number of nodes 'N', and maximum number of colors 'M' as input.

    • Implement a graph coloring algorithm such as backtracking or greedy coloring to check if the graph can be colored with at most 'M' colors.

    • Check if adjacent vertices have ...

  • Answered by AI
Round 2 - Face to Face 

(1 Question)

Round duration - 40 Minutes
Round difficulty - Medium

The round was held in the evening

  • Q1. 

    Trie Data Structure Implementation

    Design and implement a Trie (prefix tree) to perform the following operations:

    • insert(word): Add a string "word" to the Trie.
    • search(word): Verify if the string "w...
  • Ans. 

    Implement a Trie data structure to insert, search, and check for prefixes in strings.

    • Create a TrieNode class with children and isEndOfWord attributes.

    • Implement insert, search, and startsWith methods in the Trie class.

    • Use a Trie to efficiently store and search for strings based on prefixes.

    • Example: insert 'apple', search 'apple' returns true, startsWith 'app' returns true, search 'app' returns false.

  • Answered by AI
Round 3 - HR 

Round duration - 10 Minutes
Round difficulty - Easy

Was held in the morning around 9 am

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from TIET - Thapar Institute of Engineering And Technology. I applied for the job as SDE - 1 in NoidaEligibility criteriaAbove 7 CGPASamsung interview preparation:Topics to prepare for the interview - OOPS, Algorithms, Operating System, DBMS, Data StructuresTime required to prepare for the interview - 2 MonthsInterview preparation tips for other job seekers

Tip 1 : Focus on graphs, most questions are from this topic
Tip 2 : Prepare well about the projects you mention in your resume
Tip 3 : Do not fill the resume with too many things. Keep it simple

Application resume tips for other job seekers

Tip 1 : Have 2-3 projects on resume. But also be prepared to answer questions related to the projects.
Tip 2 : Do not mention too many things. Keep it short and simple

Final outcome of the interviewSelected

Skills evaluated in this interview

I appeared for an interview before Jan 2021.

Round 1 - Coding Test 

(2 Questions)

Round duration - 120 Minutes
Round difficulty - Medium

The round had 2 coding problems to solve with varying difficulty. Each candidate had a different set of questions. The round was around 2 pm. The webcam was turned on to keep an eye on candidates.

  • Q1. 

    Bursting Balloons Problem

    Given an array ARR of size N, where each element represents the height of a balloon. The task is to destroy all balloons by shooting arrows from left to right. When an arrow hits...

  • Ans. 

    Find the minimum number of arrows needed to burst all balloons by shooting arrows from left to right.

    • Sort the array in non-decreasing order to make it easier to calculate the minimum number of arrows needed.

    • Iterate through the sorted array and count the number of times the height decreases compared to the previous balloon.

    • The count of decreases + 1 will give the minimum number of arrows needed to burst all balloons.

    • Exa...

  • Answered by AI
  • Q2. 

    Count Leaf Nodes in a Binary Tree

    Count the number of leaf nodes present in a given binary tree. A binary tree is a data structure where each node has at most two children, known as the left child and the...

  • Ans. 

    Count the number of leaf nodes in a binary tree.

    • Traverse the binary tree and check if both left and right children are NULL to identify leaf nodes.

    • Use recursion to traverse the tree efficiently.

    • Keep track of the count of leaf nodes as you traverse the tree.

    • Handle base cases where the current node is NULL or a leaf node.

  • Answered by AI
Round 2 - Face to Face 

(2 Questions)

Round duration - 60 Minutes
Round difficulty - Medium

This round had 2 questions related to DSA. I was first asked to explain my approach with proper complexity analysis and then code the soution in any IDE that I prefer.

  • Q1. 

    Rod Cutting Problem Statement

    Given a rod of a certain length, the rod can be divided into different sizes, each with an associated cost. Your task is to determine the maximum cost that can be obtained by...

  • Ans. 

    The Rod Cutting Problem involves maximizing the profit obtained by cutting a rod into smaller pieces and selling them.

    • Use dynamic programming to solve this problem efficiently.

    • Create a table to store the maximum profit for each sub-length of the rod.

    • Iterate through the rod lengths and update the table with the maximum profit.

    • The final answer will be the maximum profit for the total length of the rod.

  • Answered by AI
  • Q2. 

    Count Subarrays with Given XOR Problem Statement

    You are given an array of integers ARR and an integer X. Your task is to determine the number of subarrays of ARR whose bitwise XOR is equal to X.

    Example...

  • Ans. 

    Count the number of subarrays in an array whose XOR is equal to a given value.

    • Iterate through the array and keep track of XOR values and their frequencies using a hashmap.

    • For each element in the array, calculate the XOR with the current element and check if the required XOR value exists in the hashmap.

    • Increment the count of subarrays whenever the required XOR value is found in the hashmap.

  • Answered by AI
Round 3 - Face to Face 

(3 Questions)

Round duration - 60 Minutes
Round difficulty - Medium

This round had 2 questions of DSA of Easy-Medium difficulty and at the end I was asked a Puzzle to check my general problem solving ability.

  • Q1. 

    Rotting Oranges Problem Statement

    You are given a grid containing oranges where each cell of the grid can contain one of the three integer values:

    • 0 - representing an empty cell
    • 1 - representing a fre...
  • Ans. 

    Find the minimum time required to rot all fresh oranges in a grid.

    • Use Breadth First Search (BFS) to simulate the rotting process of oranges.

    • Keep track of the time taken to rot all oranges and the count of fresh oranges remaining.

    • If all fresh oranges are not rotten after simulation, return -1.

    • Handle edge cases like empty grid or no fresh oranges present.

    • Example: For the given grid, the minimum time required is 4 seconds...

  • Answered by AI
  • Q2. 

    Detect and Remove Loop in Linked List

    For a given singly linked list, identify if a loop exists and remove it, adjusting the linked list in place. Return the modified linked list.

    Expected Complexity:

    A...

  • Ans. 

    Detect and remove loop in a singly linked list in place with O(n) time complexity and O(1) space complexity.

    • Use Floyd's Cycle Detection Algorithm to identify the loop in the linked list.

    • Once the loop is detected, use two pointers approach to find the start of the loop.

    • Adjust the pointers to remove the loop and return the modified linked list.

    • Example: For input 5 2 and 1 2 3 4 5, return 1 2 3 4 5 without the loop.

  • Answered by AI
  • Q3. You have two wires of different lengths that are both capable of burning for exactly one hour when ignited at both ends. How can you measure a time interval of 45 minutes using these two wires?
Round 4 - Face to Face 

(4 Questions)

Round duration - 50 Minutes
Round difficulty - Medium

This round had 2 Algorithmic questions wherein I was supposed to code both the problems after discussing their
approaches and respective time and space complexities . After that , I was grilled on some OOPS concepts related to C++.

  • Q1. 

    Longest Palindromic Substring Problem Statement

    You are provided with a string STR of length N. The task is to find the longest palindromic substring within STR. If there are several palindromic substring...

  • Ans. 

    Given a string, find the longest palindromic substring within it.

    • Iterate through the string and expand around each character to find palindromes

    • Keep track of the longest palindrome found so far

    • Return the longest palindromic substring

  • Answered by AI
  • Q2. 

    Quick Sort Problem Statement

    You are provided with an array of integers. The task is to sort the array in ascending order using the quick sort algorithm.

    Quick sort is a divide-and-conquer algorithm. It ...

  • Ans. 

    Yes, the quick sort algorithm can be enhanced to achieve NlogN complexity in the worst case by using a randomized version of the algorithm.

    • Randomized quick sort involves randomly selecting the pivot element to reduce the chances of worst-case scenarios.

    • By choosing a random pivot, the algorithm becomes less predictable and more likely to achieve the desired time complexity.

    • This enhancement helps in avoiding the worst-ca...

  • Answered by AI
  • Q3. What are friend functions in C++?
  • Ans. 

    Friend functions in C++ are functions that are not members of a class but have access to its private and protected members.

    • Friend functions are declared inside a class with the keyword 'friend'.

    • They can access private and protected members of the class.

    • They are not member functions of the class, but have the same access rights as member functions.

    • Friend functions are useful for implementing operators that are not part ...

  • Answered by AI
  • Q4. What is the difference between Early Binding and Late Binding in C++?
  • Ans. 

    Early binding is resolved at compile time while late binding is resolved at runtime in C++.

    • Early binding is also known as static binding, where the function call is resolved at compile time based on the type of the object.

    • Late binding is also known as dynamic binding, where the function call is resolved at runtime based on the actual type of the object.

    • Early binding is faster as the function call is directly linked to ...

  • Answered by AI

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPASamsung interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, System Design, Aptitude, OOPSTime required to prepare for the interview - 4 MonthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Final outcome of the interviewSelected

Skills evaluated in this interview

Are these interview questions helpful?

I appeared for an interview before Sep 2020.

Round 1 - Coding Test 

Round duration - 60 minutes
Round difficulty - Easy

This was coding round and was conducted on Cocubes platform. It is not IDE but kind of white board coding platform. C/C++, Java and Python were only allowed languages.

Round 2 - Coding Test 

Round duration - 30 minutes
Round difficulty - Easy

This was pen and paper round. Total 40 shortlisted candidates were grouped into 8 groups (each of 5). Each group was given a coding question which they have to solve on paper and explain it to the recruiter. 2 to 3 from each group were selected for the next round.

Round 3 - Face to Face 

(1 Question)

Round duration - 60 minutes
Round difficulty - Easy

This was general face to face Data Structures and Algorithms based round.

  • Q1. How do you perform a spiral order traversal of a binary tree? Please provide an explanation or code to print the binary tree in spiral order.
  • Ans. 

    Spiral order traversal of a binary tree involves printing nodes level by level alternating between left to right and right to left.

    • Start by pushing the root node into a queue.

    • While the queue is not empty, pop a node, print its value, and push its children into the queue.

    • For each level, alternate between printing nodes from left to right and right to left.

    • Repeat until all nodes are printed in spiral order.

  • Answered by AI
Round 4 - HR 

Round duration - 45 minutes
Round difficulty - Easy

It was the last round.

Interview Preparation Tips

Professional and academic backgroundI completed Electronics & Communication Engineering from Veermata Jijabai Technological Institute. I applied for the job as SDE - 1 in UlhasnagarEligibility criteriaCGPA above 7.5 Samsung interview preparation:Topics to prepare for the interview - Only Data Structures and Algorithms.Time required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Be real during the interview and don’t show off. Also, practice Data Structures and Algorithms based problems as only through practice you will be able to solve questions quickly during the interview. Also prepare for theory subjects like Object-Oriented Programming System, Database Management System, Computer networks, etc.

Application resume tips for other job seekers

Keep your resume simple. Prefer LaTeX. Don't use colourful templates. They are too common and very unprofessional. Keep it black and white and keep your content richer. Keep it of 1 page and 2 pages only if you have achieved a lot. Don’t use fillers. Any unwanted information on the resume leaves a bad impact on the interviewer.

Final outcome of the interviewSelected

Skills evaluated in this interview

I appeared for an interview before Jan 2021.

Round 1 - Coding Test 

(3 Questions)

Round duration - 120 Minutes
Round difficulty - Medium

This was an online coding round where we had 3 questions to solve under 120 minutes. The questions were of medium to hard difficulty level.

  • Q1. 

    Minimum Time in Wormhole Network

    Determine the minimum time required to travel from a starting point to a destination point in a two-dimensional coordinate system, considering both direct movement and the...

  • Ans. 

    Find the minimum time to travel from a starting point to a destination point using direct movement and wormholes.

    • Calculate the time taken for direct movement from source to destination.

    • Consider using each wormhole to see if it reduces the total travel time.

    • Choose the path with the minimum total time to reach the destination.

  • Answered by AI
  • Q2. 

    Substrings Differ by One Problem Statement

    Ninja needs help in a battle against the string man. Given two strings, 'S' and 'T', the task is to find the number of substrings in 'S' that differ from some su...

  • Ans. 

    The task is to find the number of substrings in 'S' that differ from some substrings of 'T' by exactly one character.

    • Iterate through all substrings of 'S' and 'T' and compare them character by character to find the ones that differ by exactly one character.

    • Use nested loops to generate all possible substrings of 'S' and 'T'.

    • Count the number of substrings that differ by exactly one character and return the total count.

  • Answered by AI
  • Q3. 

    Power of Two Problem Statement

    Determine whether a given integer N is a power of two. Return true if it is, otherwise return false.

    Explanation

    An integer 'N' is considered a power of two if it can be e...

  • Ans. 

    Check if a given integer is a power of two or not.

    • Check if the given integer is greater than 0.

    • Check if the given integer has only one bit set in its binary representation.

    • Return true if the above conditions are met, else return false.

  • Answered by AI
Round 2 - Face to Face 

(4 Questions)

Round duration - 60 Minutes
Round difficulty - Medium

This round had 2 questions related to DSA where I was first expected to explain my approaches and then discuss the time and space complexities of my solution. After that , I was asked some core concepts related to OS.

  • Q1. 

    Reverse Linked List Problem Statement

    Given a singly linked list of integers, return the head of the reversed linked list.

    Example:

    Initial linked list: 1 -> 2 -> 3 -> 4 -> NULL
    Reversed link...
  • Ans. 

    Reverse a singly linked list of integers and return the head of the reversed linked list.

    • Iterate through the linked list and reverse the pointers to point to the previous node instead of the next node.

    • Use three pointers - prev, current, and next to reverse the linked list in O(N) time and O(1) space complexity.

    • Update the head of the reversed linked list as the last node encountered during reversal.

  • Answered by AI
  • Q2. 

    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 cycles in an undirected graph.

    • 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.

    • Check for cycles in each connected component of the graph.

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

  • Answered by AI
  • Q3. What are the differences between a mutex and a semaphore?
  • Ans. 

    Mutex is used for exclusive access to a resource by only one thread at a time, while semaphore can allow multiple threads to access a resource simultaneously.

    • Mutex is binary semaphore with ownership, used for mutual exclusion.

    • Mutex is typically used to protect critical sections of code.

    • Semaphore is a signaling mechanism, used for synchronization between multiple threads.

    • Semaphore can have a count greater than 1, allowi...

  • Answered by AI
  • Q4. What is meant by multitasking and multithreading in operating systems?
  • Ans. 

    Multitasking refers to the ability of an operating system to run multiple tasks concurrently, while multithreading involves executing multiple threads within a single process.

    • Multitasking allows multiple processes to run simultaneously on a single processor, switching between them quickly to give the illusion of parallel execution.

    • Multithreading involves breaking a process into multiple threads that can be executed ind...

  • Answered by AI
Round 3 - Face to Face 

(4 Questions)

Round duration - 60 Minutes
Round difficulty - Medium

This round had 2 Algorithmic questions wherein I was supposed to code both the problems after discussing their
approaches and respective time and space complexities . After that , I was grilled on some OOPS concepts related to C++.

  • Q1. 

    Trapping Rain Water Problem Statement

    You are given a long type array/list ARR of size N, representing an elevation map. The value ARR[i] denotes the elevation of the ith bar. Your task is to determine th...

  • Ans. 

    Calculate the total amount of rainwater that can be trapped between given elevations in an array.

    • Iterate through the array and calculate the maximum height on the left and right of each bar.

    • Calculate the amount of water that can be trapped at each bar by taking the minimum of the maximum heights on the left and right.

    • Sum up the trapped water at each bar to get the total trapped water for the entire array.

  • Answered by AI
  • Q2. 

    Find The Repeating And Missing Number Problem Statement

    You are provided with an array nums which contains the first N positive integers. In this array, one integer appears twice, and one integer is missi...

  • Ans. 

    Given an array of first N positive integers with one number repeating and one missing, find the repeating and missing numbers.

    • Iterate through the array and keep track of the sum of elements and sum of squares to find the missing and repeating numbers.

    • Use a set to identify the repeating number and calculate the missing number based on the sum of elements.

    • Example: For nums = [1, 2, 3, 4, 4, 5], the repeating number is 4 ...

  • Answered by AI
  • Q3. What is the Diamond Problem in C++ and how can it be resolved?
  • Ans. 

    Diamond Problem in C++ is a common issue in multiple inheritance where a class inherits from two classes that have a common base class.

    • Diamond Problem occurs when a class inherits from two classes that have a common base class, leading to ambiguity in accessing members.

    • It can be resolved in C++ using virtual inheritance, where the common base class is inherited virtually to avoid duplicate copies of base class members.

    • ...

  • Answered by AI
  • Q4. What are friend functions in C++?
  • Ans. 

    Friend functions in C++ are functions that are not members of a class but have access to its private and protected members.

    • Friend functions are declared inside a class with the 'friend' keyword.

    • They can access private and protected members of the class.

    • They are not member functions of the class, but have the same access rights as member functions.

    • Friend functions are useful for implementing operators that are not membe...

  • Answered by AI

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPASamsung interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, System Design, Aptitude, OOPSTime required to prepare for the interview - 4 MonthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Final outcome of the interviewSelected

Skills evaluated in this interview

Interview Questionnaire 

2 Questions

  • Q1. Multiple
  • Q2. Multiple.

Interview Preparation Tips

Round: Test
Experience: Graph problem.
First step was to formulate the question into graph problem.

Then solve using standard graph algo (Dijkstra, bellmen ford, e.tc).
Tips: Practice writing whole code without using standard library.
Duration: 3 hours
Total Questions: 1

Round: Technical Interview
Experience: Question related to dfs.
Asked about networking, OS and integers.

One puzzle.(available on geeksforgeeks)
Tips: Prepare for puzzle. Generally they go for standard puzzle.

Round: Technical Interview
Experience: It was mostly related to technical project and internship.

General discussion on machine learning.
Tips: Prepare for the projects mentioned on the resume

Round: HR Interview
Experience: He was testing me regarding how I will explain a technical project to a non-technical guy.. And also general HR questions like why u want to join Samsung and other similar questions.
Tips: Nothing new.

Skills: Basic programming stuff. , Algorithm, Graph Theory, Machine Learning, Problem Solving Skills
College Name: IIT Kharagpur

HARMAN Interview FAQs

How many rounds are there in HARMAN Android Developer interview?
HARMAN interview process usually has 1-2 rounds. The most common rounds in the HARMAN interview process are Technical, Resume Shortlist and Coding Test.
How to prepare for HARMAN Android Developer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at HARMAN. The most common topics and skills that interviewers at HARMAN expect are Android, Automation, Claims, Due Diligence and Staffing.
What are the top questions asked in HARMAN Android Developer interview?

Some of the top questions asked at the HARMAN Android Developer interview -

  1. What are SOLID principles in OOP languag...read more
  2. What do you know about MVV...read more
  3. What is Android Framewo...read more

Tell us how to improve this page.

Overall Interview Experience Rating

4/5

based on 3 interview experiences

Difficulty level

Moderate 100%

Duration

Less than 2 weeks 100%
View more

Interview Questions from Similar Companies

Samsung Interview Questions
3.9
 • 575 Interviews
Dell Interview Questions
3.9
 • 406 Interviews
OPPO Interview Questions
4.0
 • 230 Interviews
LG Electronics Interview Questions
3.9
 • 228 Interviews
Blue Star Interview Questions
4.1
 • 178 Interviews
Apple Interview Questions
4.3
 • 150 Interviews
Voltas Interview Questions
4.0
 • 149 Interviews
Bajaj Electricals Interview Questions
4.0
 • 133 Interviews
Whirlpool Interview Questions
3.9
 • 107 Interviews
View all
HARMAN Android Developer Salary
based on 23 salaries
₹8.4 L/yr - ₹17.1 L/yr
102% more than the average Android Developer Salary in India
View more details

HARMAN Android Developer Reviews and Ratings

based on 1 review

3.0/5

Rating in categories

2.0

Skill development

4.0

Work-life balance

4.0

Salary

3.0

Job security

4.0

Company culture

3.0

Promotions

3.0

Work satisfaction

Explore 1 Review and Rating
Senior Software Engineer
1.7k salaries
unlock blur

₹12.7 L/yr - ₹27.5 L/yr

Technical Lead
1.5k salaries
unlock blur

₹19.2 L/yr - ₹33 L/yr

Software Engineer
1.4k salaries
unlock blur

₹5.3 L/yr - ₹16.4 L/yr

Senior Product Engineer
967 salaries
unlock blur

₹10.9 L/yr - ₹19 L/yr

Senior Engineer
964 salaries
unlock blur

₹13.1 L/yr - ₹23.6 L/yr

Explore more salaries
Compare HARMAN with

Samsung

3.9
Compare

vivo

4.1
Compare

OPPO

4.0
Compare

Dell

3.9
Compare
write
Share an Interview