Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
Apple interview experience Real time questions & tips from candidates to crack your interview

SDE - Intern

Apple
upvote
share-icon
2 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 12 months
Topics: Data structures, OOPS, Algorithms, Operating System, DBMS
Tip
Tip

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 process
Where: Campus
Eligibility: above 6.5 cgpa, only CS and ECE branch allowed
Resume Tip
Resume tip

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.

Interview rounds

01
Round
Hard
Video Call
Duration45 minutes
Interview date10 Mar 2021
Coding problem2

Interview was conducted at zoom in the evening hours.

1. Max GCD Pair

Moderate
35m average time
75% success
0/80
Asked in companies
AppleAmazonPhone Pe

You are given an array of positive integers. Find the GCD(Greatest Common Divisor) of a pair of elements such that it is maximum among all possible pairs. GCD(a, b) is the maximum number x such that both a and b are divisible by x.

For example: 
If the given array is {1, 5, 2, 3, 4}, the output will be 2 (which is GCD of 2 and 4, all other pairs have a GCD of 1)
Try solving now

2. Kevin and his Fruits

Moderate
25m average time
75% success
0/80
Asked in companies
AmazonAppleOLX Group

Kevin has ‘N’ buckets each consisting of some fruits. Kevin wants to eat at least ‘M’ fruits and so, he decided to set a marker (integer) as maximum as possible such that if he eats “number of fruits in the i-th bucket - marker” fruits then it must be at least ‘M’.

Example:

Let’s assume, we have 5 buckets each having 10, 40, 30, and 20 fruits respectively. And, Kevin wants to eat at least 30 fruits. 

Now, if we set our marker at 20 then Kevin can eat: (10 - 20) = -10 => 0 (fruit’s count can’t be negative) fruits from 1st bucket, (40 - 20) = 20 fruits from 2nd bucket, (30 - 20) = 10 fruits from the third bucket, and (20 - 20) = 0 fruits from the last bucket.

So, he can eat 0 + 20 + 10 + 0 = 30 fruits in total.
Note:
Each bucket may not have the same amount of fruits. It is guaranteed that the sum of all fruits (including all the buckets) will be greater than M. Kevin can only eat fruits from a particular bucket if and only if the bucket has more fruits than the marker.
Try solving now
02
Round
Medium
HR Round
Duration30 minutes
Interview date20 Mar 2021
Coding problem1

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.

1. Basic Questions

What is expectation from this job?

What are your hobbies?

Some puzzles.

Problem approach

his puzzle usually seems like a tough one to answer, but solving it once makes one realize that the procedure was actually simple. If the candidate pulls out 2 red balls, he replaces them with a blue ball.
On the other hand, if he draws one red and one blue, it is replaced with a red one. This implies that the red ball would always be in odd numbers, whether the candidate removes 2 together, or removes 1 while adding 1. This also indicates that the last ball to stay in the bag would be a red one. The interviewer is merely testing the approach the candidate applies in solving this common analytics puzzle.

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

How do you write a single-line comment in C++?

Choose another skill to practice
Start a Discussion
Similar interview experiences
company logo
SDE - Intern
3 rounds | 4 problems
Interviewed by Apple
6768 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 4 problems
Interviewed by Apple
1857 views
0 comments
0 upvotes
company logo
Intern
2 rounds | 3 problems
Interviewed by Apple
2132 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Apple
1363 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
13361 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
12385 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
8920 views
2 comments
0 upvotes