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

SDE - 1

Virtusa
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 Months
Topics: Arrays, Linked List, Oops, System Design, Docker, Kubernetes
Tip
Tip

Tip 1 : Practice aptitude questions
Tip 2 : Practice coding questions
Tip 3 : Prepare for system design

Application process
Where: Naukri
Eligibility: na
Resume Tip
Resume tip

Tip 1 : Have atleast 3 great project
Tip 2 : Write only what you know and prepare well

Interview rounds

01
Round
Easy
Online Coding Test
Duration90 Minutes
Interview date2 Apr 2021
Coding problem3

It was purely an coding round

1. Find Duplicate in Array

Easy
15m average time
85% success
0/40
Asked in companies
OlaAmazonBNY Mellon

You are given an array of integers 'ARR' containing N elements. Each integer is in the range [1, N-1], with exactly one element repeated in the array.

Your task is to find the duplicate element. The duplicate element may be repeated more than twice in the error, but there will be exactly one element that is repeated in the array.

Note :

All the integers in the array appear only once except for precisely one integer which appears two or more times.
Problem approach

used hashmap

Try solving now

2. The Skyline Problem

Hard
15m average time
85% success
0/120
Asked in companies
GoogleAppleFlipkart

You are given 'N' rectangular buildings in a 2-dimensional city. Your task is to compute the skyline of these buildings, eliminating hidden lines return the skyline formed by these buildings collectively. A city's skyline is the outer contour of the silhouette formed by all the buildings in that city when viewed from a distance. The geometric information of each building is given in the array of buildings where BUILDINGS[i] = [LEFT_i, RIGHT_i, HEIGHT_i]:

-> LEFT_i is the x coordinate of the left edge of the ith building.

-> RIGHT_i is the x coordinate of the right edge of the ith building.

-> HEIGHT_i is the height of the ith building.

You may assume all buildings are perfect rectangles grounded on an absolutely flat surface at height 0.

The skyline should be represented as a list of "key points" sorted by their x-coordinate in the form [[x1, y1], [x2, y2], ...]. Each key point is the left endpoint of some horizontal segment in the skyline except the last point in the list, which always has a y-coordinate 0 and is used to mark the skyline's termination where the rightmost building ends. Any ground between the leftmost and rightmost buildings should be part of the skyline's contour.

Note:
There must be no consecutive horizontal lines of equal height in the output skyline. For instance, [...,[2 3], [4 5], [7 5], [11 5], [12 7],...] is not acceptable; the three lines of height 5 should be merged into one in the final output.

As such: [..., [2 3], [4 5], [12 7],...]. 

Also, the buildings are sorted by a non-decreasing order.

For more clarification see sample case 1.
Try solving now

3. Diameter Of Binary Tree

Easy
10m average time
90% success
0/40
Asked in companies
OptumAckoQualcomm

You are given a Binary Tree.


Return the length of the diameter of the tree.


Note :
The diameter of a binary tree is the length of the longest path between any two end nodes in a tree.

The number of edges between two nodes represents the length of the path between them.
Example :
Input: Consider the given binary tree:

Example

Output: 6

Explanation:
Nodes in the diameter are highlighted. The length of the diameter, i.e., the path length, is 6.


Try solving now
02
Round
Easy
Video Call
Duration60 Minutes
Interview date4 Feb 2021
Coding problem1

Technical Round. It was taken by 2 people.
Asked me to introduce and then asked question related to my resume.
They then asked questions related to oops, dbms. He asked 1 coding question just approach.

1. Second largest element in the array

Easy
15m average time
80% success
0/40
Asked in companies
Tech MahindraTata Consultancy Services (TCS)Infosys

You have been given an array/list 'ARR' of integers. Your task is to find the second largest element present in the 'ARR'.

Note:
a) Duplicate elements may be present.

b) If no such element is present return -1.
Example:
Input: Given a sequence of five numbers 2, 4, 5, 6, 8.

Output:  6

Explanation:
In the given sequence of numbers, number 8 is the largest element, followed by number 6 which is the second-largest element. Hence we return number 6 which is the second-largest element in the sequence.
Problem approach

use sort then take 2 element

Try solving now
03
Round
Easy
Video Call
Duration60 Minutes
Interview date5 Feb 2021
Coding problem1

It was taken by some senior. He asked system design question and many questions on me, my hobbies, background etc.

1. System Design Question

Design quickr

Problem approach

Tip 1 : just try
Tip 2 : asked questions 
Tip 3 : practice some system design beforehand

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 the output of print(type("Python"))?

Choose another skill to practice
Similar interview experiences
SDE - 1
3 rounds | 5 problems
Interviewed by Virtusa
1664 views
0 comments
0 upvotes
SDE - 1
1 rounds | 3 problems
Interviewed by Virtusa
1572 views
0 comments
0 upvotes
SDE - 1
2 rounds | 5 problems
Interviewed by Virtusa
0 views
0 comments
0 upvotes
SDE - 1
2 rounds | 4 problems
Interviewed by Virtusa
1211 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
1 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
0 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 4 problems
Interviewed by Tata Consultancy Services (TCS)
6718 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by BNY Mellon
6070 views
3 comments
0 upvotes