That solution could be the basis for a more fleshed out answer, but there isn't anything especially worth deleting it. Since the OP has commented that they found it useful to them, it is already an indicator that perhaps it shouldn't be.
Also, it is quite unseemly to work to eliminate competing answers on questions you have answered yourself, and even canvass for more help eliminating them without disclosing. If you can't bear recusing yourself, at least disclose.