Premium Employer

i

This company page is being actively managed by Apple Team. If you also belong to the team, you can get access from here

Apple Verified Tick Work with us arrow

Compare button icon Compare button icon Compare

Filter interviews by

Apple Software Developer Intern Interview Questions and Answers

Updated 16 Sep 2021

Apple Software Developer Intern Interview Experiences

2 interviews found

I appeared for an interview in May 2021.

Round 1 - Video Call 

(1 Question)

Round duration - 45 minutes
Round difficulty - Medium

This round was scheduled in the morning hours from 10:30 to 11:15 AM. I was informed about the round 2 days earlier through an e-mail and a phone call both.

  • Q1. 

    Ninja and Candies Problem

    Ninja, a boy from Ninjaland, receives 1 coin every morning from his mother. He wants to purchase exactly 'N' candies. Each candy usually costs 2 coins, but it is available for 1 ...

  • Ans. 

    Calculate the earliest day on which Ninja can buy all candies given the number of candy types, special offers, and Ninja's candy preferences.

    • Iterate through each day and check if any special offers are available for the candies Ninja wants to buy.

    • Keep track of the remaining candies Ninja needs to buy and the coins he has each day.

    • Consider both regular price and sale price while making purchases.

    • Return the earliest day ...

  • Answered by AI
Round 2 - Video Call 

(2 Questions)

Round duration - 45 minutes
Round difficulty - Hard

After the first round, some candidates were shortlisted and I was one of them which was scheduled 2 days later at the same time.

  • Q1. 

    Minimum Umbrellas Problem

    You are provided with ‘N’ types of umbrellas, where each umbrella type can shelter a certain number of people. Given an array UMBRELLA that indicates the number of people each um...

  • Ans. 

    Given 'N' types of umbrellas with different capacities, find the minimum number of umbrellas required to shelter exactly 'M' people.

    • Iterate through the umbrella capacities and try to cover 'M' people using the minimum number of umbrellas.

    • Keep track of the total number of people covered and the number of umbrellas used.

    • If it is not possible to cover 'M' people exactly, return -1.

    • Return the minimum number of umbrellas re...

  • Answered by AI
  • Q2. 

    Lazy Santa Problem Statement

    It's Christmas and Santa has 'K' gifts to distribute. There are 'N' children standing in a straight line in the park due to COVID restrictions. You are given an array distance...

  • Ans. 

    Find the minimum distance Santa must travel to distribute 'K' gifts to 'K' different children standing in a straight line.

    • Sort the array 'distance' to easily calculate the minimum distance Santa has to walk.

    • Calculate the difference between adjacent elements in the sorted array and sum the first 'K-1' differences to get the minimum distance.

    • Return the minimum distance Santa has to walk for each test case.

  • Answered by AI
Round 3 - HR 

Round duration - 30 minutes
Round difficulty - Medium

It was a simple conversation, no shortlisting was done here, all of the students who passed the previous round were offered the role.

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from Malaviya National Institute of Technology Jaipur. I applied for the job as SDE - Intern in BangaloreEligibility criteriaCGPAApple interview preparation:Topics to prepare for the interview - primarily DSA, linked list, stack, queue, graphs and tree, DPTime required to prepare for the interview - 12 monthsInterview preparation tips for other job seekers

Tip 1 : Aptitude is must.
Tip 2 : Practice puzzle problems.
Tip 3 : Do atleast 2 projects.

Application resume tips for other job seekers

Tip 1 : projects should be well mentioned
Tip 2 : also don't forget to mention your grades of all academic levels

Final outcome of the interviewSelected

I appeared for an interview in Mar 2021.

Round 1 - Video Call 

(2 Questions)

Round duration - 45 minutes
Round difficulty - Hard

Interview was conducted at zoom in the evening hours.

  • Q1. 

    Max GCD Pair Problem Statement

    Given an array of positive integers, determine the Greatest Common Divisor (GCD) of a pair of elements such that it is the maximum among all possible pairs in the array. The...

  • Ans. 

    Find the maximum GCD of a pair of elements in an array of positive integers.

    • Iterate through all pairs of elements in the array to find their GCD.

    • Keep track of the maximum GCD found so far.

    • Use Euclidean algorithm to calculate GCD efficiently.

    • Return the maximum GCD value found.

  • Answered by AI
  • Q2. 

    Kevin and his Fruits Problem Statement

    Kevin has 'N' buckets, each consisting of a certain number of fruits. Kevin wants to eat at least 'M' fruits. He is looking to set a marker as high as possible such ...

  • Ans. 

    Find the marker value needed for Kevin to eat at least 'M' fruits from 'N' buckets.

    • Iterate through each test case and calculate the marker value needed based on the number of fruits in each bucket.

    • Subtract the marker value from the number of fruits in each bucket and check if the total is at least 'M'.

    • Return the highest possible marker value for each test case.

  • Answered by AI
Round 2 - HR 

Round duration - 30 minutes
Round difficulty - Medium

This round was scheduled in the morning hours from 10:30 to 11 am. The interviewer was cool-minded and I really enjoyed talking to him.

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from Malaviya National Institute of Technology Jaipur. I applied for the job as SDE - Intern in HyderabadEligibility criteriaabove 6.5 cgpa, only CS and ECE branch allowedApple interview preparation:Topics to prepare for the interview - Data structures, OOPS, Algorithms, Operating System, DBMSTime required to prepare for the interview - 12 monthsInterview preparation tips for other job seekers

Tip 1 : Data structures and algorithms are the most fundamental and important thing to prepare.
Tip 2 : Don't ignore OOPS.
Tip 3 : Solve DSA questions regularly.

Application resume tips for other job seekers

Tip 1 : Avoid unnecessary details like hobbies, date of birth, parent's name, photo, etc., and keep it one-pager.
Tip 2 : Add a link to your GitHub, LinkedIn, website, phone number, etc.

Final outcome of the interviewSelected

Skills evaluated in this interview

Software Developer Intern Interview Questions Asked at Other Companies

Q1. Sum of Maximum and Minimum Elements Problem Statement Given an ar ... read more
asked in Amazon
Q2. Fish Eater Problem Statement In a river where water flows from le ... read more
asked in Apple
Q3. Kevin and his Fruits Problem Statement Kevin has 'N' buckets, eac ... read more
asked in CommVault
Q4. Sliding Maximum Problem Statement Given an array of integers ARR ... read more
Q5. Reverse Words in a String: Problem Statement You are given a stri ... read more

Top trending discussions

View All
Interview Tips & Stories
6d (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 Apple?
Ask anonymously on communities.

Interview questions from similar companies

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

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 Sep 2020.

Round 1 - Coding Test 

(3 Questions)

Round duration - 60 Minutes
Round difficulty - Medium

The round consisted of 3 questions of medium difficulty to be completed in 60 minutes.

  • Q1. 

    Minimum Insertions to Make a Palindrome

    Given a string STR of length N composed of lowercase English letters, your task is to determine the minimum number of characters that need to be added to make the s...

  • Ans. 

    Given a string, find the minimum number of characters needed to make it a palindrome.

    • Iterate through the string from both ends and count the number of characters that need to be added to make it a palindrome.

    • Use dynamic programming to optimize the solution by considering subproblems.

    • Handle edge cases such as an already palindrome string or an empty string.

    • Example: For input 'abb', the output should be 1 as adding 'a' m...

  • Answered by AI
  • Q2. 

    Cousins of a Given Node in a Binary Tree

    Given a binary tree with 'N' nodes and a specific node in this tree, you need to determine and return a sorted list of the values of the node's cousins. The cousin...

  • Ans. 

    Given a binary tree and a specific node, return a sorted list of the node's cousins.

    • Traverse the binary tree to find the parent of the given node and its depth.

    • Traverse the tree again to find nodes at the same depth but with different parents.

    • Return the sorted list of cousin node values or -1 if no cousins exist.

  • Answered by AI
  • Q3. 

    Move All Negative Numbers To Beginning

    Rearrange a given array 'ARR' with 'N' integers so that all negative numbers appear before all positive numbers.

    Follow Up:
    Can you solve this in O(1) auxiliary sp...
  • Ans. 

    Rearrange array with negative numbers at the beginning, order not important.

    • Iterate through the array and swap negative numbers to the beginning using two pointers approach.

    • Maintain one pointer for negative numbers and another for positive numbers.

    • Time complexity: O(N), Space complexity: O(1).

  • Answered by AI
Round 2 - Face to Face 

(1 Question)

Round duration - 40 minutes
Round difficulty - Easy

One interviewer asked the same question to two of us.
Both of us could qualify if we solved it correctly.

  • Q1. 

    Convert Binary Tree to Mirror Tree

    Convert a given binary tree into its mirror tree, where the left and right children of all non-leaf nodes are interchanged.

    Input:

    An integer ‘T’ denoting the number o...
  • Ans. 

    Convert a binary tree into its mirror tree by interchanging left and right children of non-leaf nodes.

    • Traverse the tree in postorder fashion and swap the left and right children of each node.

    • Recursively call the function on the left and right subtrees.

    • Modify the tree in place without creating a new tree.

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI completed Information Technology from Jadavpur University. I applied for the job as SDE - Intern in BangaloreEligibility criteriaAbove 7.5 CGPASamsung interview preparation:Topics to prepare for the interview - Data Structures, OOPS, Algorithms, DBMS, NetworkingTime required to prepare for the interview - 4 MonthsInterview preparation tips for other job seekers

Tip 1 : Before diving aimlessly into a sea of questions, try to create a roadmap for yourself. This roadmap will take into account your strengths and weaknesses and you should be allotting time accordingly.
Tip 2 : Companies like Samsung do check your resume and grill you accordingly. Make sure to have atleast 3 projects with 1 of them being pretty good.
Tip 3 : Ideally, all your projects should be deployed publicly: either on Github/Heroku/Kaggle/App Store depending on the type of development. This will give you an advantage over others.

Application resume tips for other job seekers

Tip 1 : Try not to lie. Only put things you are extremely confident about. You don't want to get blacklisted by the company.
Tip 2 : Try not to put trivial skills like Git/Github. Every developer is expected to know of these.
Tip 3 : Do not make any spelling mistakes on your CV. This just goes to show your carelessness.

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

Are these interview questions helpful?

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

Software Developer Interview Questions & Answers

Samsung user image Gaurav Srikant Mokhasi

posted on 3 Dec 2015

Interview Preparation Tips

Round: PRE PLACEMENT OFFER
Experience: Interns (both CS and IT) were selected in my third year. Pre-placement offers were rolled out to 16 of us which was roughly a conversion ratio of 1:3. A couple of ECE hires were added when SRI-B visited campus later.

General Tips: If you're in CS or IT, this is the only format your resume should be in: -----
Take your internship seriously. Have fun and all but also get your project done. It's not the end of the world if you don't get a PPO. Campus placements are tension-filled, no doubt, but a lot of people get equally good if not better jobs after missing out on PPOs.
Make sure you talk to your manager about the PPO process. She will be the one giving you your final review. So ensure that she knows you want the job. Prepare a fancy presentation for the HR. By fancy, I mean slick and professional. Think Apple, not flashy Microsofty graphics and stupid word art.
Skill Tips: Google GSAT (Global Samsung Aptitude Test) a week before the test and make sure you practice some similar CAT type questions. Questions are of medium difficulty and time management is a real issue (most of us were unable to finish properly). - I didn't have to use these but I've heard good things about codechef/topCoder and books such as Cracking the Coding Interview by Gayle Laakmann McDowell.
Skills:
College Name: NIT Surathkal

Interview Preparation Tips

Round: Test
Experience: The first consisted of an online test which had an aptitude section which was pretty simply and then a programming section consisting of three different programs. The programs were logical required basic knowledge of array, sorting and a little bit of data structures.

Round: Technical Interview
Experience: Around 13 of us were shortlisted for the interview round, B.Tech and M.Tech included. The interview round was mostly interactive, where we had to mention about the various interns that we went through. A few programming questions were asked based on topics which we were comfortable with.
Tips: Just get used to coding, data structures and basic aptitude. GRE preparation as such helped me.

Round: HR Interview
Experience: Finally there was a HR round in which I was asked as to why I would like to work in Samsung R&D and general things about interests and future plans. On the whole Samsung took 3 B.Tech students and 2 M.Tech students when they came for placements apart from PPOs.

General Tips: Personally I feel that one should apply in only those companies in which they are sure of having job satisfaction. So don't apply to companies which you are not interested in just for the sake of having a backup because once you are placed you do not have a second chance.
Do not get dejected if you do not get through in the first few tries. Keep your hopes up and be confident when ever you get to interview rounds. Try to be assertive when giving answers. It is some times exhausting to go through placements but the moment you get placed you will have the best feeling ever.
Skill Tips: Just chill and take the test. Once you clear the online test, irrespective of your pointer if you have a good profile you can convince the interviewers.
Skills:
College Name: NIT Surathkal

Tell us how to improve this page.

Join Apple Join us. Be you.

Apple Software Developer Intern Reviews and Ratings

based on 1 review

4.0/5

Rating in categories

4.0

Skill development

4.0

Work-life balance

4.0

Salary

4.0

Job security

5.0

Company culture

4.0

Promotions

4.0

Work satisfaction

Explore 1 Review and Rating
Software Engineer
224 salaries
unlock blur

₹51.6 L/yr - ₹80 L/yr

Software Developer
141 salaries
unlock blur

₹23.2 L/yr - ₹40 L/yr

Ipro
116 salaries
unlock blur

₹2 L/yr - ₹5 L/yr

Sales Executive
107 salaries
unlock blur

₹1.7 L/yr - ₹5.3 L/yr

Senior Software Engineer
96 salaries
unlock blur

₹21.1 L/yr - ₹56.7 L/yr

Explore more salaries
Compare Apple with

Google

4.4
Compare

Amazon

4.0
Compare

Microsoft Corporation

3.9
Compare

Samsung

3.9
Compare
write
Share an Interview