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

Software Developer

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

Interview preparation journey

expand-icon
Preparation
Duration: 2 Months
Topics: Data Structures, Pointers, OOPS, Reasoning, Algorithms, Problem Solving Skills
Tip
Tip

Tip 1 : Analyze the mock interview
Tip 2 : Make a list of questions asked for interview

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

Tip 1 : Give interviews to any person for practice point
Tip 2 : Fit in skills and qualities

Interview rounds

01
Round
Medium
Online Coding Test
Duration60 minutes
Interview date6 Apr 2022
Coding problem5

- Morning time
- Environment was good.
- No other significant activity
- Interviewer was good

1. Count Triplets

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

You have been given an integer ‘X’ and a non-decreasing sorted doubly linked list with distinct nodes.

Your task is to return the number of triplets in the list that sum up to the value ‘X’.

Problem approach

step1- In both above samples, it is easy to verify that all 3 conditions hold and there are no other triples satisfying the conditions.
step2- In the first test case, we have N=6, p=2. The 2 triples satisfying the conditions are . (4,4,4), (4,2,4)
x + y + z = N
0 < z ≤ y ≤ x
|x - y - z| > K

Try solving now

2. Minimum Removals

Moderate
10m average time
90% success
0/80
Asked in companies
HCL TechnologiesDeutsche BankPayPal

You’re given an array ‘ARR’ of size N and an integer K. Your task is to determine the minimum number of elements that should be removed from the array such that the difference between the maximum and the minimum element in the remaining array is less than or equal to K.

Try solving now

3. Minimum Operations

Easy
20m average time
82% success
0/40
Asked in companies
BNY MellonLinkedInThought Works

You are given an array 'ARR' of 'N' positive integers. You need to find the minimum number of operations needed to make all elements of the array equal. You can perform addition, multiplication, subtraction or division with any element on an array element.

Addition, Subtraction, Multiplication or Division on any element of the array will be considered as a single operation.

Example:

If the given array is [1,2,3] then the answer would be 2. One of the ways to make all the elements of the given array equal is by adding 1 to the array element with value 1 and subtracting 1 from the array element with value 3. So that final array would become [2,2,2]. 
Try solving now

4. Maximum AND Sum of Array

Hard
0/120
Asked in companies
HCL TechnologiesWestern DigitalGoogle inc

You are given an array of coins ‘COINS’ of length ‘N’ and there are ‘S’ number of slots numbered from 1 to S such that 2*S >= N.

You have to place all N coins into some slots so that no slot contains more than two coins. After placing the coins you will calculate the AND sum as the sum of all the values obtained by performing the bitwise AND operation between the slot number and the value of the coin placed in that slot number .

You have to find AND sum between the coins and the slots.

Try solving now

5. Divide Two Integers

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

You are given two integers, ‘dividend’ and ‘divisor’.


You are required to divide the integers without using multiplication, division, and modular operators.


Your task is to return the quotient after dividing ‘dividend’ by ‘divisor’.


Note :

In cases where the dividend is not perfectly divisible by the divisor, you are required to return the integer value of the quotient which is closer to zero.

For example - If the answer is '8.34', we return the integer part, i.e., '8'. Also, If the answer is '-2.67', we return the integer part, i.e., '-2'.

Assume we're dealing with a system that can only store integers in the 32-bit signed integer range: [2^31, 2^31-1]. If the quotient is higher than 2^31 - 1, return 2^31 - 1; if it is less than -2^31, return -2^31. 

For example :

If the answer is ‘9.333’, then return ‘9’, or if the answer is ‘-8.123’, then return ‘-8’.
Problem approach

S1- Using short-circuiting in boolean expressions
S2- We can take advantage of short-circuiting in boolean expressions. We know that in boolean AND operation such as x && y, y is evaluated only if x is true.
S3- If x is false, then y is not evaluated because the whole expression would become false, which can be deduced without even evaluating y. Similarly, for boolean OR operation such as x || y, y is evaluated only if x is false. If x is true, then y is not evaluated. This is called short-circuiting in boolean expressions.

S4- We can apply this logic to solve a given problem. Consider the following code snippet:

((n & 1) && printf("odd")) || printf("even");

Try solving now
02
Round
Medium
HR Round
Duration10 minutes
Interview date20 Jul 2022
Coding problem1

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

1. Basic HR Questions

1- What is the biggest challenge you’ve faced in your current position?
2- How would your coworkers describe you?
3- What skills would you bring to the job?
4- How do you keep up with the latest industry trends?
5- Have you been a mentor or had a mentor?

Problem approach

Tip 1 : Practice by HR Questions on any of the website
Tip 2 : Give online interviews

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
Software Developer
3 rounds | 3 problems
Interviewed by HCL Technologies
3597 views
1 comments
0 upvotes
company logo
Software Developer
2 rounds | 2 problems
Interviewed by HCL Technologies
3442 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 5 problems
Interviewed by HCL Technologies
4293 views
0 comments
0 upvotes
company logo
Software Developer
2 rounds | 3 problems
Interviewed by HCL Technologies
1666 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Developer
3 rounds | 6 problems
Interviewed by Arcesium
1748 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 2 problems
Interviewed by BNY Mellon
1306 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 10 problems
Interviewed by CIS - Cyber Infrastructure
824 views
0 comments
0 upvotes