Harness Senior SDE Interview
Summary
I interviewed for a Senior Software Engineer position at Harness in Bangalore. The process included a PS/DS round with a tree-based interval problem and a machine coding round to build an e-commerce-like application. Unfortunately, I was rejected.
Full Experience
Harness(Bengaluru) Interview Education: Tier 1 college Years of experience: 2+ years Current Company : Startup Current TC : 28 LPA Location: Bangalore Company : Harness Position : Senior Software Engineer Date : Jan '25
Round 1: PS/DS. Time: 60 mins
Q1: Given a tree with nodes as either "AND", "OR" or "LEAF". For Leaf nodes, there are intervals given like [4,5] or [6,7]. You have to give the final calculation of the tree nodes.
Example:
"AND"
/ \
[2,3] "OR"
/ \
[3,7] [11, 21]
The final answer is {3}
Gave a brute force solution by calculating for child nodes first, and then merging intervals. Did not perform as expected.
Round 2: Machine coding. Time: 90 mins
Give end to end functioning code of Spotify type app. Have it create store with products with quantity. Place orders.
Implemented this, but there were some syntax errors due to code did not run.
Verdict: Rejected
Interview Questions (2)
Evaluate Tree with AND/OR/LEAF Nodes and Interval Values
Given a tree with nodes as either "AND", "OR" or "LEAF". For Leaf nodes, there are intervals given like [4,5] or [6,7]. You have to give the final calculation of the tree nodes.
Example:
"AND"
/ \
[2,3] "OR"
/ \
[3,7] [11, 21]
The final answer is {3}
Design and Implement an E-commerce Application
Give end to end functioning code of a Spotify type app. Have it create store with products with quantity. Place orders.