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

SDE - 1

Zivost Technologies
upvote
share-icon
3 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Data Structures, java , OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1 - Practice Atleast 250 Questions from coding ninjas
Tip 2 - Ex- Do atleast 2 good projects

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

Tip 1 : Have some good projects on resume.
Tip 2 : Do not put false things on resume and be confident.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration90 minutes
Interview date1 Aug 2021
Coding problem2

The test was conducted on the Hackerrank platform. A total of 25 questions were asked (2 coding+21 MCQs). MCQs consist of java input/output, java oops, DBMS, etc

1. 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.

Problem approach

The simple idea of Kadane’s algorithm is to look for all positive contiguous segments of the array (max_ending_here is used for this). And keep track of the maximum sum contiguous segment among all positive segments (max_so_far is used for this). Each time we get a positive-sum compare it with max_so_far and update max_so_far if it is greater than max_so_far

Try solving now

2. K-Replacement

Easy
5m average time
95% success
0/40
Asked in company
Zivost Technologies

Bob is a student and learned about alphabets and prime numbers today. He still sometimes gets confused between normal numbers and prime numbers. So his teacher thought of giving him a fun game that can help him to get confident in this topic.

The game was, there is string ‘STR’ of length ‘N’ which includes alphabets and digits. There is also a special character ‘K’. The game was to replace every prime number that occurred in the string ‘STR’ with ‘K’.

Bob has solved the task and finished the game, but he still has doubt that the final string he got after the replacement is correct. So being his friend he asked you to help him with it.

So your task is to play the same game and return the correct final string after replacement.

NOTE: 1 is neither prime nor composite.

EXAMPLE :
Input: ‘N’ = 8, 'K' = ?, ‘STR’ = A12a3CbB

Output: A1?a?CbB
In this case, the numbers are ‘1’, ‘2’, and ‘3’ at ‘2nd’, ‘3rd’, and ‘5th’ positions respectively (1-based indexing). But only ‘2’ and ‘3’ are prime numbers, So after replacing them with ‘K’ the final string will be “A1?a?CbB”.
Problem approach

Iterate for every character in the string and perform the below steps for each character: 
Add k to the ASCII value of character str[i].
If it exceeds 122, then perform a modulus operation of k with 26 to reduce the number of steps, as 26 is the maximum number of shifts that can be performed in a rotation.
To find the character, add k to 96. Hence, the character with ASCII value k+96 will be a new character.

Try solving now
02
Round
Easy
Face to Face
Duration45 minutes
Interview date2 Aug 2021
Coding problem1

1 coding question was asked and a few DBMS related question were asked like indexing, type of indexing, etc 

They also asked me to solve 1 simple SQL query.

5 students were selected after this round.

1. Maximum Consecutive Ones

Easy
0/40
Asked in companies
OlaAmazonZivost Technologies

You are given an array ‘ARR’ of length ‘N’ consisting of only ‘0’s and ‘1’s. Your task is to determine the maximum length of the consecutive number of 1’s.


For Example:
ARR = [0, 1, 1, 0, 0, 1, 1, 1], here you can see the maximum length of consecutive 1’s is 3. Hence the answer is 3.
Problem approach

A simple solution is consider every subarray and count 1’s in every subarray. Finally return return size of largest subarray with all 1’s

Try solving now
03
Round
Medium
Face to Face
Duration50 minutes
Interview date2 Aug 2021
Coding problem1

They gave me OS (mutex) related questions. The question was properly framed, and I was told to write the pseudo-code for the given problem

1. OS Question

mutex locking

Problem approach

A Mutex is a lock that we set before using a shared resource and release after using it.
Be confident and relax
Do not put any false thing in your resume(like the project, experience, etc)
Try having an engaging interaction with the interviewer.
Write very clean code(with proper variable name and comments)

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
961 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
3452 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