Product
Pricing
Blog
Forum
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
AI Insights
Quick Summary
Generate evenly spaced points between existing coordinates along straight line segments.
Calculate missing y-values using proportional distances derived from linear interpolation.
Return the complete sequence of points while preserving strictly increasing x-order.
What This Tests
Sequential array traversal and adjacent pair processing
Coordinate geometry and mathematical interpolation
Floating-point arithmetic and integer casting behavior
Dynamic list construction and memory management
Common Patterns
Two Pointers
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Report
Report seen similar question in interview
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
python
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected