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

Software Developer

Docquity
upvote
share-icon
2 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 4-6
Topics: DSA,OOPS,OPERATING SYSTEM,JAVA,C,DBMS
Tip
Tip

Tip 1 : CLEAR THE CONCEPT IN DSA
Tip 2 : DO COMPETITIVE PROGRAMING
Tip 3 : PRACTISE WELL

Application process
Where: Campus
Eligibility: 7.5 ABOVE CGPA
Resume Tip
Resume tip

Tip 1 : DONT WRITE FAKE THINGS
Tip 2 : AS SHORT AS POSSIBLE WITH CLEAN EXPERIENCE

Interview rounds

01
Round
Medium
Online Coding Interview
Duration120 minutes
Interview date19 Aug 2021
Coding problem2

THIS ROUND WAS OF 2 HOURS (ONLINE) CONSITING OF BOTH MCQ AND PROBLEM SOLVING.

1. Delete Kth node From End

Moderate
15m average time
95% success
0/80
Asked in companies
WalmartWells FargoChegg Inc.

You have been given a singly Linked List of 'N' nodes with integer data and an integer 'K'.


Your task is to remove the 'K'th node from the end of the given Linked List and return the head of the modified linked list.


Example:
Input : 1 -> 2 -> 3 -> 4 -> 'NULL'  and  'K' = 2
Output: 1 -> 2 -> 4 -> 'NULL'
Explanation:
After removing the second node from the end, the linked list become 1 -> 2 -> 4 -> 'NULL'.

altImage


Problem approach

Tip 1:FIND THE LENGTH OF THE LINKED LIST
Tip 2:SUBSTRACT IT FROM N(LENGTH OF LINKEDLIST)
Tip 3ITERATE THE LINKLIST UPTO TIP 2 RESULT THENDELETE A NODE

Try solving now

2. Construct Binary Tree From Inorder and Preorder Traversal

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

You have been given the preorder and inorder traversal of a binary tree. Your task is to construct a binary tree using the given inorder and preorder traversals.


Note:
You may assume that duplicates do not exist in the given traversals.
For example :
For the preorder sequence = [1, 2, 4, 7, 3] and the inorder sequence = [4, 2, 7, 1, 3], we get the following binary tree.

Example

Problem approach

Tip1: GOOD UNDERSTANDING OF RECURSION
Tip 2: SHOULKD KNOW THE INORDER AND PREORDER
Tip 3: IF U SOLVED THIS QUESTION EARLIER THEN ONLYU U CAN SOLVE THIS QUESTION IN INTERVIEW

Try solving now
02
Round
Medium
Face to Face
Duration90 minutes
Interview date24 Aug 2021
Coding problem1

THEY ASKED ME QUESTION RELTAED TO DYNAMIC PROGRAMING BUT I WAS NOT CONFIDENT IN IT SO GET REJECTED IN THIS ROUNG, ALSO ASKED SOME THEORITICAL QUESTION BUT THERE PRIORITY WAS TO SOLVE THE PROBLEM SOLVING QUESTIONS FIRST

1. Matrix Multiplication

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

Ninja has been given two sparse matrices ‘MAT1’ and ‘MAT2’ of integers having size ‘N’ x ‘M’ and ‘M’ x ‘P’, respectively.

A sparse matrix is a matrix that contains very few non-zero elements.

Ninja has to find the matrix formed by the multiplication of ‘MAT1’ and ‘MAT2’. As Ninja is busy with some other tasks so he needs your help. Can you help Ninja to find the matrix formed by the multiplication of ‘MAT1’ and ‘MAT2’?

Note: The number of columns in ‘MAT1’ i.e ‘M’ is equal to the number of rows in ‘MAT2’ i.e ‘M’. It means we can always multiply ‘MAT1’ with ‘MAT2’.

For example:

For the ‘MAT1’ and ‘MAT2’ given below, ‘MAT3’ is the matrix formed by multiplying ‘MAT1’ and ‘MAT2’. 

img

1. MAT3[0][0] = MAT1[0][0] * MAT2[0][0] + MAT1[0][1] * MAT2[1][0]  ie. 2 * 1 + 1 * 4 = 6
2. MAT3[1][0] = MAT1[1][0] * MAT2[1][0] + MAT1[1][1] * MAT2[1][0] ie. 0 * 6 + 0 * 4 = 0
Try solving now

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
SDE - 1
5 rounds | 7 problems
Interviewed by Docquity
2264 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 Developer
5 rounds | 14 problems
Interviewed by Microsoft
3931 views
1 comments
0 upvotes
company logo
Software Developer
6 rounds | 12 problems
Interviewed by SAP Labs
2806 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 3 problems
Interviewed by Amazon
1133 views
0 comments
0 upvotes