RenewBuy. Com interview experience Real time questions & tips from candidates to crack your interview

Backend developer intern

RenewBuy. Com
upvote
share-icon
1 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Journey
I got this interview call because of Scaler Academy. I prepared well for the interview. I had 2 days to prepare, and during those 2 days, I focused on Python, Java, Django, and SQL.
Application story
I applied through Scaler Academy. I received a Google form to share my interest. The form included some company details and asked me to fill in my information and upload my resume.
Why selected/rejected for the role?
I was selected for this role because I performed well in the interview. I solved the given DSA problem and answered the theory questions.
Preparation
Duration: 1 months
Topics: Python, Data Structures, SQL, Django, Java
Tip
Tip

Tip 1: Prepare for DSA

Tip 2: Prepare Python

Application process
Where: Other
Eligibility: NA (Salary: Stipend 15k)
Resume Tip
Resume tip

Tip 1: Have some projects in Python.
Tip 2: Have certificates in Python.

Interview rounds

01
Round
Medium
Video Call
Duration60 minutes
Interview date12 Nov 2024
Coding problem3

The interview started on time. I joined 5 minutes early, and the interviewer joined on time.

1. Merge Two Sorted Arrays

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

Ninja has been given two sorted integer arrays/lists ‘ARR1’ and ‘ARR2’ of size ‘M’ and ‘N’. Ninja has to merge these sorted arrays/lists into ‘ARR1’ as one sorted array. You may have to assume that ‘ARR1’ has a size equal to ‘M’ + ‘N’ such that ‘ARR1’ has enough space to add all the elements of ‘ARR2’ in ‘ARR1’.

For example:

‘ARR1’ = [3 6 9 0 0]
‘ARR2’ = [4 10]
After merging the ‘ARR1’ and ‘ARR2’ in ‘ARR1’. 
‘ARR1’ = [3 4 6 9 10]
Problem approach

The idea is based on the approach of combining two arrays and sorting them.

Algorithm:

  1. Suppose the size of ARR1 is M and the size of ARR2 is N. Create a new array, ARR3, with a size of M + N.
  2. Copy the elements of ARR1 into ARR3.
  3. Copy the elements of ARR2 into ARR3.
  4. Sort the array ARR3.
  5. Copy the first M elements from ARR3 back into ARR1, and copy the remaining N elements from ARR3 into ARR2.
Try solving now

2. Find Subarray

Moderate
25m average time
70% success
0/80
Asked in company
ShareChat

You are given an array ‘arr’ of size ‘N’. Your task is to find the sub-array in ‘arr’ where the difference between the maximum and minimum element of the sub-array is greater than the number of elements in the sub-array. You have to return an array consisting of start and end indices of the sub-array. If sub-array does not exists, then return [-1, -1].

Note:
The array is 1-indexed.
For example
You are given, ‘arr’ = [4, 3, 0, 2], here the sub-array [4, 3, 0] is the sub-array where the difference between the minimum and the maximum elements in the sub-array is 4 - 0 = 4, which is greater than the length. Hence the answer is [1, 3]. Thus, the answer is ‘YES’.
Problem approach

Use two pointers, start and end, to maintain the starting and ending points of the array, and follow the steps below:

  1. Stop if you have reached the end of the array.
  2. Increment the end index if start becomes greater than end.
  3. Print the subarray from the start index to the end index, and increment the start index.

 

Try solving now

3. Merge Sort

Easy
15m average time
85% success
0/40
Asked in companies
Media.netHewlett Packard EnterpriseIBM

Given a sequence of numbers ‘ARR’. Your task is to return a sorted sequence of ‘ARR’ in non-descending order with help of the merge sort algorithm.

Example :

Merge Sort Algorithm -

Merge sort is a Divide and Conquer based Algorithm. It divides the input array into two-parts, until the size of the input array is not ‘1’. In the return part, it will merge two sorted arrays a return a whole merged sorted array.

subsequence

The above illustrates shows how merge sort works.
Note :
It is compulsory to use the ‘Merge Sort’ algorithm.
Problem approach

Tip 1: Knowledge of arrays
Tip 2: Knowledge of lists
Tip 3: Knowledge of the two-pointer approach

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
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Amazon
960 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