harness logo

Harness Interviews

1 experience3 reads
Harness | 6 yrs experience | Staff Software Engineer
harness logo
Harness
Staff Software Engineer6 yearsOngoing
April 21, 20233 reads

Summary

I recently interviewed at Harness for a Staff Software Engineer position, going through two technical rounds that primarily focused on data structures and algorithms.

Full Experience

I had two interview rounds at Harness for the Staff Software Engineer role. The first round presented a classic tree-based dynamic programming problem, and the second round involved designing a custom data structure to handle various operations on a stream of boolean values efficiently.

Interview Questions (2)

Q1
House Robber in Binary Tree
Data Structures & AlgorithmsMedium

Given a binary tree representing houses, determine the maximum amount of money the robber can rob tonight without robbing adjacent houses. This means if I rob a node, I cannot rob its immediate children.

Q2
Design Data Structure for Boolean Stream Operations
Data Structures & Algorithms

Given an input stream of boolean values, design a data structure that can support the following modules in optimal time:

  • setTrue(index): Sets the boolean value at the given index to true.
  • setFalse(index): Sets the boolean value at the given index to false.
  • setAllTrue(): Sets all boolean values in the stream to true.
  • setAllFalse(): Sets all boolean values in the stream to false.
  • getIndex(index): Returns the boolean value at the given index.

Have a Harness Interview Experience to Share?

Help other candidates by sharing your interview experience. Your insights could make the difference for someone preparing for their dream job at Harness.