1

There is a definition for NP shown below. Could anyone please explain why "By restricting the definition of NP to witness strings of length zero, we capture the same problems as those in P."?
Definition 2.1 (The Class NP). A language $\mathcal{L}$ is in the class NP if there exists a polynomial ...