i
HCLTech
Filter interviews by
Shift all 0's in an array to the end while maintaining the order of non-zero elements.
Iterate through the array and maintain a count of non-zero elements.
Use a second pointer to place non-zero elements in their new positions.
Fill the remaining positions in the array with 0's after all non-zero elements are placed.
Example: For input [0, 1, 0, 3, 12], output should be [1, 3, 12, 0, 0].
Convert a nested array into a flat array using a custom method in JavaScript.
Use recursion to handle nested arrays. Example: flatten([1, [2, [3, 4]], 5]) returns [1, 2, 3, 4, 5].
Check if an element is an array using Array.isArray().
Concatenate results using the spread operator or Array.prototype.concat().
Base case: if the element is not an array, push it to the result.
Remove unwanted spaces from a given string
Use string manipulation functions to remove extra spaces
Iterate through the string and remove any consecutive spaces
Trim the string to remove leading and trailing spaces
++x increments the value of x and then returns the incremented value, while x++ returns the current value of x and then increments it.
++x is a pre-increment operator, it increments the value of x and then returns the incremented value
x++ is a post-increment operator, it returns the current value of x and then increments it
Example: int x = 5; int y = ++x; // x is now 6, y is 6
Example: int x = 5; int y = x++; // x i...
What people are saying about HCLTech
A pointer is a variable that stores the memory address of another variable, enabling direct memory access and manipulation.
Pointers are used in languages like C and C++ to manage memory efficiently.
Example: int *ptr; // ptr is a pointer to an integer.
Pointers can be dereferenced to access the value at the memory address they point to.
Example: *ptr = 10; // assigns 10 to the integer at the address stored in ptr.
Poi...
A pointer to pointer is a variable that stores the memory address of another pointer.
It is used to store the address of a pointer variable.
It allows indirect access to a memory location.
Commonly used in dynamic memory allocation and multi-dimensional arrays.
Groupby is used to group data based on a specific column, while Orderby is used to sort data based on a specific column.
Groupby is used to create groups of data based on a specific column.
Orderby is used to sort data based on a specific column in ascending or descending order.
Groupby is often used in combination with aggregate functions like sum, count, etc.
Orderby can be used to sort data in ascending or descendi...
Delete removes specific rows from a table, truncate removes all rows, and drop removes the entire table.
Delete is a DML operation, while truncate and drop are DDL operations.
Delete can be rolled back, while truncate and drop cannot be rolled back.
Delete operation maintains the transaction log, while truncate and drop do not.
Delete operation is slower compared to truncate and drop.
Example: DELETE FROM table_name WH...
Inheritance is a concept in object-oriented programming where a class inherits attributes and methods from another class.
Allows a class to inherit attributes and methods from another class
Promotes code reusability and reduces redundancy
Creates a parent-child relationship between classes
Polymorphism is the ability of a function or method to behave differently based on the object it is acting upon.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
It enables a single interface to be used for different data types or classes.
Examples include method overloading and method overriding in object-oriented programming.
I applied via Approached by Company and was interviewed in Oct 2024.Β There was 1 interview round.
Interview questions for Software Engineer position covering OOPS concepts, exception handling, SOLID principles, Java 8 features, and Streams.
Abstraction in OOPS: Hiding implementation details. Example: Abstract class Shape with method draw().
Encapsulation in OOPS: Bundling data and methods that operate on the data. Example: Class Employee with private fields and public getters/setters.
Inheritance in OOPS: Reusing code...
The interview questions cover various topics related to Spring framework, REST vs SOAP, JPA repository, Feign client, circuit breaker, and Spring Security.
Spring Boot provides a simpler and faster way to set up and run Spring applications compared to traditional Spring.
Common annotations in Spring include @Controller, @Service, @Repository, @Autowired, @Component, @RequestMapping, @GetMapping, @PostMapping, @PutMapping...
50 aptitude questions
2 codes were given and it was easy
I appeared for an interview in Sep 2024, where I was asked the following questions.
Shift all 0's in an array to the end while maintaining the order of non-zero elements.
Iterate through the array and maintain a count of non-zero elements.
Use a second pointer to place non-zero elements in their new positions.
Fill the remaining positions in the array with 0's after all non-zero elements are placed.
Example: For input [0, 1, 0, 3, 12], output should be [1, 3, 12, 0, 0].
Redux and Context API are state management tools in React for managing application state efficiently.
Redux is a predictable state container for JavaScript apps, allowing for centralized state management.
Context API is a built-in React feature that allows for sharing state across components without prop drilling.
Redux uses actions and reducers to manage state changes, while Context API uses Provider and Consumer compone...
I applied via Job Portal and was interviewed in Jan 2024.Β There were 2 interview rounds.
Basic questions from maths, English and reasoning
It consists of general apti questions and two coding questions
Two coding questions were there
I appeared for an interview before Jan 2024.
Aptitude test was done through choose the correct answer
I appeared for an interview before Jul 2024, where I was asked the following questions.
My daily activities as a Software Engineer involve coding, collaborating, and continuous learning to enhance software solutions.
Writing and reviewing code: I spend a significant portion of my day writing code for new features or fixing bugs.
Collaborating with team members: I participate in daily stand-up meetings to discuss progress and roadblocks.
Testing and debugging: I conduct tests to ensure the software runs smoot...
I expect a salary that reflects my skills, experience, and the industry standards for this role.
Research industry standards: For example, Glassdoor or Payscale can provide insights into average salaries for similar roles.
Consider my experience: With 5 years in software development, I would expect a salary in the range of $80,000 to $100,000.
Location matters: Salaries can vary significantly based on the cost of living i...
Some of the top questions asked at the HCLTech Software Engineer interview for freshers -
The duration of HCLTech Software Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 27 interview experiences
Difficulty level
Duration
based on 2.5k reviews
Rating in categories
Software Engineer
24.9k
salaries
| βΉ2.7 L/yr - βΉ8.1 L/yr |
Technical Lead
22.9k
salaries
| βΉ10.9 L/yr - βΉ21 L/yr |
Senior Software Engineer
16.8k
salaries
| βΉ5.4 L/yr - βΉ15.8 L/yr |
Lead Engineer
16.4k
salaries
| βΉ5.3 L/yr - βΉ12.4 L/yr |
Analyst
15.9k
salaries
| βΉ2.3 L/yr - βΉ6.5 L/yr |
TCS
Wipro
Accenture
Cognizant