InterviewDB
Question
·
Los Angeles
Array Reconstruction: Rebuild Original Array from Difference or Prefix-Sum Encoding
phone
Question Details
Problem You are given an encoded array diff of length n-1 where diff[i] = original[i+1] - original[i]. You are also given original[0]. Reconstruct and return the full original array. Example: Round 2 - Follow-up Variant Now you are given the array in shuffled order and the difference array in shuffled order, but you are NOT given original[0]. Determine if a valid reconstruction exists. If yes, return one valid original array. Follow-ups What is the time and space complexity of your reconstructio…
Full Details
🔒
Unlock all Optiver questions
Full insider details, leaked discussions, and candidate experiences.
Get full access — $100 a year, unlimited accessAbout This Question
This is a reported interview question from a optiver interview during the phone round.
It covers the following topics: Arrays, Coding, Phone, Matrix .
More Optiver Interview Questions
1p3a
Optiver Quantitative Finance Internship Online Test: First Round Coding Questions
1p3a
optiver fulltime software engineer technical phone interview experience
1p3a
Optiver Quantitative Research Internship Take-Home Assessment Follow-Up
1p3a
Optiver Final Round Interview Tips for Quant Finance Interns
LeetCode
#622 Design Circular Queue