HackerRank Coding Interview 8. Maximum Or-Sum

Amber Ivanna Trujillo
5 min readJan 8, 2023

Time to complete — 30 minutes

Question Type = Medium

Asked in = Netflix, Amazon, Uber, Lyft, Bloomberg, Morgan Stanley, Apple, and Google, Synchrony.

Skills: arrays, bit manipulation, prefix array

Insights — It should be read very carefully read and you must ask questions in between.

Question —

For an array of n integers, arr[n], perform the following operation up to some integer k times.

--

--

Amber Ivanna Trujillo

I am Executive Data Science Manager. Interested in Deep Learning, LLM, Startup, AI-Influencer, Technical stuff, Interviews and much more!!!