Category: Programming Problem Solving

30
Dec
2015

C problem solution:Anagrams

Anagram: #include<stdio.h> int check_anagram(char [],char []); int main() { char a[100],b[100]; int flag; printf(“Enter first string\n”); gets(a);…

19
Dec
2015

5*5 matrix in Javascript,Unityscript(Multidimensional Array)

http://stackoverflow.com/questions/10021847/for-loop-in-multidimensional-javascript-array http://jsfiddle.net/TRR4n/ My code: //To show the array value https://jsfiddle.net/zakilive/6yrx1opj/1/ /* Author:Syed Ahmed Zaki www.zakilive.com */ var…

01
Dec
2015

HackerRank – Simple Array Sum

#include<stdio.h> int main() { int a[1000],n,i,sum=0; scanf(“%d”,&n); for(i=0;i<n;i++) { scanf(“%d”,&a[i]); sum=sum+a[i]; } printf(“%d”,sum); return 0; }  

28
Jul
2015

URI Online Judge Solution |1038 Snack

Here I tried to write everything in standard C++ #include<iostream> #include<iomanip> using namespace std; int main() {…

17
Feb
2015

Uva 11498 – Division of Nlogonia

Solution actually simple…You have to think simple here is the cartesian co ordinate link check here then…

10
Feb
2015

URI Online Judge Solution | 1035 Selection Test 1

Hints: Don’t forget to think that A is even so we have to use a%2==0 that’s it…