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

Senior Software Engineer

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

Interview preparation journey

expand-icon
Preparation
Duration: 2 months
Topics: Data Structures, Algorithms, Core Java, Hibernate, JSP, Servlets, Spring, SQL
Tip
Tip

Tip 1 : Must do Previously asked Interviews as well as Online Test Questions.

Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.

Tip 3 : Do at least 2 good projects and you must know every bit of them.


 

Application process
Where: Other
Eligibility: Above 2 years of experience
Resume Tip
Resume tip

Tip 1 : Have at least 2 good projects explained in short with all important points covered.

Tip 2 : Every skill must be mentioned.

Tip 3 : Focus on skills, projects and experiences more.


 

Interview rounds

01
Round
Medium
Video Call
Duration40 minutes
Interview date7 Sep 2021
Coding problem5

In this round, I was asked two very simple coding questions and also some questions from OOPS

1. Reverse the String

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

You are given a string 'STR'. The string contains [a-z] [A-Z] [0-9] [special characters]. You have to find the reverse of the string.

For example:

 If the given string is: STR = "abcde". You have to print the string "edcba".
follow up:
Try to solve the problem in O(1) space complexity. 
Try solving now

2. Puzzle

There are 9 coins, all except one weigh the same, the odd one is heavier than the rest. You must determine which is the odd one out using an old fashioned balance. You may use the balance twice. Explain how this can be done.

3. DBMS Questions

1) What are Trigger?
2) What is SQL injection ,how to prevent it.
3) What are indexes?
4) SQL query to find distinct record

4. Maximum Subarray Sum

Moderate
25m average time
75% success
0/80
Asked in companies
CultfitPayPalWalmart

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.

Try solving now

5. OOPS Questions

1) What do you mean by Constructor Overloading?

2) Overloading vs Overriding

3) Different types of polymorphism

02
Round
Medium
Video Call
Duration40 minutes
Interview date17 Sep 2021
Coding problem5

This round had 2 coding questions followed by some questions from DBMS

1. Middle Of Linked List

Easy
20m average time
80% success
0/40
Asked in companies
SamsungGoldman SachsOracle

Given a singly linked list of 'N' nodes. The objective is to determine the middle node of a singly linked list. However, if the list has an even number of nodes, we return the second middle node.

Note:
1. If the list is empty, the function immediately returns None because there is no middle node to find.
2. If the list has only one node, then the only node in the list is trivially the middle node, and the function returns that node.
Problem approach

Use two pointers, the 2nd pointer should traverse twice as fast as the first.

Try solving now

2. Nth Fibonacci Number

Easy
0/40
Asked in companies
SAP LabsHCL TechnologiesWalmart

The n-th term of Fibonacci series F(n), where F(n) is a function, is calculated using the following formula -

    F(n) = F(n - 1) + F(n - 2), 
    Where, F(1) = 1, F(2) = 1


Provided 'n' you have to find out the n-th Fibonacci Number. Handle edges cases like when 'n' = 1 or 'n' = 2 by using conditionals like if else and return what's expected.

"Indexing is start from 1"


Example :
Input: 6

Output: 8

Explanation: The number is ‘6’ so we have to find the “6th” Fibonacci number.
So by using the given formula of the Fibonacci series, we get the series:    
[ 1, 1, 2, 3, 5, 8, 13, 21]
So the “6th” element is “8” hence we get the output.
Try solving now

3. Data Structure Question

1) How does hashmap works?
2) Default load factor of hashmap

4. DBMS Question

Explain the difference between the DELETE and TRUNCATE command in a DBMS.

5. DBMS Question

Explain different types of Normalization forms in a DBMS.

03
Round
Easy
HR Round
Duration30 minutes
Interview date19 Oct 2021
Coding problem1

This was a Technical Cum HR round where I was first asked some basic Java-related concepts and then we discussed about my expectations from the company, learnings and growth in the forthcoming years. I would suggest be honest and try to communicate your thoughts properly in these type of rounds to maximise your chances of getting selected.

1. Basic HR Questions

1) Tell me about yourself
2) Your roles and responsibilities in the previous company
3) Explain the project architecture of the project mentioned in your resume
4) Your strengths and weaknesses

Problem approach

Tip 1 : The cross-questioning can go intense sometimes, think before you speak.
Tip 2 : Be open-minded and answer whatever you are thinking, in these rounds, I feel it is important to have an opinion.
Tip 3 : The context of questions can be switched, pay attention to the details. It is okay to ask questions in these rounds, like what are the projects currently the company is investing in and which team you are mentoring, how is the work environment etc.

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
Senior Software Engineer
3 rounds | 3 problems
Interviewed by HCL Technologies
3155 views
3 comments
0 upvotes
company logo
Senior Software Engineer
2 rounds | 2 problems
Interviewed by HCL Technologies
3555 views
0 comments
0 upvotes
company logo
Senior Software Engineer
2 rounds | 3 problems
Interviewed by HCL Technologies
0 views
0 comments
0 upvotes
company logo
Java Developer
2 rounds | 2 problems
Interviewed by HCL Technologies
7971 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Senior Software Engineer
1 rounds | 6 problems
Interviewed by Arcesium
3920 views
0 comments
0 upvotes
company logo
Senior Software Engineer
3 rounds | 3 problems
Interviewed by Ernst & Young (EY)
5173 views
0 comments
0 upvotes
company logo
Senior Software Engineer
3 rounds | 20 problems
Interviewed by Ernst & Young (EY)
3748 views
0 comments
0 upvotes