# [1678. Goal Parser Interpretation](https://leetcode.com/problems/goal-parser-interpretation/)   char * interpret(char * command){ int n=0; for(int i=0;i<strlen(command);i++) { if(command[i]=='G') { command[n]='G'; } else if(command[i]=='('&&command[i+1]==')') { command[n]='o'; i++; } else if(command[i]=='('&&command[i+1]=='a') { command[n]='a'; command[n+1]='l'; i=i+3; n++; } n++; } command[n]='\0'; return command; }
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up