about | help | code help+videos | done | prefs |
Write a method that accepts a string in the form "a+bi" or "a-bi" where a and b are integers. This string represents a complex number. Return an array with the first number representing the real part and the second number representing the imaginary part. parseComplex("58+1i") → [58, 1] parseComplex("-4872-32i") → [-4872, -32] parseComplex("0+0i") → [0, 0] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 340
Copyright Nick Parlante 2017 - privacy