Pybites Logo Rust Platform

URL Query Parameter Parser

Level: medium (score: 3)

💡 Individual exercises are great, but nothing beats building a real-world app with Rust. Check out our Rust Intro Cohort Program!

Update the parse_query_params function to parse a URL query string (e.g., "name=John&age=30") and return a HashMap<String, String> of key-value pairs.

Example

Given the input string "name=John&age=30", the function should return a HashMap containing:

  • name -> "John"

  • age -> "30"