Search
⌘K

String Resolution and Variable Update

Implement string resolution and variable update functions. Given variable values (e.g. x = 'new', y = '%xworld', z = 'hello'), implement resolveString(string input) to resolve input strings with variable references, and updateVariable(char var, string value) to update variable values.

Asked at:

Google

Google


Question Timeline

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

Late August, 2024

Google

Google

Mid-level

Implement string resolution and variable update functions. Given variable values (e.g. x = 'new', y = '%xworld', z = 'hello'), implement resolveString(string input) to resolve input strings with variable references, and updateVariable(char var, string value) to update variable values.

Comments

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