Post History
JavaScript, 48 bytes _=>[..."41506372"].map(x=>1e8/9+10**x|0).join` ` Try it online! The string "41506372" encodes the position of the queen in each row. 1e8/9 gives 11111111.1111......
Answer
#1: Initial revision
# JavaScript, 48 bytes <!-- language-all: lang-javascript --> _=>[..."41506372"].map(x=>1e8/9+10**x|0).join` ` [Try it online!][TIO-l8n6ksz2] [TIO-l8n6ksz2]: https://tio.run/##y0osSyxOLsosKNEts/ifnJ9XnJ@TqpeTn66h8T/e1i5aT09PycTQ1MDM2NxIKVYvN7FAo8LWzjDVQt9S29BAS6uixkBTLys/My@BK@G/poam5n8A "JavaScript (V8) – Try It Online" The string `"41506372"` encodes the position of the queen in each row. `1e8/9` gives 11111111.1111..., and adding 10<sup>x</sup> changes a digit from 1 to 2 at position `x`. The bitwise operation is a short way to cause a conversion to integer, removing the fractional part, and finally, `join` inserts line feeds in between the numbers.