Hewlett Packard Enterprise
20+ ITC Interview Questions and Answers
Q1. Find the Duplicate Number Problem Statement
Given an integer array 'ARR' of size 'N' containing numbers from 0 to (N - 2). Each number appears at least once, and there is one number that appears twice. Your tas...read more
Find the duplicate number in an array of integers from 0 to N-2.
Iterate through the array and keep track of the frequency of each number using a hashmap.
Return the number with a frequency greater than 1 as the duplicate number.
Alternatively, use Floyd's Tortoise and Hare algorithm to find the duplicate number in O(N) time and O(1) space.
Q2. Remove Occurrences of Character from String
Given a string str
and a character X
, write a function to remove all occurrences of X
from the string.
If the character X
does not exist in the input string, the stri...read more
Create a function to remove all occurrences of a given character from a string.
Iterate through the string and build a new string excluding the specified character.
Use string manipulation functions to achieve the desired result.
Handle the case where the character does not exist in the string.
Return the modified string as the output.
Q3. Remove Character from String Problem Statement
Given a string str
and a character 'X', develop a function to eliminate all instances of 'X' from str
and return the resulting string.
Input:
The first line contai...read more
Develop a function to remove all instances of a given character from a string.
Iterate through the string and only add characters that are not equal to the given character to a new string.
Return the new string as the result.
Handle edge cases like empty string or character not found in the string.
Example: Input 'hello world' and 'o', output 'hell wrld'.
Q4. Character Frequency Problem Statement
You are given a string 'S' of length 'N'. Your task is to find the frequency of each character from 'a' to 'z' in the string.
Example:
Input:
S : abcdg
Output:
1 1 1 1 0 0 ...read more
The task is to find the frequency of each character from 'a' to 'z' in a given string.
Create an array of size 26 to store the frequency of each character from 'a' to 'z'.
Iterate through the given string and increment the count of each character in the array.
Print the array of frequencies as the output for each test case.
Q5. Subarray With Given Sum Problem Statement
Given an array ARR
of N integers and an integer S, determine if there exists a contiguous subarray within the array with a sum equal to S. If such a subarray exists, re...read more
Given an array of integers, find a contiguous subarray with a given sum.
Iterate through the array while keeping track of the current sum and start index.
Use a hashmap to store the sum and its corresponding index.
If the current sum - target sum exists in the hashmap, return the indices.
Handle edge cases like when the target sum is 0 or when no subarray is found.
Q6. Count Set Bits Problem Statement
Given a positive integer N
, compute the total number of '1's in the binary representation of all numbers from 1 to N. Return this count modulo 1e9+7 because the result can be ve...read more
Count the total number of set bits in the binary representation of numbers from 1 to N modulo 1e9+7.
Iterate through numbers from 1 to N and count the set bits in their binary representation
Use bitwise operations to count the set bits efficiently
Return the count modulo 1e9+7 for each test case
Q7. Find a Node in Linked List
Given a singly linked list of integers, your task is to implement a function that returns the index/position of an integer value 'N' if it exists in the linked list. Return -1 if the ...read more
Implement a function to find the index of a given integer in a singly linked list.
Traverse the linked list while keeping track of the index of each element.
Compare each element with the target integer 'N'.
Return the index if the element is found, otherwise return -1.
Handle cases where the target integer is not found in the linked list.
Q8. SDLC/STLC lifecycle explain. What do you understand by Agile development.Some theory concept of Software Testing subject.
SDLC/STLC are software development/testing lifecycles. Agile is a development methodology focused on iterative and incremental development.
SDLC (Software Development Life Cycle) is a process used to design, develop, and test software. It includes phases like planning, analysis, design, implementation, and maintenance.
STLC (Software Testing Life Cycle) is a process used to test software. It includes phases like test planning, test design, test execution, and test closure.
Agile...read more
Q9. Merge Sort Problem Statement
You are given a sequence of numbers, ARR
. Your task is to return a sorted sequence of ARR
in non-descending order using the Merge Sort algorithm.
Explanation:
The Merge Sort algorit...read more
Q10. Mirror Image of Triangle Pattern
Ninja's younger sister has to print a specific pattern of integers for a given number of rows, N
. She finds it challenging to handle different rows for each N
. Ninja wants to as...read more
Q11. Smallest Number with Given Digit Product
Given a positive integer 'N', find and return the smallest number 'M', such that the product of all the digits in 'M' is equal to 'N'. If such an 'M' is not possible or ...read more
Find the smallest number whose digits multiply to a given number N.
Iterate through possible digits to form the smallest number with product equal to N
Use a priority queue to keep track of the smallest possible number
Check constraints to ensure the number fits in a 32-bit signed integer
Q12. Write code to implement OOps concepts in Python.
Implementing OOPs concepts in Python using code examples.
Create classes and objects to represent real-world entities
Use inheritance to create a hierarchy of classes
Encapsulate data and behavior within classes
Implement polymorphism by overriding methods
Use abstraction to hide implementation details
Q13. How a mobile device connects to a network and the process invoved in it.
A mobile device connects to a network through wireless communication protocols like Wi-Fi, Bluetooth, or cellular data.
Mobile device scans for available networks
User selects a network and enters password if required
Device sends a connection request to the network
Network authenticates the device and assigns an IP address
Device is now connected to the network and can access the internet
Q14. Why I want to HPE?
I want to work at HPE because of their innovative technology solutions and commitment to research and development.
HPE is a leader in the tech industry, known for cutting-edge solutions
I am passionate about research and development and want to contribute to HPE's projects
I admire HPE's focus on innovation and continuous improvement
I believe working at HPE will provide me with valuable experience and opportunities for growth
Q15. Merge two sorted linked list.
Merge two sorted linked lists into a single sorted linked list.
Create a new linked list to store the merged result.
Compare the values of the nodes from both input lists and add the smaller value to the result list.
Move the pointer of the list with the smaller value to the next node and continue the process until both input lists are empty.
Q16. What do you know about ABC analysis
ABC analysis is a technique used in inventory management to categorize items based on their importance.
ABC analysis classifies items into categories A, B, and C based on their value and contribution to overall inventory costs.
Category A items are high value items that make up a small percentage of total items but contribute a large percentage of total inventory costs.
Category B items are moderate value items that make up a moderate percentage of total items and contribute a m...read more
Q17. Reverse linked list in k groups
Reverse a linked list in groups of k nodes
Break the linked list into groups of k nodes
Reverse each group individually
Connect the reversed groups back together
Q18. What is deferred revenue?
Deferred revenue is revenue that has been received by a company, but has not yet been earned.
Deferred revenue is a liability on the company's balance sheet.
It represents revenue that has been paid by customers in advance for goods or services that have not yet been delivered.
As the goods or services are provided, the deferred revenue is gradually recognized as revenue on the income statement.
Examples include magazine subscriptions, software licenses, and annual maintenance co...read more
Q19. Types of topologies in CN?
Common types of network topologies include bus, star, ring, mesh, and hybrid.
Bus: all devices are connected to a central cable
Star: all devices are connected to a central hub
Ring: each device is connected to two other devices, forming a ring
Mesh: each device is connected to every other device
Hybrid: combination of two or more different topologies
Q20. What is accounting
Accounting is the process of recording, summarizing, analyzing, and reporting financial transactions of a business.
Involves recording financial transactions
Summarizing financial data in financial statements
Analyzing financial information to make business decisions
Reporting financial results to stakeholders
Examples: preparing balance sheets, income statements, cash flow statements
Q21. Is deferred rev
Deferred revenue is revenue that has been received but not yet earned, so it is recorded as a liability until the goods or services are delivered.
Deferred revenue is a liability on the balance sheet until the revenue is recognized.
It is common in subscription-based businesses where customers pay upfront for services to be provided over time.
Once the revenue is earned, it is recognized on the income statement.
Examples include magazine subscriptions, software licenses, and prep...read more
Q22. SQL Queries of JOINS
SQL queries involving JOINS are used to combine rows from two or more tables based on a related column between them.
Use INNER JOIN to return rows when there is at least one match in both tables
Use LEFT JOIN to return all rows from the left table, and the matched rows from the right table
Use RIGHT JOIN to return all rows from the right table, and the matched rows from the left table
Use FULL JOIN to return rows when there is a match in one of the tables
Q23. factorial of number
Factorial of a number is the product of all positive integers less than or equal to that number.
Factorial of 5 is 5! = 5 x 4 x 3 x 2 x 1 = 120
Factorial of 0 is defined as 1, 0! = 1
Factorial of negative numbers is not defined
Q24. subsequence of array
Finding a subsequence of strings in an array
Iterate through the array and check if each string is part of the subsequence
Maintain a pointer for the subsequence and array to compare elements
Return true if all strings in the subsequence are found in the array
Q25. Golden rule of accounting
The golden rule of accounting states that debit what comes in and credit what goes out.
Debit what comes in and credit what goes out
Assets = Liabilities + Equity
Helps maintain the balance in financial transactions
More about working at Hewlett Packard Enterprise
Top HR Questions asked in ITC
Interview Process at ITC
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month