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

SDE - Intern

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

Interview preparation journey

expand-icon
Journey
I secured an internship at HCL through a referral from a current employee. I reached out to them via LinkedIn, shared my resume, and expressed interest in the role. They recommended me internally, which helped my application get noticed and significantly streamlined the selection process.
Application story
I applied for an internship at HCL through a referral from a company employee. After connecting on LinkedIn, I shared my resume and expressed my interest in the role. They appreciated my enthusiasm and referred me internally. Shortly after, I was contacted by HR for a test and an interview, which led to my successful selection for the internship.
Why selected/rejected for the role?
I was selected for the internship because I demonstrated strong alignment with the role’s requirements, showed enthusiasm for learning, and possessed relevant academic knowledge. My resume highlighted key skills and projects, and the referral added credibility. During the interview, I effectively communicated my motivation, adaptability, and eagerness to contribute.
Preparation
Duration: 2.5 months
Topics: Data Structures, OOPs, System Design, Algorithms, Artificial Intelligence
Tip
Tip

Tip 1: Practice more questions based on linked lists and arrays.
Tip 2: Do at least one industry-level project.

Application process
Where: Campus
Eligibility: No criteria, (Stipend - Unpaid)
Resume Tip
Resume tip

Tip 1: Tailor for the Role – Customize your resume for each application by highlighting relevant skills, experiences, and keywords from the job description.

Tip 2: Keep It Concise and Clear – Use bullet points, action verbs, and clean formatting to make your resume easy to scan. Ideally, keep it to one page for freshers.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration60 minutes
Interview date2 Jan 2025
Coding problem2

1. Reverse Alternate K nodes

Easy
10m average time
90% success
0/40
Asked in companies
AdobeIntuitSalesforce

You are given a Singly Linked List of integers and a positive integer 'K'. Modify the linked list by reversing every alternate 'K' nodes of the linked list.

A singly linked list is a type of linked list that is unidirectional, that is, it can be traversed in only one direction from head to the last node (tail).
Note:
If the number of nodes in the list or in the last group is less than 'K', just reverse the remaining nodes. 
Example:
Linked list: 5 6 7 8 9 10 11 12
K: 3 

Output: 7 6 5 8 9 10 12 11

We reverse the first 'K' (3) nodes and then skip the next 'K'(3) nodes. Now, since the number of nodes remaining in the list (2) is less than 'K', we just reverse the remaining nodes (11 and 12). 
Note:
You need to reverse the first 'K' nodes and then skip the 'K' nodes and so on. 5 6 7 10 9 8 11 12 is not the correct answer for the given linked list. 
Problem approach

Step 1: I first checked if there were at least k nodes remaining in the list. If not, I returned the current head, as no reversal was needed for the remaining nodes.

Step 2: If there were k nodes, I reversed the first k nodes using the standard iterative reversal logic (three-pointer approach: prev, curr, next).

Step 3: After reversing the first k nodes, I recursively called the function for the next part of the list and linked the current reversed group to the result of the next reversed segment.

Step 4: I returned the new head of the reversed segment, which is the k-th node after reversal.

Try solving now

2. DBMS

Problem Name: Most Active Members

Table Definitions:

Members

ColumnType
member_idINT
nameVARCHAR
join_dateDATE

 

Borrow

ColumnType
borrow_idINT
member_idINT
book_idINT
borrow_dateDATE

 

Task:
Write a query to find the names of the top 3 members who borrowed the most books in the year 2024.

The output should be sorted by the number of books borrowed in descending order, and by name in ascending order in case of ties.

If there are fewer than 3 members, return all of them.

Only consider borrowings made between '2024-01-01' and '2024-12-31'.

02
Round
Medium
Video Call
Duration60 minutes
Interview date20 Jan 2025
Coding problem1

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 idea behind Kadane's Algorithm is to traverse the array from left to right and, for each element, find the maximum sum among all subarrays ending at that element. The final result will be the maximum of all these values.

To calculate the maximum sum of the subarray ending at the current element (let’s call it maxEnding), we can use the maximum sum ending at the previous element. For any element, we have two choices:

Choice 1: Extend the maximum sum subarray ending at the previous element by adding the current element to it. If the maximum subarray sum ending at the previous index is positive, it’s better to extend the subarray.

Choice 2: Start a new subarray beginning from the current element. If the maximum subarray sum ending at the previous index is negative, it’s better to start a new subarray from the current element.

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

What is recursion?

Choose another skill to practice
Similar interview experiences
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by HCL Technologies
1333 views
1 comments
0 upvotes
company logo
Software Engineer
2 rounds | 3 problems
Interviewed by HCL Technologies
0 views
2 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by HCL Technologies
1640 views
0 comments
0 upvotes
company logo
Software Engineer
2 rounds | 6 problems
Interviewed by HCL Technologies
1357 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Arcesium
3688 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Arcesium
2650 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by BNY Mellon
2323 views
0 comments
0 upvotes