๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.63K subscribers
5.61K photos
3 videos
95 files
10.6K links
๐ŸšฉMain Group - @SuperExams
๐Ÿ“Job Updates - @FresherEarth

๐Ÿ”ฐAuthentic Coding Solutions(with Outputs)
โš ๏ธDaily Job Updates
โš ๏ธHackathon Updates & Solutions

Buy ads: https://telega.io/c/cs_algo
Download Telegram
GFG is hiring for Associate Mentor role
Experience: 1+ year required
Skills: DSA is must ๐Ÿ˜‚ (language java, python agar aata hoga then it's a plus)

If interested send your resume at dikhita.majhee@geeksforgeeks.org
#include <bits/stdc++.h>
using namespace std;
string decimalToBinary(int n)
{
string s = bitset<64> (n).to_string();
const auto loc1 = s.find('1');
if(loc1 != string::npos)
  return s.substr(loc1);
return "0";
}
int main()
{
int n;
cin>>n;
int ans=1;
string s =decimalToBinary(n);
for(int i=s.size()-1;i>=0;i--)
{
     if(s[i]=='1')
     break;
     else
     ans++;
}

cout<<ans;
return 0;
}

IBMโœ…
๐Ÿ‘3