FourKites interview experience Real time questions & tips from candidates to crack your interview

SDE - Intern

FourKites
upvote
share-icon
3 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: OOPS, DBMS, ARRAY, LINKED LIST, TREE, GRAPH.
Tip
Tip

Tip 1 : In the DSA topic you should focus more on problems. You should try a different approach to solve the same problem. Because in any interview interviewer asks the same.
Tip 2 : Theoretical subjects like OS, DBMS, and can you can do from the internet. 

Application process
Where: Campus
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1 : Don't write the things which you don't know.
Tip 2 : Mention some good project.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration120 minutes
Interview date27 Jun 2022
Coding problem2

1. Alternate Positive and Negative

Easy
15m average time
80% success
0/40
Asked in companies
PayUAmazonDisney + Hotstar

You are given an array ‘arr’ that contains an equal number of positive and negative elements. Rearrange the given array such that positive and negative numbers are arranged alternatively. Also, the respective relative order of positive and negative should be maintained.

For example:

For the given arr[ ] = { -1, 3, 5, 0, -2, -5 } 
arr[ ] = {3, -1, 5, -2, 0, -5 } is valid rearrangement.
arr[ ] = {3, -1, 0, -2, 5, -5 } is invalid rearrangement; order of 0 and 5 is changed. 
arr[ ] = {3, -1, 5, 0, -2, -5 } is invalid rearrangement; positive and negative elements are not alternative.

Note:

Make changes in the same array and no returning or printing is needed.
Consider zero(0) as a positive element for this question.
It is guaranteed that an answer always exists.
Try solving now

2. Swap Number Without Temporary Variable

Easy
15m average time
85% success
0/40
Asked in companies
MicrosoftBNY MellonOracle

Given two variables ‘X’ and ‘Y’. Your task is to swap the number without using a temporary variable or third variable.

Swap means the value of ‘X’ and ‘Y’ must be interchanged. Take an example ‘X’ is 10 and ‘Y’ is 20 so your function must return ‘X’ as a 20 and ‘Y’ as a 10.

Problem approach

I have solved this q using the arithmetic operator.
a=20;
b=30;
a=a+b;
b=a-b;
a=a-b;

Try solving now
02
Round
Medium
Video Call
Duration45 minutes
Interview date4 Jul 2022
Coding problem1

It was at 2 pm.

1. Cycle Detection in a Singly Linked List

Moderate
15m average time
80% success
0/80
Asked in companies
GrabThalesSterlite Technologies Limited

You are given a Singly Linked List of integers. Return true if it has a cycle, else return false.


A cycle occurs when a node's next points back to a previous node in the list.


Example:
In the given linked list, there is a cycle, hence we return true.

Sample Example 1

Problem approach

I used the slow and fast pointer approach.

Try solving now
03
Round
Medium
Video Call
Duration50 minutes
Interview date7 Jul 2022
Coding problem1

It was like a managerial round. They gave me a puzzle to solve.

1. Puzzle Question

You have given 7 apples. Out of the, 1 defect. You are given a weighing machine. You have to tell the minimum iteration in which you can find the defective one.

Problem approach

Tip 1:Divide and conqure techniqe
Tip 2:3+3+1
put 3-3 apples on the machine if it gives the same reading it means the remaining 1 defects one. Else the machine which is giving a minimum reading is containing defected one. 
Tip 3: Now do the same for 3 apples which are given minimum reading. 
1+1+1
put 1-1 apple on the machine if it gives the same reading it means the remaining 1 defects one. Else the machine which is giving a minimum reading is containing defected one. 

So in 2 iterations, we can find the defective one.

Here's your problem of the day

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

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
4657 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Amazon
960 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
6450 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3452 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15480 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15338 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10142 views
2 comments
0 upvotes