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

SDE - 1

HCL Technologies
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

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

Tip 1 : Practice DP based questions as much as you can. Also, be confident during the interview about your solution. For practice, you can prefer Coding Ninjas and Geeks For Geeks.
Tip 2 : Practice atleast 100 Questions of coding

Application process
Where: Campus
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1: Keep it short. Mention the academic and professional projects you've done. Add your educational details properly with percentage or CGPA obtained.
Tip 2: Have some projects on resume.

Interview rounds

01
Round
Medium
Online Coding Test
Duration1 hour
Interview date7 Dec 2022
Coding problem3

1. Minimum Cost Path

Moderate
25m average time
70% success
0/80
Asked in companies
Goldman SachsOlaSalesforce

You have been given a matrix of ‘N’ rows and ‘M’ columns filled up with integers. Find the minimum sum that can be obtained from a path which from cell (x,y) and ends at the top left corner (1,1).

From any cell in a row, we can move to the right, down or the down right diagonal cell. So from a particular cell (row, col), we can move to the following three cells:

Down: (row+1,col)
Right: (row, col+1)
Down right diagonal: (row+1, col+1)
Problem approach

s1- I had practiced enough of DP questions, so this one looked fairly easy. Since it was a standard DP question, the same approach worked here too.

Try solving now

2. Maximum Subarray Sum

Moderate
35m average time
81% success
0/80
Asked in companies
QualcommUberAmazon

You are given an array 'arr' of length 'n', consisting of integers.


A subarray is a contiguous segment of an array. In other words, a subarray can be formed by removing 0 or more integers from the beginning and 0 or more integers from the end of an array.


Find the sum of the subarray (including empty subarray) having maximum sum among all subarrays.


The sum of an empty subarray is 0.


Example :
Input: 'arr' = [1, 2, 7, -4, 3, 2, -10, 9, 1]

Output: 11

Explanation: The subarray yielding the maximum sum is [1, 2, 7, -4, 3, 2].
Problem approach

s1- I used Kadane algorithm here to find subarray with maximum sum. It is a standard question for interview.

Try solving now

3. Convert Decimal into Irreducible Fraction

Easy
25m average time
75% success
0/40
Asked in companies
OracleHCL TechnologiesMicrosoft

You are given a real number, 'NUM'. You have to represent this number as an irreducible fraction of the form A/B, where 'A' and 'B' are the numerator and denominator respectively.

A fraction is called irreducible when the greatest common divisor (GCD/HCF) of the numerator and denominator is one.

Example :
Given 'NUM' : 1.75
Irreducible fraction  can be represented as 7/4.

Note that 14/8 = 1.75 as well, but 14/8 is not an irreducible fraction.
Note :
In order to preserve precision, the real number will be given to you in the form of two strings : the integer part, and the fractional part. 

The integer part will contain not more than 8 digits, whereas the fractional part will always contain 8 digits.
Problem approach

s1- I was unable to solve this question in given time. I thought of using decimal precision and other things but not able to solve this.

Try solving now
02
Round
Medium
Face to Face
Duration90 minutes
Interview date8 Dec 2022
Coding problem1

- Morning time
- Environment was good.
- No
- Interviewer was good

1. DFS Traversal

Moderate
35m average time
65% success
0/80
Asked in companies
SamsungIntuitGoldman Sachs

Given an undirected and disconnected graph G(V, E), containing 'V' vertices and 'E' edges, the information about edges is given using 'GRAPH' matrix, where i-th edge is between GRAPH[i][0] and GRAPH[i][1]. print its DFS traversal.

V is the number of vertices present in graph G and vertices are numbered from 0 to V-1. 

E is the number of edges present in graph G.
Note :
The Graph may not be connected i.e there may exist multiple components in a graph.
Problem approach

s1- As I have to find a number of connected components in an undirected graph 
s2- so I simply use Depth-first search to solve this question by visiting each element and mapped it to the number of component in which it belongs. At last, I print the vertices of each component.

Try solving now
03
Round
Easy
HR Round
Duration30 min
Interview date7 Dec 2022
Coding problem1

- Morning time
- Environment was good.
- No
- Interviewer was good

1. Basic HR Questions

1- How would your current manager describe you?
2- What would you change about your current job description?
3- How do you stay organized in your current position?

Problem approach

Tip 1: Communication skills is must
Tip 2: Give mock tests.

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
2 rounds | 6 problems
Interviewed by HCL Technologies
1250 views
0 comments
0 upvotes
company logo
SDE - 1
4 rounds | 6 problems
Interviewed by HCL Technologies
0 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 6 problems
Interviewed by HCL Technologies
1949 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by HCL Technologies
2260 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by BNY Mellon
6365 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
2197 views
0 comments
0 upvotes