Hewlett Packard Enterprise interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

Hewlett Packard Enterprise
upvote
share-icon
3 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 Months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming, DBMS, SQL, Networking and Operating System
Tip
Tip

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application process
Where: Referral
Eligibility: None
Resume Tip
Resume tip

Tip 1 : Have at least 2 good projects mentioned in your resume with a link
Tip 2 : Focus on skills, internships, projects, and experiences.
Tip 3 : Make it simple, crisp, and one page

Interview rounds

01
Round
Medium
Online Coding Test
Duration60 Minutes
Interview date22 Apr 2021
Coding problem1

This was the online test taken on the mettl platform. There were 40 MCQs based on DSA, OOPs, DBMS, SQL and one coding question.

1. Best Time to Buy and Sell Stock

Moderate
20m average time
80% success
0/80
Asked in companies
IntuitOptumOYO

You are given an array/list 'prices' where the elements of the array represent the prices of the stock as they were yesterday and indices of the array represent minutes. Your task is to find and return the maximum profit you can make by buying and selling the stock. You can buy and sell the stock only once.

Note:

You can’t sell without buying first.
For Example:
For the given array [ 2, 100, 150, 120],
The maximum profit can be achieved by buying the stock at minute 0 when its price is Rs. 2 and selling it at minute 2 when its price is Rs. 150.
So, the output will be 148.
Problem approach

The idea is to range over j from 0 to the length of prices where j is the sell price. Set i with the initial value 0. Anytime we reach a negative profit, notice it would have been better then to wait to buy until that point so we set i=j. We just keep track of the largest profit seen in the process.

import numpy as np
class Solution(object):
def maxProfit(self, prices):
"""
:type prices: List[int]
:rtype: int
"""
currentProfit = 0
maxProfit = 0
i=0
for j in range(len(prices)):
currentProfit = prices[j]-prices[i]
if currentProfit<0:
i=j
elif currentProfit>maxProfit:
maxProfit = currentProfit
return maxProfit

Try solving now
02
Round
Easy
Video Call
Duration60 Minutes
Interview date27 Apr 2021
Coding problem1

This was technical round based on DSA, networking and Operating system related questions.

1. Add One To Number

Easy
10m average time
90% success
0/40
Asked in companies
MicrosoftHewlett Packard EnterpriseAmerican Express

Given a non-negative number represented as an array of digits, you have to add 1 to the number, i.e, increment the given number by one.

The digits are stored such that the most significant digit is at the starting of the array and the least significant digit is at the end of the array.

For Example
If the given array is {1,5,2}, the returned array should be {1,5,3}.
Note
Input array can contain leading zeros, but the output array should not contain any leading zeros (even if the input array contains leading zeroes).
For Example: 
If the given array is {0,2}, the returned array should be {3}.
Problem approach

Solutions: 

class Solution
{
public int[] plusOne(int[] digits)

{
int size= digits.length-1;

for(int i=size; i>-1; i--)
{
if(digits[i]<9)
{
digits[i]++;

return digits;
}
else {

digits[i]=0;
}

}

int result[]=new int[size+2];
result[0]=1;
return result;
}
}

Try solving now
03
Round
Easy
HR Round
Duration45 minutes
Interview date30 Apr 2021
Coding problem1

This was technical + HR round taken by the senior Manager at HP having 10+ years of experience

1. Basic HR Questions

Introduction
Why should we hire you ?
Explain Method Overloading and Method Overriding.
How would you rate yourself?
What three factors do you attribute to your success in life?
What are positive things in you?
Then he asked me to explain one of my projects. I had explained to him that project.
He asked me which one is a team project. I told him about one of my projects which was a team project.

Problem approach

Tip 1 : Make sure your resume is up-to-date
Tip 2 : Be confident and focus on your communication
Tip 3 : Prepare for the behavioural questions

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

Which SQL keyword removes duplicate records from a result set?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 11 problems
Interviewed by Hewlett Packard Enterprise
888 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 11 problems
Interviewed by Hewlett Packard Enterprise
1491 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 10 problems
Interviewed by Hewlett Packard Enterprise
864 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 3 problems
Interviewed by Hewlett Packard Enterprise
0 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
107831 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
52129 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
32260 views
6 comments
0 upvotes