Please solve the programming task below using a self-contained code snippet in a markdown code block.

Given a string s, partition s such that every substring of the partition is a palindrome.
Return the minimum cuts needed for a palindrome partitioning of s.
 
Please complete the following python code precisely:
```python
class Solution:
    def minCut(self, s: str) -> int:
```