This website requires JavaScript.
Explore
Help
Sign In
mirror
/
RosettaCodeData
mirror of
https://github.com/acmeism/RosettaCodeData.git
Watch
1
Star
0
Fork
You've already forked RosettaCodeData
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
main
RosettaCodeData
/
Task
/
N-queens-problem
/
Python
/
n-queens-problem-2.py
3 lines
94 B
Python
Raw
Permalink
Blame
History
def
board
(
vec
)
:
print
(
"
\n
"
.
join
(
'
.
'
*
i
+
'
Q
'
+
'
.
'
*
(
n
-
i
-
1
)
for
i
in
vec
)
+
"
\n
===
\n
"
)
Reference in New Issue
View Git Blame
Copy Permalink