Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Decimal to Binary
#include <iostream> using namespace std; int main() { int a[10], n, i; cin>>n; for(i=0; n>0; i++) { a[i]=n%2; n= n/2; } for(i=i-1 ;i>=0 ;i--) { cout<<a[i]; } }
run
|
edit
|
history
|
help
0
Prime_Number_Cpp
HCF
c2p_update
Dar
Graph Theory
printAllPathsInMatrix
asa
without HLD range Quey can be handled by just using segment tree on the FLATTENED TREE (euler tour)
poker.hpp
Find the Duplicate Number in array of n+1 integers having elements from 1 to n