c++
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\npublic:\n    int minimumScore(string s, string t) {\n        int suffix[s.size()+1];\n        suffix[s.size()]=t.size();\n        for(int i = s.size()-1, j = t.size()-1;i>=0;i--){\n            if(j>=0&&s[i]==t[j]){\n                j--;\n            }\n            suffix[i]=j+1;\n        }\n        if(suffix[0]==0)\n            return 0;\n        int ans = suffix[0];\n        for(int i=0, j=0;i<s.size();i++){\n            if(s[i]==t[j]){\n                j++;\n            }\n            ans = min(ans, suffix[i+1]-j);\n        }\n        return ans;\n    }\n};\n```
['C++']