I would like to know which is the spectral radius of this $n\times n$ matrix:
$$
\begin{matrix}
0 & 1 & . & . & . &1 \\
1 & 0 & . & . & . &0 \\
. & . & . & & &. \\
. & . & & . & &. \\
. & . & & & . &. \\
1 & 0 & . & . & . &0 \\
\end{matrix}
$$
I know that the spectral radius is the maximum eigenvalue, but I don't know how to calculate it in this matrix... I also know that if we've got a symmetric amtrix the spectral radius is $||A||_2$ but I neither know how to calculate this...
Your matrix has rank $2$, and in particular it can be written in the form $$ A = xy^T + yx^T, $$ where $x = (1,0,\dots,0)^T$ and $y = (0,1,\dots,1)^T$. Because $A$ has rank $2$, it has $0$ as an eigenvalue with algebraic multiplicity at least $n-2$; let $\lambda_1,\lambda_2$ denote the two possibly non-zero eigenvalues of $A$.
We can find the eigenvalues of $A$ by noting that the trace of a matrix is the sum of its eigenvalues. In particular, it is clear that $\operatorname{tr}(A) = 0$. Thus, we see that $$ \lambda_1 + \lambda_2 + 0 + \cdots + 0 = 0 \implies \lambda_1 = -\lambda_2. $$ On the other hand, we find that $$ A^2 = (xy^T + yx^T)^2 = xy^Txy^T + xy^Tyx^T + yx^Txy^T + yx^Tyx^T $$ Conclude that $$ \lambda_1^2 + \lambda_2^2 = \operatorname{tr}(A^2) \\= \operatorname{tr}[xy^Txy^T] + \operatorname{tr}[xy^Tyx^T] + \operatorname{tr}[yx^Txy^T] + \operatorname{tr}[yx^Tyx^T] \\= \operatorname{tr}[y^Txy^Tx] + \operatorname{tr}[x^Txy^Ty] + \operatorname{tr}[y^Tyx^Tx] + \operatorname{tr}[x^Tyx^Ty] \\= 2(x^Ty)^2 + 2(x^Tx)(y^Ty) = 2(n-1). $$ Conclude that the non-zero eigenvalues of $A$ are $\pm \sqrt{n-1}$, and the spectral radius is $\sqrt{n-1}$.