Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
Arcesium interview experience Real time questions & tips from candidates to crack your interview

Software Developer

Arcesium
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 8 Months
Topics: C++, Data Structures and Algorithms, Leetcode, JavaScript, ReactJS
Tip
Tip

Tip 1 : Try to solve data Structure problems and also attend weekly challenges 
Tip 2 : Do some good Projects and explain in brief about them on your Resume 

Application process
Where: Linkedin
Eligibility: 7 CGPA
Resume Tip
Resume tip

Tip 1 : Try to Provide links of GitHub and other coding platforms where you have practiced
Tip 2 : Projects are very Important, so make some good Projects and mention them with relevant technologies.

Interview rounds

01
Round
Hard
Online Coding Test
Duration60 Minutes
Interview date7 Jan 2022
Coding problem3

They provide me 3 coding questions and I had 60 minutes to solve them.

1. Max Product Subset

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

You are given an array/list ‘arr’ of size ‘n’. Your task is to find the maximum product possible by taking any subset of the array/list ‘arr’.

Since the product can be large, return it modulo 10^9+7

For example:
Let arr=[-1,-1,-2,4,3] 

We can take the subset {-1,-2,4,3} which will have the product as 24. We can verify that this is the largest product possible. Hence we return 24.
Try solving now

2. Minimum Cost Path

Moderate
25m average time
70% success
0/80
Asked in companies
Goldman SachsOlaSalesforce

You have been given a matrix of ‘N’ rows and ‘M’ columns filled up with integers. Find the minimum sum that can be obtained from a path which from cell (x,y) and ends at the top left corner (1,1).

From any cell in a row, we can move to the right, down or the down right diagonal cell. So from a particular cell (row, col), we can move to the following three cells:

Down: (row+1,col)
Right: (row, col+1)
Down right diagonal: (row+1, col+1)
Try solving now

3. Reverse Level Order Traversal

Moderate
30m average time
52% success
0/80
Asked in companies
MicrosoftAmazonFlipkart

You have been given a Binary Tree of integers. You are supposed to return the reverse of the level order traversal.

For example:
For the given binary tree

Example

The reverse level order traversal will be {7,6,5,4,3,2,1}.
Try solving now
02
Round
Medium
Face to Face
Duration60 Minutes
Interview date10 Feb 2022
Coding problem2

1- Round is of 1 hour
2- Introduction of both and directly jump to coding Problem

1. Smallest Window

Moderate
10m average time
90% success
0/80
Asked in companies
GoogleHSBCSnapdeal

You are given two strings S and X containing random characters. Your task is to find the smallest substring in S which contains all the characters present in X.

Example:

Let S = “abdd” and X = “bd”.

The windows in S which contain all the characters in X are: 'abdd', 'abd', 'bdd', 'bd'. 
Out of these, the smallest substring in S which contains all the characters present in X is 'bd'. 
All the other substring have a length larger than 'bd'.
Problem approach

I had solved this problem using Sliding Window Technique
1- had inserted string in hashset and find out all distinct characters in string
2- then use hashmap and 2 pointer to traverse whole string and perform insertion and deletion of characters from hashmap

Try solving now

2. Symmetric Tree

Moderate
25m average time
70% success
0/80
Asked in companies
ArcesiumHCL TechnologiesUnacademy

You have been given a Binary Tree having 'n' nodes.


A Symmetric tree is a binary tree whose mirror image is the same as the original tree.


Find out whether the given tree is symmetric or not.


Example :
Input: Let the binary tree be:

sym_tree

Output: YES

Explanation: As we can see in the image, the original tree is the same as the mirrored tree.
Problem approach

1- Used dfs approach where I try to compare left and right childs of current root node
2- Also told bfs Approach

Try solving now
03
Round
Hard
Face to Face
Duration45 Minutes
Interview date12 Feb 2022
Coding problem1

Introduction of both, little bit discussion on my Projects and then coding problem

1. Design Search Autocomplete System

Hard
25m average time
60% success
0/120
Asked in companies
AmazonTwitterUber

Ninja has enrolled in a system design course at Coding Ninjas, and his first assignment is to create a search autocomplete system for a search engine.

Ninja is given ‘N’ sentences ‘SENTENCES’ and ‘N’ integers ‘TIMES’, where ‘TIMES’[i] is the number of times the ‘SENTENCES’[i] was typed. Now, the instructor will input a test sentence(at least one word and end with ‘#’). As Ninja’s best friend, can you help him with the assignment?

Your task is to implement the AutocompleteSystemclass:

  • AutocompleteSystem(String[] sentences, int[] times)Initializes the object with the sentences and times arrays.
  • List input(char c)This indicates that the user typed the character c.
    • Returns an empty array [], if c == '#' and stores the inputted sentence in the system.
    • Returns the top 3 historical hot sentences with the same prefix as the sentence already typed. If there are fewer than 3matches, return them all.

Here are the specific rules:

  • A sentence’s hot degree is defined as the number of times a user typed the same sentence before.
  • The returned top 3 hot sentences should be sorted by hot degree (The first is the hottest one). If several sentences have the same hot degree, use ASCII-code order (smaller one appears first).
  • If less than three hot sentences exist, return as many as possible.
  • When the input is a special character, it means the sentence ends, and in this case, you need to return an empty list.

For Example:

Input:
["AutocompleteSystem","input","input","input"]
[[["i want to join faang","icecream","i love coding ninjas"],[4,3,1],["i"],["s"],["#"]]

Output:
[null,["i want to join faang","icecream","i love coding ninjas"],[],[]]

Explanation:
* AutocompleteSystem obj = new AutocompleteSystem(["i want to join faang","icecream","i love coding ninjas"],[4,3,1]); 
* obj.input(“i”); // return ["i want to join faang","icecream","i love coding ninjas"]. There are three sentences that have prefix "I".
* obj.input(“s”); // return []. There is no sentence with prefix “is”
* obj.input(“#”); // return [].
Problem approach

1- This problem is trie based problem
2- Here we insert all words in the trie and increment word end value
3- Search words by typing any number of characters
4- If wordend value is one for that word print it

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

How do you write a single-line comment in C++?

Choose another skill to practice
Start a Discussion
Similar interview experiences
company logo
SDE - 2
3 rounds | 4 problems
Interviewed by Arcesium
0 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 3 problems
Interviewed by Arcesium
0 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 4 problems
Interviewed by Arcesium
526 views
0 comments
0 upvotes
company logo
5 rounds | 10 problems
Interviewed by Arcesium
168 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Developer
3 rounds | 8 problems
Interviewed by Tata Consultancy Services (TCS)
0 views
0 comments
0 upvotes
company logo
Software Developer
2 rounds | 3 problems
Interviewed by Tata Consultancy Services (TCS)
2019 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 3 problems
Interviewed by HCL Technologies
1555 views
1 comments
0 upvotes