Please fill the feedback form: forms.gle/UetQqvq4TiZVZtbx7
@kavinshah43026 ай бұрын
Very Well Explaination Viraj Sir !!
@prabhjeetsingh63056 ай бұрын
for 2nd question, I was not able to come up with this logic during the contest, now that I see this, it seems easy, but, would request you to suggest any other ideas too, though I understand that this is the easiest possible logic
@amanasrani64056 ай бұрын
Here is my approach for the 2nd question class Solution { public: int findMax(const vector& indexArray) { if (indexArray.empty()) return -1; return *max_element(indexArray.begin(), indexArray.end()); } int findMin(const vector& indexArray) { if (indexArray.empty()) return -1; return *min_element(indexArray.begin(), indexArray.end()); } int minimumArea(vector& grid) { int rows = grid.size(); int cols = grid[0].size(); vector oneRowIndex; vector oneColIndex; for(int i = 0; i < rows; i++) { for(int j = 0; j < cols; j++) { if(grid[i][j] == 1) { oneRowIndex.push_back(i); oneColIndex.push_back(j); } } } if(oneColIndex.empty()) return 0; int minRow = findMin(oneRowIndex); int maxRow = findMax(oneRowIndex); int minCol = findMin(oneColIndex); int maxCol = findMax(oneColIndex); int height = maxRow - minRow + 1; int width = maxCol - minCol + 1; return height * width; } };
@fuel-the-fire-now6 ай бұрын
brother!!, beautiful explanation for 4th one
@yashmalviya01496 ай бұрын
[2, -3, -7] taking subarrays [2, -3, -7] or [2, -3] and [-7] gives -2 as total cost but taking subarrays [2] and [-3, -7] gives you 6 as total cost...
@prakashdeshmukh2226 ай бұрын
Good explanation with how he thinks about the problem in the contest
@rishabhjain5636 ай бұрын
amazing explanation of the d question!
@krishmakhija83336 ай бұрын
Great explanation of 4th ,understood competely
@Abhay146 ай бұрын
great explaination bhaiya 😊
@vickyroy35956 ай бұрын
Virajj !! Great explanation!!❤
@SumitKumar-du6vf6 ай бұрын
For Q3 how to tackle during the contest as their problem statements are such bullshit... though Excellent explanation brother🔥
@-VLaharika6 ай бұрын
The solution for third is giving TLE in java
@roshangeorge976 ай бұрын
best mentor❤
@omikakadiya6 ай бұрын
very nice solution of 3rd and 4th bro
@ammanchhetri67166 ай бұрын
im going to see ur code.....just to copy those boxes you draw for future reference 😏
@VirajChandra6 ай бұрын
Hahaha lol
@ashutoshpatel20506 ай бұрын
I was able to come up with the exact same approach for the 4th question but missed it just by some mins due to wrong coordinates , However Will memoizing the answer for a particular set of rectangles optimize the soln any further or there would be no overlapping rectangles?
@VirajChandra6 ай бұрын
I did not think about this since this seemed within the TC boundaries.
@rizwanaman-q3n6 ай бұрын
No audio..😢
@TLE_Eliminators6 ай бұрын
The audio issue at some specific timestamp or in the entire video?