Category: Problem Solution

04
Feb
2016

URI Online Judge Solution | 1332 One-Two-Three | UVA 12289

Reference: https://github.com/deniscostadsc/playground/blob/master/uri/1332/1332.cpp Code: #include<cstdio> #include<cstring> using namespace std; int main() { int n; char s[6]; scanf(“%d”,&n); while(n–){ scanf(“%s”,&s);…

25
Jan
2016

URI Online Judge Solution| 1168 LED

#include<cstdio> #include<cstdlib> #include<cstring> int main() { char x[1111]; int i,j,n,sum=0; scanf(“%d”,&n); for(i=0; i<n; i++) { scanf(“%s”,x); for(j=0;…

17
Jan
2016

Difference Between Method Overloading and Method Overriding in Java

Method Overloading: 1) Performed within class 2) Parameters must be different 3)Is the example of compile time…

31
Dec
2015

C program to transpose a matrix

#include<stdio.h> int main() { int m,n,c,d,matrix[10][10],transpose[10][10]; printf(“enter the number of rows and columns of matrix\n”); scanf(“%d %d”,&m,…

30
Dec
2015

Pattern Printing:Full pyramid in C

  #include<stdio.h> int main() { int i,j,n; printf(“Enter value of n rows: “); scanf(“%d”,&n); for(i=1; i<=n; i++)…

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);…