Harness | 6 yrs experience | Staff Software Engineer

harness logo
harness
Staff Software Engineer6 yearsOngoing
April 21, 20232 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.

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!