Fareye Technologies Private Limited interview experience Real time questions & tips from candidates to crack your interview

SDE - Intern

Fareye Technologies Private Limited
upvote
share-icon
3 rounds | 11 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Data Structures, OOPS, Operating system, Aptitude, Algorithms
Tip
Tip

Tip 1 : Be consistent in what you are doing
Tip 2 : Practice more and more coding problems
Tip 3 : Give mock interviews

Application process
Where: Linkedin
Eligibility: 7 CGPA
Resume Tip
Resume tip

Tip 1 : Mention only those topics which you know very well
Tip 2 : Mention projects

Interview rounds

01
Round
Easy
Online Coding Interview
Duration120 minutes
Interview date14 Jan 2022
Coding problem3

1. Distance Of Nearest Cell Having 1 In A Binary Matrix

Moderate
35m average time
65% success
0/80
Asked in companies
FacebookDunzoCIS - Cyber Infrastructure

You have been given a binary matrix 'MAT' containing only 0’s and 1’s of size N x M. You need to find the distance of the nearest cell having 1 in the matrix for each cell.

The distance is calculated as |i1 – i2| + |j1 – j2|, where i1, j1 are the coordinates of the current cell and i2, j2 are the coordinates of the nearest cell having value 1.
Note :
You can only move in four directions which are : Up, Down, Left and Right.
For example :
If N = 3, M = 4

and mat[ ][ ] = { 0, 0, 0, 1,
                  0, 0, 1, 1,
                  0, 1, 1, 0 }

then the output matrix will be

3  2  1  0
2  1  0  0
1  0  0  1
Problem approach

he idea is to load the i and j coordinates of each ‘1′ in the Matrix into a Queue and then traverse all the “0” Matrix elements and compare the distance between all the 1’s from the Queue to get a minimum distance

Try solving now

2. Distance between two nodes of a Tree

Moderate
25m average time
60% success
0/80
Asked in companies
AmazonOracleIntuit

Given a binary tree and the value of two nodes, find the distance between the given two nodes of the Binary Tree.

Distance between two nodes is defined as the minimum number of edges in the path from one node to another.

Problem approach

We have to follow the step:

Find the LCA of the given two nodes
Store the path of two-node from LCA in strings S1 and S2 that will store ‘l’ if we have to take a left turn in the path starting from LCA to that node and ‘r’ if we take a right turn in the path starting from LCA.
Reverse one of the strings and concatenate both strings.
Count the number of time characters in our resultant string not equal to its adjacent character.

Try solving now

3. Convert BST to Min Heap

Moderate
25m average time
70% success
0/80
Asked in companies
FacebookDunzoFareye Technologies Private Limited

You are given a 'ROOT' of a binary search tree of integers. The given BST is also a complete binary tree.

Your task is to convert the given binary search tree into a Min Heap and print the preorder traversal of the updated binary search tree.

Note:

Binary Search Tree is a node-based binary tree data structure that has the following properties:

1. The left subtree of a node contains only nodes with keys lesser than the node’s key.
2. The right subtree of a node contains only nodes with keys greater than the node’s key.
3. The left and right subtree each must also be a binary search tree.

A Binary Heap is a Binary Tree with the following property:

1. It’s a complete tree (all levels are filled except possibly the last level and the last level has all keys as left as possible). This property of Binary Heap makes them suitable to be stored in an array.

A Binary Heap is either Min Heap or Max Heap. In a Min Binary Heap, the key at the root must be minimum among all keys present in Binary Heap. The same property must be recursively true for all nodes in Binary Tree. Max Binary Heap is similar to Min Heap.

For example:

Given:- BST’s ‘ROOT’ = 4 2 6 -1 -1 -1 -1 
Then the min-heap in pre-order fashion would be 2 4 6.
Problem approach

Create an array arr[] of size n, where n is the number of nodes in the given BST. 
Perform the inorder traversal of the BST and copy the node values in the arr[] in sorted 
order. 
Now perform the postorder traversal of the tree. 
While traversing the root during the postorder traversal, one by one copy the values from the array arr[] to the nodes.

Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date11 Jan 2022
Coding problem3

It was technical interview

1. 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 used addition and subtraction technique to solve this, then we discussed time and space complexity for this

Try solving now

2. Balanced parentheses

Moderate
10m average time
90% success
0/80
Asked in companies
WalmartMakeMyTripGoldman Sachs

Given an integer ‘N’ representing the number of pairs of parentheses, Find all the possible combinations of balanced parentheses with the given number of pairs of parentheses.

Note :

Conditions for valid parentheses:
1. All open brackets must be closed by the closing brackets.

2. Open brackets must be closed in the correct order.

For Example :

()()()() is a valid parentheses.
)()()( is not a valid parentheses.
Problem approach

Balanced parentheses are to check for a given string that contains parentheses (or brackets), should have equal opening and closing count as well as positionally well structured. For the context of this problem, we will use balanced parentheses as – ‘()’, ‘[]’, ‘{}’ – i.e given string can have any combination of these brackets.

Please note that before attempting the problem, it’s good to clarify if the string will just contain the bracket characters or any numbers, etc (as this might change the logic a bit)

Try solving now

3. Factorial of a Number

Moderate
25m average time
70% success
0/80
Asked in companies
HCL TechnologiesWells FargoSquadstack

You are given an integer ‘N’. You have to print the value of Factorial of ‘N’. The Factorial of a number ‘N’ is defined as the product of all numbers from 1 to ‘N’.

For Example:
Consider if ‘N’ = 4, the Factorial of 4 will be the product of all numbers from 1 to 4, which is 1 * 2 * 3 * 4 = 24. Hence, the answer is 24.
Problem approach

Factorial is one of the most commonly asked questions in almost all interviews (including the developer interviews)
For developer interviews, more focus is on programming concepts like dynamic programming, recursion, etc, whereas from the Software Development Engineer in Test perspective, it’s important to handle the edge scenarios like max values, min values, negative values, etc and approach/efficiency are important but become secondary.

Try solving now
03
Round
Medium
HR Round
Duration30 minutes
Interview date12 Jan 2022
Coding problem5

It was HR round

1. Basic HR Questions

Tell me about yourself.

Problem approach

Tip 1: Be honest
Tip 2: Be confident
Tip 3: Mention only those things that you have done

2. Merge Two Sorted Arrays Without Extra Space

Moderate
0/80
Asked in companies
ZycusFareye Technologies Private Limited

Given two non-decreasing sorted arrays, ‘A’ and ‘B’, having ‘N’ and ‘M’ elements, respectively.


You must merge these arrays, ‘A’ and ‘B’, into a sorted array without using extra space. Of all the 'N + M' sorted elements, array 'A' should contain the first 'N' elements, and array 'B' should have the last 'M' elements.


Note:
You must perform the merge operation in place and must not allocate any extra space to merge the two arrays.
For example:
When ‘N’ = 4, ‘A’ = {1, 4, 5, 7} and ‘M’ = 3, ‘B’ = {2, 3, 6}. 
We can merge these two arrays into {1, 2, 3, 4, 5, 6, 7} (The elements of ‘A’ are {1, 2, 3, 4} ).
Hence, the answer is {1, 2, 3, 4, 5, 6, 7}.
Problem approach

Tip 1: Please tell them naive solution first
Tip 2: Then move in optimised solution

Try solving now

3. Puzzle

Tell me the angle between minute's stick and hour stick of 5:16pm in watch

Problem approach

Tip 1: First calculate the angle of 1 minute
Tip 2: then calculate the angle of hour stick with one minute

4. Project based question

Tell me about your projects

Problem approach

Tip 1: Mention only those projects which you have done
Tip 2: Be confident
Tip 3: Explain in details

5. HR Question

When can you join the company

Problem approach

Tip 1: Tell them that I can join from tomorrow

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
961 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
6451 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
15481 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15339 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10142 views
2 comments
0 upvotes