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

SDE - 1

Incode
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Journey
My journey started when I was in the second year of college, and I saw my friends practicing coding questions, learning new programming languages, and developing individual projects. After seeing them, I started thinking that I should also learn more and practice coding questions. When I began practicing coding questions on coding platforms, I realized that I needed to think more to solve difficult problems, which led to me developing a habit of solving them.
Application story
I started preparing for companies in the second year of my college, and when I heard that this company was coming to our college, I wanted to get selected.
Why selected/rejected for the role?
I was rejected because I was not able to answer all the questions that were asked in the interview.
Preparation
Duration: 7 months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1: OOPS - You should be well-versed in basic OOPS principles. 

Tip 2: You should be confident and have profound knowledge about the projects you have worked on. 

Tip 3: Basic DB concepts like joins and normalization.

Application process
Where: Campus
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1 : Have some projects on your resume.
Tip 2 : Do not put false things on your resume

Interview rounds

01
Round
Easy
Video Call
Duration60 minutes
Interview date6 Jun 2023
Coding problem2

1. Next Greater Element

Moderate
20m average time
90% success
0/80
Asked in companies
CIS - Cyber InfrastructureAmazonPhonePe

You are given an array arr of length N. You have to return a list of integers containing the NGE(next greater element) of each element of the given array. The NGE for an element X is the first greater element on the right side of X in the array. Elements for which no greater element exists, consider the NGE as -1.

For Example :

If the given array is [1, 3, 2], then you need to return [3, -1, -1]. Because for 1, 3 is the next greater element, for 3 it does not have any greater number to its right, and similarly for 2.
Problem approach

Use stack:

  1. Push the first element to the stack.
  2. Pick the rest of the elements one by one and follow the steps below in a loop:
    • Mark the current element as next.
    • If the stack is not empty, compare the top element of the stack with next.
    • If next is greater than the top element, pop the element from the stack. Next is the next greater element for the popped element.
    • Keep popping from the stack while the popped element is smaller than next. Next becomes the next greater element for all such popped elements.
    • Finally, push next into the stack.
  3. After the loop in step 2 is over, pop all the elements from the stack.
Try solving now

2. Floor Value of X

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

You are given a sorted array ‘A’ and an integer ‘X’. Your task is to find and return the floor value of ‘X’ in the array.

The floor value of ‘X’ in array ‘A’ is the largest element in the array which is smaller than or equal to X.

Note: In case there is no floor value of ’X’ in the array ‘A’, return -1.

For example:

For the given arr[  ] = { 1, 2, 5, 7, 12, 14 }  and X = 10

The floor of 10 is 7 because 7 is the largest element in the array which is smaller than 10.
Try solving now
02
Round
Easy
Video Call
Duration60 minutes
Interview date6 Jun 2023
Coding problem2

1. Longest Common Subsequence

Moderate
0/80
Asked in companies
AmazonVisaRed Hat

You have been given two Strings “STR1” and “STR2” of characters. Your task is to find the length of the longest common subsequence.

A String ‘a’ is a subsequence of a String ‘b’ if ‘a’ can be obtained from ‘b’ by deletion of several (possibly, zero or all) characters. A common subsequence of two Strings is a subsequence that is common to both Strings.

Try solving now

2. Maximum Subarray Sum

Moderate
25m average time
75% success
0/80
Asked in companies
SquadstackAmazonRazorpay

Given an array of numbers, find the maximum sum of any contiguous subarray of the array.


For example, given the array [34, -50, 42, 14, -5, 86], the maximum sum would be 137, since we would take elements 42, 14, -5, and 86.


Given the array [-5, -1, -8, -9], the maximum sum would be -1.


Follow up: Do this in O(N) time.

Try solving now
03
Round
Easy
Video Call
Duration60 minutes
Interview date6 Jun 2023
Coding problem2

1. Delete Middle Node

Easy
15m average time
95% success
0/40
Asked in companies
GrowwAdobeMicrosoft

Given a singly linked list of 'N' nodes. Your task is to delete the middle node of this list and return the head of the modified list.


However, if the list has an even number of nodes, we delete the second middle node


Example:
If given linked list is 1->2->3->4 then it should be modified to 1->2->4.
Try solving now

2. Group Anagrams Together

Moderate
0/80
Asked in companies
PayPalArcesiumDunzo

You have been given an array/list of strings 'STR_LIST'. You are supposed to return the strings as groups of anagrams such that strings belonging to a particular group are anagrams of one another.

Note :
An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase. We can generalize this in string processing by saying that an anagram of a string is another string with the same quantity of each character in it, in any order.
Example:
{ “abc”, “ged”, “dge”, “bac” } 
In the above example the array should be divided into 2 groups. The first group consists of { “abc”, “bac” } and the second group consists of { “ged”, “dge” }.
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
SDE - 1
2 rounds | 4 problems
Interviewed by Incode
323 views
0 comments
0 upvotes
SDE - 1
3 rounds | 5 problems
Interviewed by Incode
390 views
0 comments
0 upvotes
Software Engineer
2 rounds | 4 problems
Interviewed by Incode
360 views
0 comments
0 upvotes
Software Developer
3 rounds | 7 problems
Interviewed by Incode
317 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