Let $n$ be an odd number. Let $A$ be an $n \times n$ matrix with diagonal entries equal to $0$ and off-diagonal entries in $ \{1,-1\}$. Each row of $A$ has the same number of $1$s and $-1$s. Show that $$\text{rank} (A)=n-1$$
Clearly, adding all rows to the last row, gives $0$ row, so $\text{rank} (A)\leq n-1 $. However, how to show the $\text{rank} (A)\geq n-1$?
I remember a very nice formulation of this problem. You have an odd number of rocks such that if you take any rock out, you can separate the rest in two bags of the same number of rocks that have the same weight. Prove that all rocks have the same weight.
Indeed, the vector of weights of rocks $w$ is such that $Aw=0$ for a matrix $A$ verifying the conditions in your question. We need to prove that $\text{rank}(A) = n-1$ to guarantee that $w$ is proportional to the vector $(1, \dots, 1)$.
Here is the proof.
Since there are the same number of $-1$ and $1$ on each row, the vector $v_n = (1,\dots, 1)$ verifies $Av = 0$, so $\text{rank}(A) \leq n-1$. Now let $A'$ be the submatrix consisting of the first $n-1$ lines and $n-1$ columns. The determinant of $A'$ is equal modulo 2 to the determinant of the matrix $B = J_{n-1} - I_{n-1}$ with $J_{n-1}$ the matrix with ones everywhere. The eigenvalues of $B$ are $n-2$ for the vector $v_{n-1} = (1,\dots, 1)$ and $-1$ for all vectors that are orthogonal to $v_{n-1}$, so $\text{det}(B) = (n-2)(-1)^{n-2}$, which is odd. Thus $\text{det}(A')$ is also odd, so it is not null. We can conclude that $\text{rank}(A) = \text{rank}(A') = n-1$.