C++
class Solution {
public:
int videoStitching(vector<vector<int>>& clips, int T) {
int n = clips.size();
vector <long long> dp(T + 1, INT_MAX);
dp[0] = 0;
class Solution {
public:
int videoStitching(vector<vector<int>>& clips, int T) {
int n = clips.size();
vector <long long> dp(T + 1, INT_MAX);
dp[0] = 0;