PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Coding & Algorithms/Coinbase

Generate constrained NFT metadata

Last updated: Mar 29, 2026

Quick Overview

This question evaluates skills in combinatorial generation, constraint satisfaction, uniqueness enforcement, and reasoning about appropriate data structures, algorithms, and time/space complexity for producing constrained NFT metadata.

  • Medium
  • Coinbase
  • Coding & Algorithms
  • Software Engineer

Generate constrained NFT metadata

Company: Coinbase

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: Medium

Interview Round: Onsite

Given a set of trait types (e.g., background, eyes, hat), each with a list of allowed values, and a target count N, implement a function to generate N NFT metadata items. Support follow-up constraints such as: (a) no repeated value for a trait within a single NFT; (b) uniqueness of the full trait combination across all generated NFTs; and (c) optional inclusion/exclusion rules between traits. Return the generated items and report when generation is impossible. Describe your data structures, algorithm, complexity, and test strategy.

Quick Answer: This question evaluates skills in combinatorial generation, constraint satisfaction, uniqueness enforcement, and reasoning about appropriate data structures, algorithms, and time/space complexity for producing constrained NFT metadata.

Related Interview Questions

  • Implement a Coin-Constrained Jump Strategy - Coinbase (hard)
  • Implement an In-Memory Database - Coinbase (hard)
  • Implement Game Physics and Block Mining - Coinbase (hard)
  • Compute Total Manual Distance - Coinbase (medium)
  • Implement a Flappy Bird Jump Agent - Coinbase
Coinbase logo
Coinbase
Jul 26, 2025, 12:00 AM
Software Engineer
Onsite
Coding & Algorithms
9
0

Given a set of trait types (e.g., background, eyes, hat), each with a list of allowed values, and a target count N, implement a function to generate N NFT metadata items. Support follow-up constraints such as: (a) no repeated value for a trait within a single NFT; (b) uniqueness of the full trait combination across all generated NFTs; and (c) optional inclusion/exclusion rules between traits. Return the generated items and report when generation is impossible. Describe your data structures, algorithm, complexity, and test strategy.

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Coding & Algorithms•More Coinbase•More Software Engineer•Coinbase Software Engineer•Coinbase Coding & Algorithms•Software Engineer Coding & Algorithms
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.