LEETCODE 222: COUNT COMPLETE TREE NODES | SOLUTION 2 WAYS | C++

  Рет қаралды 508

Nikash Kumar

4 жыл бұрын

This is one of common questions asked in #SoftwareEngineerInterview of #GOOGLE #FACEBOOK.
This video contains the explanation and code for the problem #CountCompleteTreeNode in 2 Ways.
1. Bruteforce
2. Optimized solution.
Please do let me know if you have any inputs/concerns for the solution.
Also do like, share and Subscribe :) Keep Learning Everyday :)
Try solving this problem here: leetcode.com/problems/count-complete-tree-nodes/
Find all my Leetcode solutions here: kzbin.info/aero/PLod2hJhyen5fBGkRZelDtg5YBVgd8aSvx
Subscribe at kzbin.info
Follow me here: nikash_nikx
Thank you

Пікірлер: 4
@mohneeshgarg8706
@mohneeshgarg8706 4 жыл бұрын
I think both approaches are o(n), as it can we solved using o(logn) time, so please try to include that part also.
@NikashKumar
@NikashKumar 4 жыл бұрын
sure , will do, pretty soon.
@shalomnaim007
@shalomnaim007 4 жыл бұрын
What is the time complexity of this solution?
@NikashKumar
@NikashKumar 4 жыл бұрын
O(n)
VAMPIRE DESTROYED GIRL???? 😱
00:56
INO
Рет қаралды 7 МЛН
إخفاء الطعام سرًا تحت الطاولة للتناول لاحقًا 😏🍽️
00:28
حرف إبداعية للمنزل في 5 دقائق
Рет қаралды 79 МЛН
А что бы ты сделал? @LimbLossBoss
00:17
История одного вокалиста
Рет қаралды 9 МЛН
MY HEIGHT vs MrBEAST CREW 🙈📏
00:22
Celine Dept
Рет қаралды 27 МЛН
VAMPIRE DESTROYED GIRL???? 😱
00:56
INO
Рет қаралды 7 МЛН