Skip to main content
Post Undeleted by Razetime
added 64 characters in body
Source Link
Razetime
  • 27.4k
  • 3
  • 29
  • 72

Jelly, 910 bytes

S;§>Ƈ1S=LS;§>Ƈ1⁼LW$

Try it online!Try it online!

Uses Unrelated string's test suite.

Fixed with some help from Unrelated string.

Explanation

S;§>Ƈ1S=LS;§>Ƈ1⁼LW$
S           sums of columns
 ;          concat with
  §         sums of rows
    Ƈ       keep the sums which are:
   > 1       greater than 1
      S   sum of that
      ⁼LW$ =L = input[length] length?

Jelly, 9 bytes

S;§>Ƈ1S=L

Try it online!

Uses Unrelated string's test suite.

Explanation

S;§>Ƈ1S=L
S         sums of columns
 ;        concat with
  §       sums of rows
    Ƈ     keep the sums which are:
   > 1     greater than 1
      S   sum of that
       =L = input length?

Jelly, 10 bytes

S;§>Ƈ1⁼LW$

Try it online!

Uses Unrelated string's test suite.

Fixed with some help from Unrelated string.

Explanation

S;§>Ƈ1⁼LW$
S           sums of columns
 ;          concat with
  §         sums of rows
    Ƈ       keep the sums which are:
   > 1       greater than 1
      ⁼LW$  = [length] ?
Post Deleted by Razetime
Source Link
Razetime
  • 27.4k
  • 3
  • 29
  • 72

Jelly, 9 bytes

S;§>Ƈ1S=L

Try it online!

Uses Unrelated string's test suite.

Explanation

S;§>Ƈ1S=L
S         sums of columns
 ;        concat with
  §       sums of rows
    Ƈ     keep the sums which are:
   > 1     greater than 1
      S   sum of that
       =L = input length?