ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
Question states that we can swap only adjacent elements. However we are seen swapping the numbers in a particular range.
We are swapping in particular range and we are adding the difference of that range to our solution.
can you explain how did you think of this approach
Thank you :)
Great solution brother😄
2 pointer
Question states that we can swap only adjacent elements. However we are seen swapping the numbers in a particular range.
We are swapping in particular range and we are adding the difference of that range to our solution.
can you explain how did you think of this approach
Thank you :)
Great solution brother😄
Thank you :)
2 pointer