GFG POTD: 25/09/2023 | Maximum Sum Combination | Problem of the Day GeeksforGeeks

  Рет қаралды 6,673

GeeksforGeeks Practice

GeeksforGeeks Practice

Күн бұрын

Пікірлер: 12
@prateekbhaisora
@prateekbhaisora Жыл бұрын
19:50 Heap is not a Binary Search Tree
@DevashishKhare
@DevashishKhare Жыл бұрын
Thanks for mentioning, wanted to say it happens in log(n) as in BST.
@ris_colid325
@ris_colid325 Жыл бұрын
I would like to mention ,that while explaining you said that we are only taking the diagonally adjacent elements like in this example you said that only 4+6 , 4+5 and 6+3 are made and not 6+2 or further distant elements. This is probably a mistake since if we took more elements in the answer while explaining we find that farther elements give a greater sum . 6+2 > 3+2 or 5+2 ,even though 6+ 2 are not diagonally adjacent and (5,2) (3,2) are diagonally adjacent. If you see carefully ,even the code you mentioned is not only putting diagonally adjacent elements but is taking combinations that are not diagonally adjacent as well since one of the array indexes is incremented while insertion without the limitation of it being diagonally adjacent to index of other array.. It is more correct to say that we pick diagonally less distant elements ,starting from the pair of maximum elements ,instead of diagonally adjacent.
@ShubhamKumar-ho9pz
@ShubhamKumar-ho9pz Жыл бұрын
you should change your occupation
@akworld2739
@akworld2739 8 ай бұрын
🤣🤣
@siddharthkhandelwal933
@siddharthkhandelwal933 5 ай бұрын
True
@alisheheryar1770
@alisheheryar1770 27 күн бұрын
@GeeksforGeeksPractice
@GeeksforGeeksPractice Жыл бұрын
Solution Function Link: ide.geeksforgeeks.org/online-python3-compiler/0f43cb17-1fbf-4287-bbe5-9b620d44482b
@vikashpatel4311
@vikashpatel4311 5 ай бұрын
worst tutor ever...........😒
@amanmittal-x6k
@amanmittal-x6k Ай бұрын
bhai padhana band karde. tere se bekar tutor ho hi nhi sakta. kisne diya tere ko GFG me job.
@alisheheryar1770
@alisheheryar1770 27 күн бұрын
Spend more time on dry run. We ain't here for OOP lessons.
Maximum Product Subarray - Best Intuitive Approach Discussed
20:27
take U forward
Рет қаралды 254 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
N Max Pair Combinations || Heap || InterviewBit
23:31
Himanshu Tripathi
Рет қаралды 11 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,6 МЛН
What P vs NP is actually about
17:58
Polylog
Рет қаралды 145 М.
Kadane's Algorithm | Maximum Subarray Sum | Finding and Printing
20:09
take U forward
Рет қаралды 535 М.
Mastering Dynamic Programming - How to solve any interview problem (Part 1)
19:41
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 93 М.
The hardest problem on the hardest test
11:15
3Blue1Brown
Рет қаралды 15 МЛН
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 847 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН