Go solution using strings.Builder (0ms)
\nfunc strWithout3a3b(a int, b int) string {\n\tvar sb strings.Builder\n\tsb.Grow(a + b)\n\n\tfor a > 0 || b > 0 {\n\t\tswitch {\n\t\tcase a == 0:\n\t\t\tsb.Wri
```\nfunc strWithout3a3b(a int, b int) string {\n\tvar sb strings.Builder\n\tsb.Grow(a + b)\n\n\tfor a > 0 || b > 0 {\n\t\tswitch {\n\t\tcase a == 0:\n\t\t\tsb.WriteByte(\'b\')\n\t\t\tb--\n\n\t\tcase b == 0:\n\t\t\tsb.WriteByte(\'a\')\n\t\t\ta--\n\n\t\tcase a > b:\n\t\t\tsb.WriteByte(\'a\')\n\t\t\ta--\n\t\t\tsb.WriteByte(\'a\')\n\t\t\ta--\n\t\t\tsb.WriteByte(\'b\')\n\t\t\tb--\n\n\t\tcase b > a:\n\t\t\tsb.WriteByte(\'b\')\n\t\t\tb--\n\t\t\tsb.WriteByte(\'b\')\n\t\t\tb--\n\t\t\tsb.WriteByte(\'a\')\n\t\t\ta--\n\n\t\tdefault:\n\t\t\tsb.WriteByte(\'a\')\n\t\t\ta--\n\t\t\tsb.WriteByte(\'b\')\n\t\t\tb--\n\t\t}\n\t}\n\treturn sb.String()\n}\n```\n
['Go']