Thank you. Clear explanation especially around point of which pointer amongst two should be incremented and reason.
@KnowledgeCenter3 жыл бұрын
Glad it was helpful!
@hemantpatel14134 жыл бұрын
Thank You.
@KnowledgeCenter4 жыл бұрын
You're welcome
@meharkaur73264 жыл бұрын
Can you explain how "result.toArray(new int[result.size()][])" converts the list into a 2D Array?
@arudhranarasimhan91504 жыл бұрын
what does a[0] a[1] b[0] b[1] mean here ? is it predefined like 0 is begin and 1 is end in 2d array?
@KnowledgeCenter4 жыл бұрын
Each interval has exactly 2 elements in it. 1st element i.e., at index 0 denotes start of index, 2nd element, i.e., at index 1 denotes end of interval. Yes. it's fixed.
@arudhranarasimhan91504 жыл бұрын
@@KnowledgeCenter thank you so much sir.
@negvorsa4 жыл бұрын
Why copying vector!? We should take just a references auto& a = A[i];