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

SDE - 1

Arcesium
upvote
share-icon
1 rounds | 2 Coding problems

Interview preparation journey

expand-icon
Journey
This was a college placement drive arranged.I attended it and gave my best. I only got into the first round. I must have practiced more. This was a good opportunity to understand where i stood.
Application story
This was a placement drive to which I applied. This drive was for my 10th sem intern. we were prepared by college by it.
Why selected/rejected for the role?
I was not selected for this role , maybe should have tried harder. I only went till 1st round didn't go further.
Preparation
Duration: 3 months
Topics: Data structures, Algorithm, OOPS, Pointers, Algorithms
Tip
Tip

Tip 1 : Practice competitive programming regularly
Tip 2 : Look at interview experience
Tip 3 : Talk to seniors who work there

Application process
Where: Campus
Resume Tip
Resume tip

Tip 1 : Get it reviewed by professional
Tip 2 : Mention only what you know

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date18 Jun 2021
Coding problem2

1. Allocate Books

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

Ayush is studying for ninjatest which will be held after 'N' days, And to score good marks he has to study 'M' chapters and the ith chapter requires TIME[i] seconds to study. The day in Ayush’s world has 100^100 seconds. There are some rules that are followed by Ayush while studying.

1. He reads the chapter in a sequential order, i.e. he studies i+1th chapter only after he studies ith chapter.

2. If he starts some chapter on a particular day he completes it that day itself.

3. He wants to distribute his workload over 'N' days, so he wants to minimize the maximum amount of time he studies in a day.

Your task is to find out the minimal value of the maximum amount of time for which Ayush studies in a day, in order to complete all the 'M' chapters in no more than 'N' days.

For example

if Ayush want to study 6 chapters in 3 days and the time that each chapter requires is as follows:
Chapter 1 = 30
Chapter 2 = 20
Chapter 3 = 10
Chapter 4 = 40
Chapter 5 = 5
Chapter 6 = 45

Then he will study the chapters in the following order 

| day 1 : 1 , 2 | day 2 : 3 , 4 | day 3 : 5 , 6 |
Here we can see that he study chapters in sequential order and the maximum time to study on a day is 50, which is the minimum possible in this case.
Problem approach

# Python3 program for optimal allocation of pages

# Utility function to check if
# current minimum value is feasible or not.


def isPossible(arr, n, m, curr_min):
studentsRequired = 1
curr_sum = 0

# iterate over all books
for i in range(n):

# check if current number of pages are
# greater than curr_min that means
# we will get the result after
# mid no. of pages
if (arr[i] > curr_min):
return False

# count how many students are required
# to distribute curr_min pages
if (curr_sum + arr[i] > curr_min):

# increment student count
studentsRequired += 1

# update curr_sum
curr_sum = arr[i]

# if students required becomes greater
# than given no. of students, return False
if (studentsRequired > m):
return False

# else update curr_sum
else:
curr_sum += arr[i]

return True

# function to find minimum pages


def findPages(arr, n, m):

sum = 0

# return -1 if no. of books is
# less than no. of students
if (n < m):
return -1

# Count total number of pages
for i in range(n):
sum += arr[i]

# initialize start as 0 pages and
# end as total pages
start, end = 0, sum
result = 10**9

# traverse until start <= end
while (start <= end):

# check if it is possible to distribute
# books by using mid as current minimum
mid = (start + end) // 2
if (isPossible(arr, n, m, mid)):

# update result to current distribution
# as it's the best we have found till now.
result = mid

# as we are finding minimum and books
# are sorted so reduce end = mid -1
# that means
end = mid - 1

else:
# if not possible means pages should be
# increased so update start = mid + 1
start = mid + 1

# at-last return minimum no. of pages
return result

# Driver Code


# Number of pages in books
arr = [12, 34, 67, 90]
n = len(arr)
m = 2 # No. of students

print("Minimum number of pages = ",
findPages(arr, n, m))

# This code is contributed by Mohit Kumar

Try solving now

2. Maximise Dot Product

Hard
45m average time
55% success
0/120
Asked in companies
ArcesiumDirecti

You are given two arrays of positive integers ‘ARR1’ and ‘ARR2’ of length ‘N’ and ‘M’ respectively, where ‘N’ >= ‘M’.

Dot product of 2 arrays ‘ARR1’ and ‘ARR2’ of size ‘N’ is defined as ‘ARR1[i]*ARR2[i]’ for ‘1 <= i <= N’.

You are allowed to insert a certain number of 0s in ‘ARR2’ to make its size equal to ‘N’, but you cannot change the initial ordering of its elements. What is the maximum dot product of ‘ARR1’ and ‘ARR2’ you can achieve by doing this operation optimally?

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 remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
4 rounds | 4 problems
Interviewed by Arcesium
961 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 3 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
1339 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by BNY Mellon
6366 views
3 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by BNY Mellon
0 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by CIS - Cyber Infrastructure
2198 views
0 comments
0 upvotes