Category: ACM-ICPC
Code is here: #include<stdio.h> int main() { int number; scanf(“%d”,&number); char digits[2000000]; int i=0,d; while(number>0) { d=number%10;…
https://www.raywenderlich.com/135789/how-to-be-a-better-developer-with-programming-challenges https://www.hackerearth.com/getstarted-competitive-programming/
code: 1<=N<=10^5 1<=A[i]<=10^9 1<=M<=10^9 Source: https://www.facebook.com/groups/bengaliprogramming/permalink/717276125110930/
code: 1<=N<=10^5 1<=A[i]<=10^9 1<=M<=10^9 Source: https://www.facebook.com/groups/bengaliprogramming/permalink/717276125110930/
Google Search: https://www.google.com/search?q=Counting+2s&ie=utf-8&oe=utf-8&client=firefox-b#q=Counting+2s+in+c SOlution: https://www.careercup.com/question?id=56794 //https://www.careercup.com/question?id=56794 #include<stdio.h> int main() { int n,i,j; int ctr=0; scanf(“%d”,&n); for(i=0;i<=n;i++) { for(j=i;j>0;j=j/10) {…
Divide a number by 10 will give you a digit as int sample: 256/10=25.6==25 25/10=2.5==2 256%10=6 25%10=5…
Recent Comments