1749. Maximum Absolute Sum of Any Subarray (Leetcode Medium)

preview_player
Показать описание
Larry solves and analyzes this Leetcode problem as both an interviewer and an interviewee. This is a live recording of a real engineer solving a problem live - no cuts or edits!

#leetcode #coding #programming
Рекомендации по теме
Комментарии
Автор

Were you absolutely sure about this problem?

Algorithmist
Автор

I have some doubts with respect to this question and here these are

1.) In the question it is said that, If  x is a negative integer, then abs(x) = -x, I think abs converts negative into positive numbers.
2.) Can we break down absolute into max(kadence(nums), kadence(-x for x in nums))

Please clarify these if possible.

s