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

Fullstack Developer

Virtusa
upvote
share-icon
4 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 1.5 months
Topics: OOPS, core java, DBMS, SQL & PL/SQL, Data Structures and Algorithms, UI (HTML, JS), SDLC, Java 8 concepts, UML diagrams, Collections, Multithreading, Exception Handling, Hashing, Recursion problems.
Tip
Tip

Tip 1 : Practice more problem solving questions
Tip 2 : understand the comcepts in depth
Tip 3 : try to work on onw or two handson project to get more experience in that stack.

Application process
Where: Campus
Eligibility: Above 7 CGPA, need good understanding on the technologies, good projects in resume, not more than 3 active backlocks
Resume Tip
Resume tip

Tip 1 : Add some good projects on resume
Tip 2 : put things which you know well and not technologies which you don't know.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration180 minutes
Interview date22 Jun 2021
Coding problem3

Have to solve MCQ questions and 3 programming problems

1. Anagram Pairs

Moderate
30m average time
60% success
0/80
Asked in companies
IBMTata Consultancy Services (TCS)Optum

You are given two strings 'str1' and 'str1'.


You have to tell whether these strings form an anagram pair or not.


The strings form an anagram pair if the letters of one string can be rearranged to form another string.

Pre-requisites:

Anagrams are defined as words or names that can be formed by rearranging the letters of another word. Such as "spar" can be formed by rearranging letters of "rasp". Hence, "spar" and "rasp" are anagrams. 

Other examples include:

'triangle' and 'integral'
'listen' and 'silent'
Note:
Since it is a binary problem, there is no partial marking. Marks will only be awarded if you get all the test cases correct. 
Problem approach

Step 1 : create a List and Set. 
Step 2 : iterating the given array and find sorted string for each anagram string present in it. 
Step 3 : check whether he sorted string is present in the set. 
Step 4 : if not present, only then add the sorted string into list and set. 
Step 5 : repeat steps 2,3 & 4 untill all the anagram string are iterated.

Try solving now

2. Minimum number of swaps required to sort an array

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

You have been given an array 'ARR' of 'N' distinct elements.

Your task is to find the minimum no. of swaps required to sort the array.

For example:
For the given input array [4, 3, 2, 1], the minimum no. of swaps required to sort the array is 2, i.e. swap index 0 with 3 and 1 with 2 to form the sorted array [1, 2, 3, 4].
Problem approach

Many solutions can be given for this problem but i have given one of the optimized solution. 
Step 1 : iterate the array and if array[index] == array length - array[index], then continue.
Step 2 : else, then swap both the position elements, increment the swap count by 1.
Step 3 : decrement the iterating index by one.
Step 4 : after all the iterations, swap count will be the minimum swaps requeired

Try solving now

3. Queue Using Stack

Moderate
30m average time
60% success
0/80
Asked in companies
SamsungAdobeGE (General Electric)

Implement a queue data structure which follows FIFO(First In First Out) property, using only the instances of the stack data structure.


Note:
1. To implement means you need to complete some predefined functions, which are supported by a normal queue such that it can efficiently handle the given input queries which are defined below.


2. The implemented queue must support the following operations of a normal queue: 

a. enQueue(data) : This function should take one argument of type integer and place the integer to the back of the queue.

b. deQueue(): This function should remove an integer from the front of the queue and also return that integer. If the queue is empty, it should return -1.

c. peek(): This function returns the element present in the front of the queue. If the queue is empty, it should return -1.

d. isEmpty(): This function should return true if the queue is empty and false otherwise.


3. You will be given q queries of 4 types:

a. 1 val - For this type of query, you need to insert the integer val to the back of the queue.

b. 2 - For this type of query, you need to remove the element from the front of the queue, and also return it.

c. 3 - For this type of query, you need to return the element present at the front of the queue(No need to remove it from the queue).

d. 4 - For this type of query, you need to return true if the queue is empty and false otherwise.


4. For every query of type:

a. 1, you do not need to return anything.

b. 2, return the integer being deQueued from the queue.

c. 3, return the integer present in the front of the queue.

d. 4, return “true” if the queue is empty, “false” otherwise.
Example
Operations: 
1 5
1 10
2
3
4

Enqueue operation 1 5: We insert 5 at the back of the queue.
Queue: [5]

Enqueue operation 1 10: We insert 10 at the back of the queue.
Queue: [5, 10]

Dequeue operation 2: We remove the element from the front of the queue, which is 5, and print it.
Output: 5
Queue: [10]

Peek operation 3: We return the element present at the front of the queue, which is 10, without removing it.
Output: 10
Queue: [10]

IsEmpty operation 4: We check if the queue is empty.
Output: False
Queue: [10]
Try solving now
02
Round
Hard
Assignment
Duration6 weeks
Interview date2 Jul 2021
Coding problem1

1. Assignment

One use case was given as Account Statements Transcription to be done as a full stack application to convert the uploading excell sheet document into sql table and fetch it as per user needs in the UI and also download it as various excel / word doc.

Problem approach

Tip 1 : UI should be clean and neet
Tip 2 : optimized logics as per coding standards should be done
Tip 3 : all the features should be covered properly

03
Round
Hard
Face to Face
Duration90 minutes
Interview date10 Sep 2021
Coding problem1

Technical questions were asked from core java, SQL, UI stacks, Multi threading, exception handling, java 8, UML, SDLC, collections, JDBC, PL/SQL, OS, Data Structures, sorting and searching algorithms, etc...

1. Puzzle

100 Prisoners with Red/Black Hats

04
Round
Medium
HR Round
Duration60 minutes
Interview date13 Sep 2021
Coding problem1

1. Basic HR Questions

What are your expectations?

Why should we hire you?

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
Fullstack Developer
3 rounds | 4 problems
Interviewed by Virtusa
1991 views
0 comments
0 upvotes
Fullstack Developer
3 rounds | 4 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
Analyst
3 rounds | 3 problems
Interviewed by Virtusa
1094 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Fullstack Developer
3 rounds | 5 problems
Interviewed by HashedIn
949 views
0 comments
0 upvotes
company logo
Fullstack Developer
3 rounds | 5 problems
Interviewed by CIS - Cyber Infrastructure
763 views
0 comments
0 upvotes
company logo
Fullstack Developer
4 rounds | 3 problems
Interviewed by Newgen Software
1007 views
0 comments
0 upvotes