Check a given number is power of 2 | Bitwise operator || Competitive Programming ||
Vložit
- čas přidán 13. 09. 2024
- In the series of competitive programming today we learn very important algorithm in bitwise operator to check the given number is power of 2 or not by using bit wise AND ( & ) Operator. competitive programming. codecehef solution also in hello world.
----------------------------------------------------------------------------------------
Code in this video : github.com/Pri...
Pdf of this video : github.com/Pri...
ASCII Table link : www.cs.cmu.edu...
Home-work Questions : www.codechef.c...
*Follow me on Instagram *
Instagram► / helloworldbyprince
*Follow me on Twitter *
Twitter► / prince_king_
Our Students Contacts Form:-
Form link : docs.google.co...
------------------------------------------------------------------------
Our mission is to provide a free course for all students in Hindi in better way or in friendly way.
Competitive programming or CP is a buzzword when a guy is a freshie in computer science branch and most of the guys don't have proper guidance that is needed. So in this series of video lectures I will be guiding you through various problems, myths, future scopes and a lot more related exclusively to competitive programming.
#competitiveprogramming #binarytodecimal #decimaltobinary
I was asked this same question in Amazon Lab 126 coding challenge by a technical recruiter. I was able to solve this using Brute force but I wish I knew this technique because I got stuck while optimizing it. Thanks for this explaination.
Literally I enjoyed a lot 😃✌️
I must say clean,clear , energetic and Full of value 🙏
Just Wow, I read some blog about it but can't understand then I search it on CZcams and find this. It really helps me to understand. Thank You, and I'm from Bangladesh!
Your most Welcome ...I have most amazing content on competitive programming ...you can check also ❤️
Sir app bhot achaa pdhate hooo,
😁 tnxxxx jo chij bhot time se smj ni aa rhi thi apne 15min me amja diii.
keep learning buddy and be consistent and share my channel with your college groups that helps me a lot
@@HelloWorldbyprince yes
i will share your channel sirr.🤗🤗
explained in a easy way.thanks
Wonderful logic
bhot bhot badhiya video.
Really awesome 👍
Thanks and please keep uploading
Thanks for watching ❤️
Thanks bro.. keep uploading useful videos for competitive programming
Your welcome sachin ...but please share my channels in your social media. and tell with your friends
vaah bete moj kardi ;)
😅😅
Mja agya
Keep it up buddy
Wow great idea
Thank you so much sir.
thank u
🤗
Welcome dear 🤗
Bruv I can only partially understand hindi and this was still the most helpful vid on this topic. Thanks a bunch
What abt if scaneed 1.?
you are a gem. thanks dada
You are most welcome
Very efficient BRO!
beautiful!👌👌👌👌👏 and with this one new subscriber!🙌
#completed
#include
using namespace std;
int main() {
int T;
cin>>T;
while(T--){
char N;
cin>>N;
if(N=='B' ||N== 'b') cout
Literally aaj naya kuch sikha
Thanks
@@HelloWorldbyprince By the way I have solved all ur uploaded videos Qs and Literally Qs were very Good. I must appreciate your working. I want more Qs.
Can I contact you personally.?
#completed
Sir you beautifully explained it👌👌
Thanks a lot man ...❤️❤️
Please share my channel with your friends
wow sir
great sir!!
Thanks bro
Maja aa gya sir ....
thanks a lot ... please share this channel more and more .. so that my efforts will be rewarded and more enthusiast come in my channel
#complete
Make videos on zco questions
A little bit correction sir , your program will give wrong out put for x=0 so , use condition x &&!( x&(x-1))
hey aditya you also started with cp I want a partner so that we can do it better
like if you are interested mail me honeynagda99@gmail.com
@@bhupendranagda9563 yea I am ready , you can contact me by mail chauhanaditya673@gmail.com or 9369693145 ( whatsapp)
Bhai mereko v help kro
#completed
#include
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
char ch;
cin>>ch;
if(ch=='b' || ch=='B')
cout
its failed in negative number
answer to aa gya guru but (x & (x-1)) hi kyu kiya gya? koi aur operator kyu use nhi kiya
bitwise and
#include
using namespace std;
int main() {
int t;
cin>>t;
while(t--)
{
char c;
cin>>c;
if(c=='B' || c=='b')
cout
Sir getting stuck when input is upto 10^18 in a question of geeks for geeks I am getting wrong answer when input is 1099511627776
#completed
#include
#include
using namespace std;
int main()
{
int T; cin>>T;
while(T--)
{
char c; cin>>c;
if(c=='b' || c=='B')
cout
this code is wrong for 1099511627776 as input.
Check the maximum size of input
#completed
#completed
#completed
#completed
#completed