CODES
some learning from problems.
CODES
some learning from problems.
Wednesday, 25 July 2012
Given a 2–d matrix , which has only 1’s and 0’s in it. Find the total number of connected sets in that matrix.
›
Explanation: Connected set can be defined as group of cell(s) which has 1 mentioned on it and have at least one other cell in that se...
8 comments:
Saturday, 14 July 2012
REVERSE a string and if any charecter is repeating then keep that one comes last
›
INPUT OUTPUT ABC CBA ABBC CBA NHHGFDGS SGDFHN ABBCC CBA ...
Tuesday, 10 July 2012
WAP to find the position of a given word in a given text
›
WAP to find the position of a given word in a given text. INPUT : Text : my name is kumar name Word : name OU...
1 comment:
Monday, 9 July 2012
Which type of triangle is ?
›
Write a function that receives three integer inputs for the lengths of the sides of a triangle and returns one of four values to determ...
Sunday, 8 July 2012
Find the number of substrings of a string that are palindromes
›
// INPUT : w3asd1dsaf // OUTPUT asd1dsa sd1ds d1d total 3 palindrom in given string #include<stdio.h> #include<stri...
1 comment:
Saturday, 7 July 2012
To copy the contents of an array A to contents of Array B without using loops and any standard string copy functions.
›
#include<stdio.h> int Copy_Array(int A[],int B[], int n,int i) { if(i==n) return 0; B[i]=A[i]; Copy_Array(...
‹
›
Home
View web version