![CodeGenius](/img/default-banner.jpg)
- 108
- 46 886
CodeGenius
Registrace 2. 02. 2024
Daily DSA videos for coders of all levels! Master algorithms, data structures, and problem-solving strategies with our engaging tutorials. Prepare for interviews, competitions, or simply enhance your skills. Hit subscribe and join our community today! Happy coding! đ
Email:
sawhneyishan7@gmail.com
Email:
sawhneyishan7@gmail.com
Vertical Width of a Binary Tree | gfg potd | 05-07-24 | GFG Problem of the day
Geeks for Geeks Problem of the Day(POTD) in C++ | Vertical Width of a Binary Tree | Fully Explainedđ§
Solution Code :
github.com/IshanSawhney/GfG_POTD/blob/main/Vertical%20Width%20of%20a%20Binary%20Tree
IMPORTANCE OF DSA FOR PLACEMENT:
czcams.com/video/legIvCp3J20/video.htmlsi=2hyVfn2pKeIW8dAp
BEST FREE WEB DEVELOPMENT COURSE:
czcams.com/video/QXdONhiZijA/video.htmlsi=wV9MvUHG_FMt56Fn
đ Connect with Me:
GitHub: github.com/IshanSawhney
Linkedin: www.linkedin.com/in/ishansawhney/
#GFG #POTD #geeksforgeeks #problemoftheday #c++
Solution Code :
github.com/IshanSawhney/GfG_POTD/blob/main/Vertical%20Width%20of%20a%20Binary%20Tree
IMPORTANCE OF DSA FOR PLACEMENT:
czcams.com/video/legIvCp3J20/video.htmlsi=2hyVfn2pKeIW8dAp
BEST FREE WEB DEVELOPMENT COURSE:
czcams.com/video/QXdONhiZijA/video.htmlsi=wV9MvUHG_FMt56Fn
đ Connect with Me:
GitHub: github.com/IshanSawhney
Linkedin: www.linkedin.com/in/ishansawhney/
#GFG #POTD #geeksforgeeks #problemoftheday #c++
zhlĂ©dnutĂ: 665
Video
Duplicate Subtrees | gfg potd | 04-07-24 | GFG Problem of the day
zhlĂ©dnutĂ 992PĆed 2 hodinami
Geeks for Geeks Problem of the Day(POTD) in C | Duplicate Subtrees | Fully Explainedđ§ Solution Code : github.com/IshanSawhney/GfG_POTD/blob/main/Duplicate Subtrees IMPORTANCE OF DSA FOR PLACEMENT: czcams.com/video/legIvCp3J20/video.htmlsi=2hyVfn2pKeIW8dAp BEST FREE WEB DEVELOPMENT COURSE: czcams.com/video/QXdONhiZijA/video.htmlsi=wV9MvUHG_FMt56Fn đ Connect with Me: GitHub: github.com/IshanSawhn...
Remove all occurences of Duplicates in a Linked List | gfg potd |02-07-24 | GFG Problem of the day
zhlĂ©dnutĂ 714PĆed 4 hodinami
Geeks for Geeks Problem of the Day(POTD) in C |Remove all occurences of Duplicates in a Linked list | Fully Explainedđ§ Solution Code : github.com/IshanSawhney/GfG_POTD/blob/main/Remove all occurences of duplicates in a linked list IMPORTANCE OF DSA FOR PLACEMENT: czcams.com/video/legIvCp3J20/video.htmlsi=2hyVfn2pKeIW8dAp BEST FREE WEB DEVELOPMENT COURSE: czcams.com/video/QXdONhiZijA/video.htmls...
Linked list of strings forms a palindrome |gfg potd today |02-07-24 | GFG Problem of the day
zhlĂ©dnutĂ 489PĆed 7 hodinami
Geeks for Geeks Problem of the Day(POTD) in C |Linked list of strings forms a palindrome | Fully Explainedđ§ Solution Code : github.com/IshanSawhney/GfG_POTD/blob/main/linked list of strings forms a palindrome IMPORTANCE OF DSA FOR PLACEMENT: czcams.com/video/legIvCp3J20/video.htmlsi=2hyVfn2pKeIW8dAp BEST FREE WEB DEVELOPMENT COURSE: czcams.com/video/QXdONhiZijA/video.htmlsi=wV9MvUHG_FMt56Fn đ C...
Make Binary Tree from Linked List đČ| 01-07-24 | GFG Problem of the day
zhlĂ©dnutĂ 984PĆed 9 hodinami
Geeks for Geeks Problem of the Day(POTD) in C | Make Binary Tree from Linked list | Fully Explainedđ§ Solution Code : github.com/IshanSawhney/GfG_POTD/blob/main/Make Binary Tree From Linked List IMPORTANCE OF DSA FOR PLACEMENT: czcams.com/video/legIvCp3J20/video.htmlsi=2hyVfn2pKeIW8dAp BEST FREE WEB DEVELOPMENT COURSE: czcams.com/video/QXdONhiZijA/video.htmlsi=wV9MvUHG_FMt56Fn đ Connect with Me:...
Delete node in a Doubly Linked List | 30-06-24 | GFG Problem of the day
zhlĂ©dnutĂ 482PĆed 12 hodinami
Geeks for Geeks Problem of the Day(POTD) in C | Delete node in a Doubly Linked List | Fully Explainedđ§ Solution Code : github.com/IshanSawhney/GfG_POTD/blob/main/Delete node in Doubly Linked List IMPORTANCE OF DSA FOR PLACEMENT: czcams.com/video/legIvCp3J20/video.htmlsi=2hyVfn2pKeIW8dAp BEST FREE WEB DEVELOPMENT COURSE: czcams.com/video/QXdONhiZijA/video.htmlsi=wV9MvUHG_FMt56Fn đ Connect with M...
Identical Linked Lists | 29-06-24 | GFG Problem of the day
zhlĂ©dnutĂ 515PĆed 14 hodinami
Geeks for Geeks Problem of the Day(POTD) in C | Identical Linked Lists | Fully Explainedđ§ Solution Code : github.com/IshanSawhney/GfG_POTD/blob/main/Identical Linked Lists IMPORTANCE OF DSA FOR PLACEMENT: czcams.com/video/legIvCp3J20/video.htmlsi=2hyVfn2pKeIW8dAp BEST FREE WEB DEVELOPMENT COURSE: czcams.com/video/QXdONhiZijA/video.htmlsi=wV9MvUHG_FMt56Fn đ Connect with Me: GitHub: github.com/Is...
The palindrome pattern | 28-06-24 | GFG Problem of the day
zhlĂ©dnutĂ 1,2KPĆed 16 hodinami
Geeks for Geeks Problem of the Day(POTD) in C | The Palindrome pattern | Fully Explainedđ§ Solution Code : github.com/IshanSawhney/GfG_POTD/blob/main/The Palindrome Pattern IMPORTANCE OF DSA FOR PLACEMENT: czcams.com/video/legIvCp3J20/video.htmlsi=2hyVfn2pKeIW8dAp BEST FREE WEB DEVELOPMENT COURSE: czcams.com/video/QXdONhiZijA/video.htmlsi=wV9MvUHG_FMt56Fn đ Connect with Me: GitHub: github.com/Is...
Toeplitz Matrix | gfg potd | 27-06-24 | GFG Problem of the day
zhlĂ©dnutĂ 979PĆed 19 hodinami
Geeks for Geeks Problem of the Day(POTD) in C | Toeplitz Matrix | Fully Explainedđ§ Solution Code : github.com/IshanSawhney/GfG_POTD/blob/main/Toeplitz matrix IMPORTANCE OF DSA FOR PLACEMENT: czcams.com/video/legIvCp3J20/video.htmlsi=2hyVfn2pKeIW8dAp BEST FREE WEB DEVELOPMENT COURSE: czcams.com/video/QXdONhiZijA/video.htmlsi=wV9MvUHG_FMt56Fn đ Connect with Me: GitHub: github.com/IshanSawhney Lin...
Coverage of all Zeros in a Binary Matrix | gfg potd | 26-06-24 | GFG Problem of the day
zhlĂ©dnutĂ 601PĆed 21 hodinou
Geeks for Geeks Problem of the Day(POTD) in C | Coverage of all Zeros in a Binary Matrix | Fully Explainedđ§ Solution Code : github.com/IshanSawhney/GfG_POTD/blob/main/Coverage of all Zeros in a Binary Matrix IMPORTANCE OF DSA FOR PLACEMENT: czcams.com/video/legIvCp3J20/video.htmlsi=2hyVfn2pKeIW8dAp BEST FREE WEB DEVELOPMENT COURSE: czcams.com/video/QXdONhiZijA/video.htmlsi=wV9MvUHG_FMt56Fn đ Co...
Left rotate matrix K times | gfg potd | 25-06-24 | GFG Problem of the day
zhlĂ©dnutĂ 563PĆed dnem
Geeks for Geeks Problem of the Day(POTD) in C | Left rotate matrix K times | Fully Explainedđ§ Solution Code : github.com/IshanSawhney/GfG_POTD/blob/main/Left Rotate Matrix K times IMPORTANCE OF DSA FOR PLACEMENT: czcams.com/video/legIvCp3J20/video.htmlsi=2hyVfn2pKeIW8dAp BEST FREE WEB DEVELOPMENT COURSE: czcams.com/video/QXdONhiZijA/video.htmlsi=wV9MvUHG_FMt56Fn đ Connect with Me: GitHub: githu...
Summed Matrix | gfg potd | 24-06-24 | GFG Problem of the day
zhlĂ©dnutĂ 646PĆed dnem
Geeks for Geeks Problem of the Day(POTD) in C | Summed Matrix | Fully Explainedđ§ Solution Code : github.com/IshanSawhney/GfG_POTD/blob/main/Summed Matrix IMPORTANCE OF DSA FOR PLACEMENT: czcams.com/video/legIvCp3J20/video.htmlsi=2hyVfn2pKeIW8dAp BEST FREE WEB DEVELOPMENT COURSE: czcams.com/video/QXdONhiZijA/video.htmlsi=wV9MvUHG_FMt56Fn đ Connect with Me: GitHub: github.com/IshanSawhney Linkedi...
Print Bracket Number | gfg potd | 23-06-24 | GFG Problem of the day
zhlĂ©dnutĂ 319PĆed dnem
Geeks for Geeks Problem of the Day(POTD) in C | Print Bracket Number | Fully Explainedđ§ Solution Code : github.com/IshanSawhney/GfG_POTD/blob/main/Print Bracket Number IMPORTANCE OF DSA FOR PLACEMENT: czcams.com/video/legIvCp3J20/video.htmlsi=2hyVfn2pKeIW8dAp BEST FREE WEB DEVELOPMENT COURSE: czcams.com/video/QXdONhiZijA/video.htmlsi=wV9MvUHG_FMt56Fn đ Connect with Me: GitHub: github.com/IshanS...
Extract the number from the string | gfg potd | 22-06-24 | GFG Problem of the day
zhlĂ©dnutĂ 435PĆed dnem
Geeks for Geeks Problem of the Day(POTD) in C | Extract the Number from the string | Fully Explainedđ§ Solution Code : github.com/IshanSawhney/GfG_POTD/blob/main/Extract the Number from the String IMPORTANCE OF DSA FOR PLACEMENT: czcams.com/video/legIvCp3J20/video.htmlsi=2hyVfn2pKeIW8dAp BEST FREE WEB DEVELOPMENT COURSE: czcams.com/video/QXdONhiZijA/video.htmlsi=wV9MvUHG_FMt56Fn đ Connect with M...
Compare Two Fractions | gfg potd | 21-06-24 | GFG Problem of the day
zhlĂ©dnutĂ 500PĆed 14 dny
Geeks for Geeks Problem of the Day(POTD) in C | Compare Two Fractions | Fully Explainedđ§ Solution Code : github.com/IshanSawhney/GfG_POTD/blob/main/Compare two fractions IMPORTANCE OF DSA FOR PLACEMENT: czcams.com/video/legIvCp3J20/video.htmlsi=2hyVfn2pKeIW8dAp BEST FREE WEB DEVELOPMENT COURSE: czcams.com/video/QXdONhiZijA/video.htmlsi=wV9MvUHG_FMt56Fn đ Connect with Me: GitHub: github.com/Isha...
Integral Points inside Triangle | gfg potd | 20-06-24 | GFG Problem of the day
zhlĂ©dnutĂ 1,7KPĆed 14 dny
Integral Points inside Triangle | gfg potd | 20-06-24 | GFG Problem of the day
Number of Rectangles in a Circle | gfg potd | 18-06-24 | GFG Problem of the day
zhlĂ©dnutĂ 1KPĆed 14 dny
Number of Rectangles in a Circle | gfg potd | 18-06-24 | GFG Problem of the day
Check if two Line segments intersect | gfg potd | 17-06-2024 | GFG Problem of the day
zhlĂ©dnutĂ 1,2KPĆed 14 dny
Check if two Line segments intersect | gfg potd | 17-06-2024 | GFG Problem of the day
Prime pair with target sum | gfg potd | 16-06-2024 | GFG Problem of the day
zhlĂ©dnutĂ 363PĆed 14 dny
Prime pair with target sum | gfg potd | 16-06-2024 | GFG Problem of the day
Armstrong Number | gfg potd | 14-06-2024 | GFG Problem of the day
zhlĂ©dnutĂ 372PĆed 21 dnem
Armstrong Number | gfg potd | 14-06-2024 | GFG Problem of the day
Padovan sequence | gfg potd | 13-06-2024 | GFG Problem of the day
zhlĂ©dnutĂ 227PĆed 21 dnem
Padovan sequence | gfg potd | 13-06-2024 | GFG Problem of the day
Count numbers containing 4 | gfg potd | 12-06-2024 | GFG Problem of the day
zhlĂ©dnutĂ 169PĆed 21 dnem
Count numbers containing 4 | gfg potd | 12-06-2024 | GFG Problem of the day
Nuts and bolts problem | gfg potd | 10-06-2024 | GFG Problem of the day
zhlĂ©dnutĂ 202PĆed 21 dnem
Nuts and bolts problem | gfg potd | 10-06-2024 | GFG Problem of the day
Convert array into Zig-Zag fashion | gfg potd | 09-06-2024 | GFG Problem of the day
zhlĂ©dnutĂ 150PĆed 21 dnem
Convert array into Zig-Zag fashion | gfg potd | 09-06-2024 | GFG Problem of the day
Index of an extra element | gfg potd | 08-06-2024 | GFG Problem of the day
zhlĂ©dnutĂ 290PĆed 21 dnem
Index of an extra element | gfg potd | 08-06-2024 | GFG Problem of the day
Maximum occurred integer | gfg potd | 07-06-2024 | GFG Problem of the day
zhlĂ©dnutĂ 292PĆed 28 dny
Maximum occurred integer | gfg potd | 07-06-2024 | GFG Problem of the day
Max sum in the configuration | gfg potd | 06-06-2024 | GFG Problem of the day
zhlĂ©dnutĂ 504PĆed 28 dny
Max sum in the configuration | gfg potd | 06-06-2024 | GFG Problem of the day
Swapping pairs make sum equal | gfg potd | 05-06-2024 | GFG Problem of the day
zhlĂ©dnutĂ 193PĆed mÄsĂcem
Swapping pairs make sum equal | gfg potd | 05-06-2024 | GFG Problem of the day
Binary representation of next number | gfg potd | 04-06-2024 | GFG Problem of the day
zhlĂ©dnutĂ 72PĆed mÄsĂcem
Binary representation of next number | gfg potd | 04-06-2024 | GFG Problem of the day
Construct list using given q XOR queries | gfg potd | 02-06-2024 | GFG Problem of the day
zhlĂ©dnutĂ 149PĆed mÄsĂcem
Construct list using given q XOR queries | gfg potd | 02-06-2024 | GFG Problem of the day
Bros explaination đđđđ
Super explanation sir đ
bhai keep it going đ subscribed your channel
Thanks a lot for this bhai đđ»đ„°
Someone recommended me this channel for GFG POTD and it is worth it đŻđ„đ„
Thanks a lot đ
Thank You sir
đ„°
Best Explanation Bhaiya đđđđđđđđ
Thanks đđ»
Thank You So Much Bhaiya, Yaar Itna Easy Question Than đ„łđ„łđ„łđ„łđ„łđ„ł
Yaađ„°
Nice Explanation đđđ
Nice Explanation đđđ
Thanks đđ»
Friendly and good explanation
đđ»đ„°
explained so well sir đđ You should definitely make videos for LEETCODE POTD
Thanks đđ»
achha pdate ho bhai, java me code diya kro if possible . good going thanks
Bhai I gave cpp code in description you can convert into Java by chatgpt đ
Keep going sir..
Thanks đ„°
You must Subscribe Now!!
Bhai bahut hard tha ye question tumne ekdum easy kridya đ
Thanks đ
22
nice explanation
Thanks đ
Don't go without subscribing
krdiya bhaiđ
Thank you bhaiya â€
Thanks đđ»
Face reveal bhai
Ya bhai đ
best explained .......your intuition is best bhaiya
Thanks đ„°
Not executing..
It's running check the description i even provided the code
Bro keep going .
Yea thanks đ„°
Youâre working so hard, may all your wishes come true.
Thanks a lot brother đ„č
like and subscribe
Subscribe or
Good morning sir
Good morning đ„°
đ„°đ„°
đ„°đ„°
Behtriiiiinnn explanation đđ
Thanks đ
What a understanding đź
Thanks đ
Thanks!
đ„°đđ»
your solution is of O(n^3) right? expected time complexity is O(n^2).
It's O(n^2) only....did you see any 3 nested for loops
â@@CodeGenius316you used 2 loops inside there is palindrome function which is again takes O(n). And one more thing is Auxiliary space expected was O(1) but you used a vector of size n.
Brother 2 loops have O(n^2) time complexity which is fine. And about space complexity i agree it's O(n) that I didn't notice.
â@@CodeGenius316 can you please give some hint how can we reduce the space complexity to O(1)?
@@codewithpearlA class Solution { public: string pattern(vector<vector<int>> &arr) { // Code Here string ans; int len=arr.size(); for(int i=0; i<len; i++){ int flag=0; for(int j=0; j<len/2; j++){ if(arr[i][j] != arr[i][len-1-j]){ flag=1; break; } } if(flag==0) return to_string(i)+" R"; } for(int i=0; i<len; i++){ int flag=0; for(int j=0; j<len/2; j++){ if(arr[j][i] != arr[len-1-j][i]){ flag=1; break; } } if(flag==0) return to_string(i)+" C"; } return "-1"; } };
Subscribe!!
Thank you sir
đ„°đ„°
bhaiya vo column nikalna samajh nhi aya
Bro two loops laga diye...ek row ke liye ek column ke liye i denotes row and j denotes column. Uske baad check kiya ki kya diagonal apne pichle diagonal element se equal hai ya ni. i-1,j-1 krke pichla diagonal element access krliya.. that's it.
@@CodeGenius316 ye nhi bhaiya vo m=matrix[0].size ye kaise aya
Matrix[0] means pehli row matrix ko (0th index pe) Aur matrix[0].size means number of elements in that row which is number of columns đđ»
@@CodeGenius316 oh. Thank you bhaiya
Bhai mai 10 email se subscribe kar dunga tu bass video dalana band mat kar
Aree thanks Bhai... bilkul band nahi krunga đ„čđ„č
Great question
Did they removed 100 coin t-shirt
Yes
Subscribe
Bro teri level of understanding bohot acchi hai how you achieve this level of knowledge are you iitian of what
Thanks bro...no I'm not iitian All this can be achieved by regular practice đ
int covverage(vector<vector<int>> &matrix) { int r = matrix.size(); int c = matrix[0].size(); int sum = 0; for (int i = 0; i < r; i++) { for (int j = 0; j < c; j++) { if (matrix[i][j] == 0) { if (j > 0 && matrix[i][j - 1] == 1) // left element { sum += 1; } if (i < r - 1 && matrix[i][j + 1] == 1) //right element { sum += 1; } if (i > 0 && matrix[i - 1][j] == 1) // upside element { sum += 1; } if (i < r - 1 && matrix[i + 1][j] == 1) // downside element { sum += 1; } } } return sum; } } bhai ye code chal to gaya but muje right side element and downside element mai i < r - 1 , j < c - 1 ye boundary cases ka logic samaj nahi aya can you help in this
Bhai ye code same mere Wale jaisa hai...video dekho yehi cheez smjha rkhi hai maine
Nice đ
Thanks đ
Very helpful video! The explanation is clear and easy to understand. Great job!
Thanks đ
class Solution { public: int findCoverage(vector<vector<int>>& matrix) { // Code here int ans = 0; int n = matrix.size(); int m = matrix[0].size(); for(int i = 0; i < n; i++){ for(int j = 0; j < m-1; j++){ ans+=matrix[i][j]^matrix[i][j+1]; } } for(int i = 0; i < m; i++){ for(int j = 0; j < n-1; j++){ ans+=matrix[j][i]^matrix[j+1][i]; } } return ans; } }; I have tried this approach and works correctly. Just basic XOR operation.
Awsmđđ»
@@CodeGenius316 Thanksđ
Thanks for sharing explanation bro đ
Welcome bro đ
why are you using row.rend() and not row.end() and row.begin()
Thanks again sir â€
đđ»â€ïž
sir itna detail me explain kiya hai koi bhi smjh jayega .... amazing sirrđ