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

Lead Software Engineer

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

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: JAVA, SPRING BOOT, CODING PRACTICE, Spring MVC, SQL
Tip
Tip

Tip 1 : clear your basics with practice 
Tip 2 : do self projects 
Tip 3 : each day give some time to study.

Application process
Where: Other
Eligibility: Good coding, and technical knowledge of development
Resume Tip
Resume tip

Tip 1 : Write only what you know, people add random skills just to to get shortlisted, but get rejected at the time of interview because they actually don't know the skills 
Tip 2 : instead of wasting yours and interviewers time be honest with yourself and them. Add the level scale infront of your skill to make them understand how much you know.

Interview rounds

01
Round
Medium
Video Call
Duration60 Minutes
Interview date16 Feb 2022
Coding problem1

1. Occurrence Of Each Word

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

You are given a string S of words. Your task is to count the occurrence of each word present in the string S. A word is a sequence of one or more non-space characters, and there can be multiple spaces between two words, and also there can be leading or trailing spaces in a string S.

For Example:
For the given string  “what we think we become”

“what”,” think”, and “become” occurs 1 time, and “we” occurs 2 times in the given string.
Problem approach

I did the question using hashmap storing the char in key and there no of occurrence in value

Try solving now
02
Round
Easy
Online Coding Interview
Duration45 minutes
Interview date19 Feb 2022
Coding problem1

It was managerial round

1. String Sorting

Moderate
30m average time
60% success
0/80
Asked in companies
FacebookHCL TechnologiesAmazon

You and your friend found a string ‘S’ of length ‘N’. You love to rearrange the strings, So you decided to rearrange this string too. But this time, your friend puts a constraint on rearranging. He gave you ‘M’ pairs of integers, each pair denoting two indices of the string ‘S’. He also gave you an operation. In one operation, you can select a pair of indices from the given ‘M’ pairs and swap the character present at those indices in the string.

Your task is to rearrange the strings following the given constraints and find the lexicographically smallest string that you can obtain by doing the operations any number of times (might be 0 as well).

Problem approach

I stored the char in string in array and did array.sort

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

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
Lead Software Engineer
3 rounds | 3 problems
Interviewed by HCL Technologies
0 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 5 problems
Interviewed by HCL Technologies
4294 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by HCL Technologies
2260 views
0 comments
0 upvotes
company logo
Java Developer
2 rounds | 2 problems
Interviewed by HCL Technologies
7971 views
0 comments
0 upvotes