MetaClass
Practice
3.3 (3 votes)
Easy
Problem
38% Success 447 Attempts 20 Points 5s Time Limit 256MB Memory 1024 KB Max Code

Complete the meta class so that the class takes the attribute names and default values (where provided) from the input. Add the meta class to Class1 and Class2 so that they have the correct attributes.

The input will consist of 2 strings, each containing space separated attribute names. An optional "=" value may be used to indicate a default value for the attribute.

E.g. "name age date_of_birth" "name=Dave age=20 date_of_birth address"

The attribute names will never contain spaces and there will never be spaces separating the attribute from the "=" or the default value.

Please login to use the editor

You need to be logged in to access the code editor

Loading...

Please wait while we load the editor

Loading...
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:20
42 votes
Tags:
AlgorithmsApprovedDynamic ProgrammingEasyOpen
Points:50
Tags:
RecursionHardMemoizationRecruitAlgorithmsGrammar-VerifiedApprovedDynamic programming
Points:30
876 votes
Tags:
Ternary searchMedium
Editorial

No editorial available for this problem.