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

Software Engineer

Codalien Technologies
upvote
share-icon
3 rounds | 8 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 9 months
Topics: Data Structures, Algorithms, Dynamic Programming, Javascript, OOPS, Node JS, React JS, HTML, CSS, Deployment on Cloud.
Tip
Tip

Tip 1 : Must solve coding problems minimum 2-3 daily and 300+ problems would be great to tackle interview questions.
Tip 2 : Work on at least 3 major projects which involve many technology stacks.
Tip 3 : Prepare your resume really well because it's our first impression.

Application process
Where: Other
Eligibility: Scores of Data Structures Test, Web Development Assignments, Mock Interview
Resume Tip
Resume tip

Tip 1 : Have at least 3 good projects in your resume mentioning in detail, can also use Google framework "Accomplished [X] as measured by [Y] by doing [Z]" while mentioning the project details.
Tip 2 : For less than 2 years experience keep it a single-page resume and check your grammatical errors. I would recommend you Grammarly for it.

Interview rounds

01
Round
Easy
Telephonic
Duration20 minutes
Interview date10 Oct 2020
Coding problem1

Around 8 pm I got the call from Interviewer. The interview was friendly, Only one problem was asked then general discussion.

1. Swap Numbers

Swapping 2 numbers without any 3rd variable.

Problem approach

Tip 1 : x = x + y
Tip 2 : y= x - y
Tip 3 : x =x - y

02
Round
Hard
Online Coding Interview
Duration90 minutes
Interview date17 Oct 2020
Coding problem5

It was given the flexibility of 1 day to take as per our convenience. The Environment of Coderbyte was good. Ten MCQs and five coding questions were asked.

1. Reverse the String

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

You are given a string 'STR'. The string contains [a-z] [A-Z] [0-9] [special characters]. You have to find the reverse of the string.

For example:

 If the given string is: STR = "abcde". You have to print the string "edcba".
follow up:
Try to solve the problem in O(1) space complexity. 
Problem approach

They expected us to solve using Javascript:
Step 1 : split()
Step 2 : reverse()
Step 3 : join()

Try solving now

2. Anagram Substring Search

Moderate
35m average time
70% success
0/80
Asked in companies
Media.netZS AssociatesDelhivery

Given two strings ‘STR’ and ‘PTR’. Find all the starting indices of ‘PTR’ anagram substring in ‘STR’. Two strings are anagram if and only if one string can be converted into another string by rearranging the character.

For example, ‘ABCD’ and ‘ACBD’ are two anagram strings because ‘ACBD’ can be converted into ‘ABCD’ by rearranging the ‘B’ and ‘C’. ’ABA’ and ‘ABB’ are not anagram because we can’t convert ‘ABA’ to ‘ABB’ by rearranging the characters of particular strings.

‘ABACD’ and ‘CABAD’ are anagram because ‘ABACD’ can be converted into ‘CABAD’ by rearranging the first ‘A’ with ‘C’ and second ‘A’ with ‘B’.

Note:
Strings ‘STR’ and ‘PTR’ consist only of English uppercases.

Length of string ‘STR’ will always be greater than or equal to the length of string ‘PTR’.

The index is ‘0’ based.

In case, there is no anagram substring then return an empty sequence.

Explanation:

For example, the given ‘STR’ is ‘BACDGABCD’ and ‘PTR’ is ‘ABCD’. Indices are given

0-3 in ‘STR’ index 0,1,2,3 are ‘BACD’ and it is an anagram with ‘ABCD’
1-4 in ‘STR’ index 1,2,3,4 are ‘ACDG’ and it is not anagram with ‘ABCD’
2-5 in ‘STR’ index 2,3,4,5 are ‘CDGA’ and it is not anagram with ‘ABCD’
3-6 in ‘STR’ index 3,4,5,6 are ‘DGAB’ and it is not anagram with ‘ABCD’
4-7 in ‘STR’ index 4,5,6,7 are ‘GABC’ and it is not anagram with ‘ABCD’
5-8 in ‘STR’ index 5,6,7,8 are ‘ABCD’ and it is an anagram with ‘ABCD’

Hence there are 2 starting indices of substrings in the string ‘STR’ that are anagram with given ‘PTR’  which are index 0 and 5.
Try solving now

3. Check if two expressions with brackets are same

Easy
16m average time
88% success
0/40
Asked in companies
Codalien Technologies42gearMobilitySystems

You are given two strings which are expressions in variables. You need to compare and tell if they are similar or different. You need to return “YES” for the same expressions and “NO” for different expressions. The expressions consist of lowercase alphabets, ‘+’, ‘-’ and ‘(‘, ‘)’. It may be assumed that there are at most 26 operands from ‘a’ to ‘z’.

Two expressions will be said as similar if they have the same set of operands and when some values are given to these operands, then both the expressions give the same result.

For example:
If the first expression is: (a + (b + c)) and the second expression is: a + b + c. The expressions are the same because if they are evaluated, they will give the same output. So the answer is “YES”.
Note:
You can assume that any expression is evaluated according to the BODMAS rule.
Problem approach

Step 1 : Using .replace() regex inside the method
Step 2 : Checking the length and returning 0 or 1

Try solving now

4. Construct complete Binary Tree

Easy
15m average time
85% success
0/40
Asked in company
Codalien Technologies

You are given an array/list 'ARR' storing values of 'N' nodes of a binary tree.

Your task is to construct a complete binary tree from the given array in level order fashion, i.e. elements from left in the array will be filled in the tree level-wise starting from level 0.

A Binary Tree is a Complete Binary Tree if all the levels are completely filled except possibly the last level and the last level has all nodes as left as possible.

For example, the following binary tree is a complete binary tree:

example

Note:
You need to return the root of the binary tree, the tree will be printed in level order format.
Problem approach

Step 1 : Using a map with regex
Step 2 : Creating an object initializing it to null
Step 3 : Taking for loop till the length
Step 4 : Checking for parent and child
Step 5 : Each child cannot have 2 parent
Step 6 : We check if there's more than one root node
Step 7 : Only one node to have no parent, which is the root node.

Try solving now

5. Shortest substring with all characters

Moderate
18m average time
85% success
0/80
Asked in companies
AmazonMicrosoftCisco

You have been given a string 'S' which only consists of lowercase English-Alphabet letters.

Your task is to find the shortest(minimum length) substring of 'S' which contains all the characters of 'S' at least once. If there are many substrings with the shortest length, then find one which appears earlier in the string i.e. substring whose starting index is lowest.

For example-
If the given string is S = "abcba", then the possible substrings are "abc" and "cba". As "abc" starts with a lower index (i.e. 0, "cba" start with index 2), we will print "abc" as our shortest substring that contains all characters of 'S'.
Problem approach

Step 1 : Need to have 0 index in one variable and then use .split() for the rest in the next variable
Step 2 : Take a loop start with the smallest possible substrings, then go up.
Step 3 : To make a function to check to see if all the chars in the needle are in the given string

Try solving now
03
Round
Medium
Video Call
Duration60 minuted
Interview date20 Oct 2020
Coding problem2

Afternoon at 2 pm, The interviewer was friendly. Two questions and then general discussion.

1. System Design

What is the event loop and event queue?

Problem approach

Tip 1 : JavaScript runtime uses a message queue, which is a list of messages to be processed
Tip 2 : Each message has an associated function which gets called in order to handle the message
Tip 3 : At some point during the event loop, the runtime starts handling the messages on the queue, starting with the oldest one

2. Bankers Algorithm

Problem approach

Resource allocation and deadlock avoidance algorithm

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

Which operator is used for exponentiation in Python?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
1502 views
0 comments
0 upvotes
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
3663 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
988 views
0 comments
0 upvotes
company logo
System Engineer
2 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
769 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Engineer
4 rounds | 1 problems
Interviewed by Newgen Software
2555 views
2 comments
0 upvotes
company logo
Software Engineer
3 rounds | 6 problems
Interviewed by HashedIn
1802 views
0 comments
0 upvotes
company logo
Software Engineer
2 rounds | 2 problems
Interviewed by Ernst & Young (EY)
0 views
0 comments
0 upvotes