« first day (3233 days earlier)      last day (51 days later) » 

4:11 AM
0
Q: Circles in a square

user732153There are 2 methods i need to implement the second method that mentioned as triangle packing How I can implement the method by which he calculated the triangle packing in the site below https://www.engineeringtoolbox.com/circles-within-rectangle-d_1905.html Thanks in advance.

 
 
6 hours later…
10:29 AM
CMC: "Round" off a number by changing 1s to 0s, 2s and 4s to 3s, and 5s and 7s to 6s. You can drop any resulting leading 0s.
 
@Neil Number? Integer?
@Neil How about 9s to 8s?
 
@Adám you can take it as a string, it's just a silly character translation exercise
@Adám 9s contain no straight lines in my default handwriting, so they are "round" numbers.
 
10:45 AM
@Neil Sure, but it makes a difference if we are to handle . and/or -
@Neil Oh, I didn't even realise the pattern..
 
heh
 
@Neil QuadR, 15 bytes Try It Online!
@Neil Maybe not short, but interesting: APL (Dyalog Extended), 21 bytes: ⎕D⊇⍨'8'∘=-⍨3×'0258'∘⍸
 
 
4 hours later…
2:31 PM
1
Q: Find the number of n X n (-1, 0, 1) matrices with zero permanent as quickly as possible

matheThe permanent of an n X n matrix A = (ai,j) is defined as For a fixed n, consider the n X n (-1,0,1) matrices with entries which are either -1, 0 or 1. Task For each n from 1 upwards, output the number of n X n (-1, 0, 1) matrices with zero permanent. The output format looks like this n...

 
 
7 hours later…
9:22 PM
@Arnauld The new notice on a bountied question messes up @Adám's formatting though.
 
9:51 PM
@Neil Ah yes. Not looking good...
 

« first day (3233 days earlier)      last day (51 days later) »