Splice Two Sorted Linked Lists
Asked at Snowflake · Coding Questions · Difficulty: Easy
You are given two singly linked lists whose values are already in non-decreasing order. Join them into one list that is also in non-decreasing order, by relinking the nodes you were given rather than creating new ones, and return the head of the joined list.
Loading the problem…
More Snowflake interview questions
- Design a Distributed Job Scheduler with Cron, Pause, Resume
- Design an ACL Authorization Service
- Design an S3-Style Blob Store with Deduplication
- SQL: Project Duration & Budget per Employee
- Cross-Platform Client Logging Library
- Design a Quota System