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

Software Engineer

Devtron
upvote
share-icon
2 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Application story
I applied for the role through LinkedIn. The first round was an MCQ and coding assessment. In the second round (face-to-face), I was unable to solve the coding question.
Why selected/rejected for the role?
I was rejected because I couldn’t solve the coding question in the second round under time pressure. This experience taught me the importance of practicing coding problems regularly and improving my problem-solving speed. It also helped me understand how crucial clear communication and confidence are during interviews.
Preparation
Duration: 4 months
Topics: Data Structure And Algorithm, Object Oriented Programming, Computer Network
Tip
Tip

Tip 1: Practice at least 200+ DSA questions focusing on problem-solving patterns rather than just memorizing solutions.
Tip 2: Revise core subjects like OS, DBMS, and CN regularly through handwritten notes or online video playlists.

Application process
Where: Linkedin
Eligibility: 8 CGPA, (Salary package: 7 LPA)
Resume Tip
Resume tip

Tip 1: Highlight only relevant and well-explained projects that showcase your technical skills.
Tip 2: Keep your resume concise, clean, and free from any false information or exaggerated claims.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration70 minutes
Interview date4 Nov 2022
Coding problem3

This round had 3 coding questions and 10 MCQ questions. MCQs were based on Reasoning.

1. Unbounded Knapsack

Moderate
15m average time
85% success
0/80
Asked in companies
AdobeGartnerAmazon

You are given ‘n’ items with certain ‘profit’ and ‘weight’ and a knapsack with weight capacity ‘w’.


You need to fill the knapsack with the items in such a way that you get the maximum profit. You are allowed to take one item multiple times.


Example:
Input: 
'n' = 3, 'w' = 10, 
'profit' = [5, 11, 13]
'weight' = [2, 4, 6]

Output: 27

Explanation:
We can fill the knapsack as:

1 item of weight 6 and 1 item of weight 4.
1 item of weight 6 and 2 items of weight 2.
2 items of weight 4 and 1 item of weight 2.
5 items of weight 2.

The maximum profit will be from case 3 = 11 + 11 + 5 = 27. Therefore maximum profit = 27.


Problem approach

By Using Dynamic Programming.

Try solving now

2. Next Permutation

Moderate
15m average time
85% success
0/80
Asked in companies
OraclePharmEasyMeesho

You have been given a permutation of ‘N’ integers. A sequence of ‘N’ integers is called a permutation if it contains all integers from 1 to ‘N’ exactly once. Your task is to rearrange the numbers and generate the lexicographically next greater permutation.

To determine which of the two permutations is lexicographically smaller, we compare their first elements of both permutations. If they are equal — compare the second, and so on. If we have two permutations X and Y, then X is lexicographically smaller if X[i] < Y[i], where ‘i’ is the first index in which the permutations X and Y differ.

For example, [2, 1, 3, 4] is lexicographically smaller than [2, 1, 4, 3].

Problem approach

By using Two Pointer Approach.

Try solving now

3. Combination Sum

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

You are given an array 'ARR' of 'N' distinct positive integers. You are also given a non-negative integer 'B'.


Your task is to return all unique combinations in the array whose sum equals 'B'. A number can be chosen any number of times from the array 'ARR'.


Elements in each combination must be in non-decreasing order.


For example:
Let the array 'ARR' be [1, 2, 3] and 'B' = 5. Then all possible valid combinations are-

(1, 1, 1, 1, 1)
(1, 1, 1, 2)
(1, 1, 3)
(1, 2, 2)
(2, 3)
Problem approach

By using recursion, I was able to solve.

Try solving now
02
Round
Medium
Face to Face
Duration60 minutes
Interview date9 Nov 2022
Coding problem2

The interviewer asked me questions about Python implementation. They also tested my database knowledge.

1. Maximum Sum Path Of A Binary Tree

Hard
25m average time
75% success
0/120
Asked in companies
HikeSamsungDirecti

You are given a binary tree having 'n' nodes. Each node of the tree has an integer value.


Your task is to find the maximum possible sum of a simple path between any two nodes (possibly the same) of the given tree.


A simple path is a path between any two nodes of a tree, such that no edge in the path is repeated twice. The sum of a simple path is defined as the summation of all node values in a path.

Problem approach

I tried using Queue but could not solve in time.

Try solving now

2. DBMS

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
960 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
6450 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3451 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Engineer
3 rounds | 7 problems
Interviewed by Optum
7873 views
1 comments
0 upvotes
company logo
Software Engineer
5 rounds | 5 problems
Interviewed by Microsoft
9973 views
1 comments
0 upvotes
company logo
Software Engineer
2 rounds | 4 problems
Interviewed by Amazon
4309 views
1 comments
0 upvotes