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

SDE - 1

Visa
upvote
share-icon
4 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 8 months
Topics: Data Structures, Algorithms, OOPS, Recursion, OS, DBMS.
Tip
Tip

Tip 1 : Start from basic, don't jump to advanced topics
Tip 2 : Revise regularly.
Tip 3 : Make handwritten notes.

Application process
Where: Campus
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1 : Make a single page resume
Tip 2 : Use formal font and font color should be black

Interview rounds

01
Round
Medium
Online Coding Test
Duration90 Minutes
Interview date23 Sep 2022
Coding problem3

The first round was an online coding test on HackerRank platform that consist of 3 coding questions and was conducted for 1 hour 30 minutes.

1. Minimum Falling Path Sum

Moderate
25m average time
65% success
0/80
Asked in companies
VisaProvakil

You have been given a square array 'VEC' of integers of size 'N' rows and 'N' columns. Your task is to find the minimum sum of a falling path through the square array. The number of rows and columns in the given array will be the same.

A falling path starts at any element in the first row and chooses one element from each row. The next row's choice must be in a column that is different from the previous row's column by at most one.

Example:

VEC[][]= {{5, 10}, {25, 15}}      

alt text

All the rectangles denote the possible falling paths. The rectangle with red filler is the minimum falling path with the minimum falling path sum of 20 (5+15). 
Problem approach

1. Given matrix like the left part in the graph below, we first initialize a 2D DP matrix, 
2. and then iterate the original matrix row by row. For each element in DP matrix, we sum up the corresponding element from original matrix with the minimum neighbors from previous row in DP matrix.
3. In order to save the future hassles dealing with index boundries while iterating the matrix, I added the two extra columns and assigned them as Integer.MAX_VALUE.

Try solving now

2. Longest Increasing Subsequence

Moderate
30m average time
65% success
0/80
Asked in companies
PhonePeChegg Inc.Barclays

For a given array with N elements, you need to find the length of the longest subsequence from the array such that all the elements of the subsequence are sorted in strictly increasing order.

Strictly Increasing Sequence is when each term in the sequence is larger than the preceding term.

For example:
[1, 2, 3, 4] is a strictly increasing array, while [2, 1, 4, 3] is not.
Try solving now

3. Colourful Balls

Moderate
0/80
Asked in company
Visa

There are 'N' balls arranged in a row from left to right. Each of the balls has a colour that can be represented by a number between 1 and 10^9.

For each 'i' = 0, 1, 2.. 'N-1', the colour of the 'i-th' ball from the left is Colour 'Ai'.

Ninja can choose 'K' consecutive balls from this row. That is, he can choose an integer 'i' such that 0 <= i <= 'N - K' and get the balls 'i', 'i+1', 'i+2' … '(i+k-1)' from the left. Additionally, he can choose at most one of those 'K' balls and repaint it to a colour of his choice.

Ninja wants to get the maximum variety in colours in the selected 'K' consecutive balls, and for this, he will choose some optimal 'i'. Return the maximum possible number of distinct colours in balls he can get.

Example :
‘N’ = '6'
'K' = '3'
The next line contains 'Ai', the colour of the 'ith' ball from the left,
1 2 1 3 2 3

Assuming 0-based indexing, If Ninja gets the balls from index 2 to 4, i.e., the contiguous set {1,3,2} he will have 3 different coloured balls, which is the maximum possible answer.
He can also get the balls from index 1 to 3, i.e., the set  {2,1,3}.
Try solving now
02
Round
Easy
Face to Face
Duration60 minutes
Interview date29 Sep 2022
Coding problem1

1. The interviewer introduced himself and asked me to give my introduction.
2. Then he asked about my projects and tech stacks used.
I explained him about all tech stacks used.
3. After that, he asked a coding question. Given a sorted array, print the missing numbers in it. He was just testing our thought process.
4. Then he asked me to write code of GCD function.
5. Then he gave two tables Emp_Info and Emp_sal and asked two SQL queries related to them.
First question was an easy one, it was related to SUBSTR function.
Second question was to get the 2nd Maximum which could be solved using the concepts of LEFT JOIN, ORDER BY, TOP, OFFSET.
6. What is OSI Model?
7. At last, he asked whether I had any questions for him.

1. Max GCD Pair

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

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
03
Round
Medium
Face to Face
Duration60 minutes
Interview date30 Sep 2022
Coding problem2

1. Sum of Big integers.

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

You have been given two integers ‘NUM1’ and ‘NUM2’ as a string. Your task is to print the sum of both the numbers.

Try solving now

2. Technical Questions

Tell me something about your projects?
Difference between SQL and NO-SQL Database?
Real life examples where we will prefer using SQL and NO-SQL Database?
How will you handle 1 million requests on your application?
Difference between http and https?
What are web sockets?
Software Development Methodologies?
Software Development Life Cycle?
Which is more important development or testing and why?
What are Deadlocks?
Necessary conditions for deadlock? Given a printer and a scanner when can deadlock occur?
Deadlock handling techniques? Which technique is used by windows OS?
How to best maintain a sorted list from a stream of integers?

At last, he asked whether I had any questions for him.

04
Round
Easy
Face to Face
Duration60 minutes
Interview date30 Sep 2022
Coding problem1

1. Technical Questions

The interviewer was very friendly. He gave his introduction first and asked my introduction.
He went through my resume and asked about RazorPay API which I had used in one of my project.
What will you do if outage happens in Razorpay API?
What will you do in a situation where your colleague is taking credit of the work done by you?
How will you find the cvv of a Debit card? Basically we have to use all 3-digit numbers and check for correctness.
The interview also gave another solution and asked me to give points why my solution is better than his.
How will I create a doubly-linked list? A real life use of doubly-linked list?
Then we had a short discussion on LRU as I told him we use doubly-linked list in it.
Do you have any questions for me?

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
1 rounds | 2 problems
Interviewed by Visa
3635 views
0 comments
0 upvotes
company logo
SDE - 1
4 rounds | 6 problems
Interviewed by Visa
5604 views
0 comments
0 upvotes
company logo
SDE - 1
1 rounds | 1 problems
Interviewed by Visa
1642 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by Visa
8451 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114579 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57825 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34961 views
7 comments
0 upvotes