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

SDE - 1

Hexaview Technologies
upvote
share-icon
3 rounds | 8 Coding problems

Interview preparation journey

expand-icon
Journey
I started solving DSA coding questions on various online coding platforms in my 3rd year of graduation. To clear the aptitude round (i.e., the first round of every company, both on-campus and off-campus), I watched videos from a popular aptitude playlist on YouTube by a well-known educator, learning tricks and shortcuts, and practiced solving questions on a common online platform.
Application story
I filled out the Google form circulated by our college TPO for applying to Hexaview Technologies, where I shared my education details and resume for shortlisting.
Why selected/rejected for the role?
I was not selected for this role due to a lack of sufficient knowledge in fundamental computer subjects like OS, DBMS, CN, and OOPs at that time. Also, my English communication skills were weak at that time.
Preparation
Duration: 6 months
Topics: Data Structures, Pointers, OOP, System Design, Algorithms, Dynamic Programming, Competitive Programming, DBMS
Tip
Tip

Tip 1: Solve basic DSA coding problems daily on various platforms.
Tip 2: Practice at least 300 questions.
Tip 3: Work on AI/ML-based projects.

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

Tip 1: Do not include false information on your resume.
Tip 2: Add your achievements and experiences to your resume.

Interview rounds

01
Round
Medium
Online Coding Test
Duration45 minutes
Interview date10 Aug 2023
Coding problem2

There were two easy-to-medium level DSA-based coding questions for 45 minutes. One was based on arrays, and the other was based on strings.

1. Find Peak Element

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

You are given an array 'arr' of length 'n'. Find the index(0-based) of a peak element in the array. If there are multiple peak numbers, return the index of any peak number.


Peak element is defined as that element that is greater than both of its neighbors. If 'arr[i]' is the peak element, 'arr[i - 1]' < 'arr[i]' and 'arr[i + 1]' < 'arr[i]'.


Assume 'arr[-1]' and 'arr[n]' as negative infinity.


Note:
1.  There are no 2 adjacent elements having same value (as mentioned in the constraints).
2.  Do not print anything, just return the index of the peak element (0 - indexed).
3. 'True'/'False' will be printed depending on whether your answer is correct or not.


Example:

Input: 'arr' = [1, 8, 1, 5, 3]

Output: 3

Explanation: There are two possible answers. Both 8 and 5 are peak elements, so the correct answers are their positions, 1 and 3.


Problem approach

I use binary search to solve the problem with a time complexity of O(log n).
If (arr[i] < arr[i+1]), it is guaranteed that at least one peak element will exist on the right side of this element.
Conversely, if (arr[i-1] > arr[i]), it is guaranteed that at least one peak element will exist on the left side of this element.

Try solving now

2. Search Pattern (Rabin-Karp Algorithm)

Moderate
20m average time
90% success
0/80
Asked in companies
Celebal TechnologiesNirmataHexaview Technologies

You’re given two strings, 'text' of length 'n' and 'pattern' of length 'm', consisting of lowercase characters.


Find all the occurrences of the string ‘pattern’ in ‘text’.


For each occurrence, print the index from where it starts in the string ‘text’ (1 - indexed).


Example:
Input: ‘text’ = “cxyzghxyzvjkxyz” and ‘pattern’ = “xyz”

Output: 2 7 13

Explanation: The pattern ‘pattern’ = “xyz” appears at 3 positions in ‘text’.
Problem approach

Firstly, I solved this problem using nested for loops, but it gave me a Time Limit Exceeded error due to O(N*M) complexity. After some time, I remembered the Rabin-Karp Pattern Matching Algorithm and successfully solved the problem.

Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date12 Aug 2023
Coding problem1

This is a DSA-based technical interview round held on Skype, in which the interviewer asked a DP-based coding problem and instructed me to solve and explain it in Notepad while screen sharing. After solving the problem successfully, he asked some technical interview questions related to computer fundamentals, such as DBMS, OS, and OOPs.

1. Partition Equal Subset Sum

Moderate
25m average time
65% success
0/80
Asked in companies
OlaOracleSAP Labs

You are given an array 'ARR' of 'N' positive integers. Your task is to find if we can partition the given array into two subsets such that the sum of elements in both subsets is equal.

For example, let’s say the given array is [2, 3, 3, 3, 4, 5], then the array can be partitioned as [2, 3, 5], and [3, 3, 4] with equal sum 10.

Follow Up:

Can you solve this using not more than O(S) extra space, where S is the sum of all elements of the given array?
Problem approach

This problem is similar to the subset sum problem, where the target integer is equal to sum/2, with sum being the sum of all array elements. If the sum is odd, there cannot be two subsets with equal sums, so return false. If the sum of the array elements is even, find a subset of the array with a sum equal to sum/2. The first step is simple. I used recursive memoization to solve this problem.

Try solving now
03
Round
Medium
Video Call
Duration60 minutes
Interview date16 Aug 2023
Coding problem5

This is a one-on-one video call online interview in which the interviewer asked some technical questions based on OS, DBMS, OOP, CN, etc., followed by a project discussion and some HR questions. He also asked me a tough puzzle, which I was unable to solve.

1. DBMS

Write a query for the MERGE statement in SQL.

Problem approach

Tip 1: Practice SQL queries. 

Tip 2: Work on projects based on the latest technologies like AI/ML, Neural Networks, Deep Learning, etc. 

Tip 3: Answer HR questions positively.

2. Operating System

What is a deadlock in OS? (Learn)

3. Technical Question

Difference between an array and a vector. (Learn)

4. DBMS

Explain all types of joins in SQL with their syntax. (Learn)

5. HR Question

Why do you want to join our company?

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
MTS 1
4 rounds | 15 problems
Interviewed by Hexaview Technologies
0 views
0 comments
0 upvotes
Application Engineer
4 rounds | 6 problems
Interviewed by Hexaview Technologies
865 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3452 views
0 comments
0 upvotes
Technical Associate
4 rounds | 18 problems
Interviewed by Hexaview Technologies
226 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