0 day streak

Virtusa coding interview questions

Service and IT India

Ranked by how often candidates report them. Each opens in the editor with hidden tests, an animated walkthrough and solutions in four languages; a question you solve once counts for every company that asks it.

0%ready
Your level: practise every reported question.
ProgressTitleDifficultyTopicHow often hereAlso asked atNext step
Two SumTwo Sum Easy Arrays & Hashing Google, Amazon, Microsoft +135 Solve
Longest Substring Without Repeating CharactersSliding Window · Variable Medium Arrays & Hashing Google, Amazon, Microsoft +114 Solve
Roman to IntegerRight to Left Traversal Easy Arrays & Hashing Apple, Bloomberg, Expedia Group +22 Solve
Longest Common PrefixString Basics Easy Arrays & Hashing Amazon, Microsoft, Bloomberg +41 Solve
Rotate ArrayDouble Reversal Trick Medium Arrays & Hashing Apple, Bloomberg, Nutanix +30 Solve
Decode StringStack Basics Medium Stack Google, Amazon, Microsoft +31 Solve
Second Largest Element in an ArraySorting Easy Arrays & Hashing Nutanix, Rakuten, Morgan Stanley +13 Solve
Reverse Linked ListFront Middle Back Pointer Easy Linked List Microsoft, Apple, Bloomberg +81 Solve
Find the Index of the First Occurrence in a StringString Matching (KMP) Easy Arrays & Hashing Dropbox, Zscaler, Discord +12 Solve
Jump Game IIGreedy Medium Arrays & Hashing Google, DoorDash, Nutanix +25 Solve
Linked List CycleSlow Fast Pointers Easy Linked List Microsoft, Apple, Nvidia +67 Solve
Sort ColorsDutch National Flag Medium Arrays & Hashing Microsoft, Nvidia, Expedia Group +43 Solve
Binary SearchBasics Easy Binary Search Zscaler, Rakuten, Nike +22 Solve
Majority ElementMoore's Voting Algorithm Easy Arrays & Hashing Bloomberg, Instacart, Autodesk +18 Solve
Longest Increasing Subsequence1D DP Medium Dynamic Programming Google, Microsoft, TikTok (ByteDance) +29 Solve
Missing NumberMissing / Repeated Numbers Easy Bit Manipulation Microsoft, Nvidia, Palantir +29 Solve
Valid PalindromeTwo Pointer Easy Arrays & Hashing Microsoft, Meta, Apple +53 Solve
Valid ParenthesesStack Basics Easy Stack Google, Amazon, Microsoft +119 Solve
Reverse Words in a StringDouble Reversal Trick Medium Arrays & Hashing Microsoft, Nvidia, Snap +38 Solve
Reverse StringTwo Pointer Easy Arrays & Hashing Nvidia, Snowflake, Electronic Arts +37 Solve
Rotate ImageIn-place Transformations Medium Arrays & Hashing Amazon, Apple, Nvidia +38 Solve
N-Queens2D Matrix Hard Recursion & Backtracking Netflix, TikTok (ByteDance), Elastic +17 Solve
Kadane's Algorithm - SimpleKadane's Algorithm Medium Arrays & Hashing Amazon, Microsoft, Apple +79 Solve
Coin ChangeKnapsack Medium Dynamic Programming Google, Amazon, Microsoft +55 Solve
Kth Largest Element in an ArrayTop K / Kth Largest / Smallest Medium Heaps Amazon, Meta, Apple +51 Solve
Lowest Common Ancestor of a Binary Search TreeLCA Medium Trees & BST Meta, LinkedIn, Reddit +8 Solve
Binary Tree Level Order TraversalTraversals Medium Trees & BST Microsoft, Apple, Netflix +24 Solve
Also reported, being added to AlgoRung (2)

Apply Operations to Make String Empty · Second Highest Salary

Questions people ask

What coding questions does Virtusa ask most?

Two Sum, Longest Substring Without Repeating Characters, Roman to Integer, Longest Common Prefix, Rotate Array, Decode String, Second Largest Element in an Array, Reverse Linked List.

Which topics come up in Virtusa coding rounds?

arrays, strings, linked list, dynamic programming, trees, stack.

How hard are Virtusa coding questions?

Of the reported questions, 13 are easy, 13 medium and 1 hard. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.