We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think your code here doesn't handle edge cases because it doesn't have the logic:
If T[j] + arr[i] < T[i] => do nothing like in your video here at 4:00.
If T[j] + arr[i] < T[i]
// line 26 if(arr[j] < arr[i] ){ // should be arr[j] < arr[i] && T[j] + arr[i] >= T[i] T[i] = Math.max(T[i], T[j] + arr[i]); // should be T[i] = T[j] + arr[i] }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I think your code here doesn't handle edge cases because it doesn't have the logic:
The text was updated successfully, but these errors were encountered: