6 kyu

Insights for Online Store Product Variants

Description
Loading description...
SQL
Databases
  • Please sign in or sign up to leave a comment.
  • dfhwze Avatar

    In random tests, I get both total_unique_variants and in_stock_variants wrong from time to time, while sample tests are passing.

    • sample tests are maybe not representative of random tests
    • ref solution might be bugged
    • I may have completely misunderstood the spec
  • Voile Avatar

    A unique variant is defined by a unique combination of color_id and size_id

    Sometimes random tests generate products with the same variant but different in_stock, and expect both to be counted inside total_unique_variants.