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

SDE - 2

Cvent
upvote
share-icon
1 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Journey
I applied in Cvent Company on LinkedIn for SDE-2 profile and got shortlisted for the interview. There are 2 technical rounds and one managerial round which you need to clear in order to get into the company. Total interview rounds: 2
Application story
I applied on Naukri and got shortlisted for the first interview which went for 1 hr next day I got the news that I have not been selected for another round.
Why selected/rejected for the role?
I did not get shortlisted because because I was not able to answer all the questions, while I was consistently preparing for the role and working on my fundamentals and core learning, also basic coding questions I was practising. Java 8 is must with good knowledge of Threading.
Preparation
Duration: 3 months
Topics: Data Structures, Algorithms, Java 8, Sql, Spring Boot, Design Pattern
Tip
Tip

Tip 1 : Prepare fundamental theory well
Tip 2 : Prepare Easy and medium level questions
Tip 3 : Go through you resume well

Application process
Where: Naukri
Eligibility: B.Tech/Mca
Resume Tip
Resume tip

Tip 1:Make your resume relevant
Tip 2:Mention projects

Interview rounds

01
Round
Medium
Online Coding Test
Duration60 mins
Interview date9 Mar 2023
Coding problem3

3 coding questions were given to solve

1. Search In The Array

Easy
15m average time
85% success
0/40
Asked in companies
HCL TechnologiesOYOPayPal

You are given two arrays ‘arr’ of size ‘n’ and ‘queries’ of size ‘q’. For each element ‘q’ in the array 'queries', your task is to find the sum of all elements in the array ‘arr’ which are less than or equal to ‘q’.

For example: given array ‘arr = { 1, 2, 3, 3, 4, 5, 6, 7, 9, 10}’ and ‘ queries= { 3, 5}’
Then the sum of all elements whose value is less than or equal to
‘queries[0] = 3’ is ‘ 1+2+3+3 =9’.
‘queries[1] = 5’ is ‘1+2+3+3+4+5 =18’.

You have to return the answer of every query { 9, 18}.

Problem approach

int left = 0;
int right = nums.length-1;
int mid;

while(left<=right){
mid = left+(right-left)/2;
if(nums[mid]==target) return mid;
else if(nums[mid]>target) right = mid-1;
else left = mid+1;
}

return left;

Try solving now

2. Rotate array

Easy
25m average time
80% success
0/40
Asked in companies
SalesforceIBMDell Technologies

Given an array 'arr' with 'n' elements, the task is to rotate the array to the left by 'k' steps, where 'k' is non-negative.


Example:
'arr '= [1,2,3,4,5]
'k' = 1  rotated array = [2,3,4,5,1]
'k' = 2  rotated array = [3,4,5,1,2]
'k' = 3  rotated array = [4,5,1,2,3] and so on.
Try solving now

3. Move Zeroes To End

Moderate
30m average time
70% success
0/80
Asked in companies
AmazonSAP LabsMicrosoft

Given an unsorted array of integers, you have to move the array elements in a way such that all the zeroes are transferred to the end, and all the non-zero elements are moved to the front. The non-zero elements must be ordered in their order of appearance.

For example, if the input array is: [0, 1, -2, 3, 4, 0, 5, -27, 9, 0], then the output array must be:

[1, -2, 3, 4, 5, -27, 9, 0, 0, 0].

Expected Complexity: Try doing it in O(n) time complexity and O(1) space complexity. Here, ‘n’ is the size of the array.

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

Which SQL keyword removes duplicate records from a result set?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Cvent
814 views
0 comments
0 upvotes
company logo
SDE - 2
5 rounds | 5 problems
Interviewed by Cvent
790 views
0 comments
0 upvotes
company logo
SDE - 1
4 rounds | 7 problems
Interviewed by Cvent
897 views
0 comments
0 upvotes
company logo
Full Stack Engineer
3 rounds | 4 problems
Interviewed by Cvent
384 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 2
5 rounds | 12 problems
Interviewed by Walmart
25139 views
8 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Amazon
5505 views
0 comments
0 upvotes
company logo
SDE - 2
6 rounds | 8 problems
Interviewed by Amazon
3958 views
0 comments
0 upvotes