Limited Time Offer:Up to 20% off Hello Interview Premium
Up to 20% off Hello Interview Premium 🎉
Hello Interview
Your Dashboard
System Design
Code
Low Level Design
Behavioral
AI Coding
New
ML System Design
Salary Negotiation
Interview Guides
Blog
System Design
Low Level Design
AI Coding
Behavioral
New
Interview Questions
Success Stories
System Design
Low-Level Design
New
Ask The Community
Discord
Mock Interviews
1:1 Mentorship
Refer a Friend
Pricing
Sign in / Sign up
Search
⌘K
Pricing

Tutor

URL Query String Parser

Parse a URL query string into a key-value map, where values can be a boolean (for keys with no value), a string, or a list of strings (for repeated keys). Return a list of key-object pairs representing the parsed query parameters.

Asked at:

Airbnb


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Company
​
Level
All Regions
Region

Late April, 2026

Airbnb

Senior

Parse URL query string into key-value map. Rules: ?a=b&c=d → {""a"": ""b"", ""c"": ""d""} ?sd → {""sd"": "True"} (key only, no value) ?a=b&a=c&a=d → {""a"": [""b"", ""c"", ""d""]} (repeated keys) Output needs to be returned. Can assume input will be valid. Return list of key and values. Value can either be string or list of string. It's possible that value can be boolean as well as string. For this, we can return list of key and object.

Early March, 2026

Airbnb

Mid-level

Given a string representing a URL, extract and parse its query parameters into a key-value data structure (like a Hash Map or Dictionary). Example: Input: https://api.example.com/users?id=123&role=admin Expected Output: id = 123 role = admin

Your account is free and you can post anonymously if you choose.

Hello Interview Premium

Recent interview questions
System Design Guided Practice
Exclusive content
Learn More
Questions
Meta SWE Interview QuestionsAmazon SWE Interview QuestionsGoogle SWE Interview QuestionsOpenAI SWE Interview QuestionsEngineering Manager (EM) Interview Questions
Learn
Learn System DesignLearn DSALearn BehavioralLearn ML System DesignLearn Low Level DesignGuided Practice
Links
FAQPricingGift PremiumHello Interview Premium
Legal
Terms and ConditionsPrivacy PolicySecurity
Contact
About UsProduct Support

7511 Greenwood Ave North Unit #4238 Seattle WA 98103


© 2026 Optick Labs Inc. All rights reserved.