CODES
some learning from problems.
CODES
some learning from problems.
Tuesday, 2 October 2012
Re-arrange the odd/even to odd/even places
›
Given an array of integers [3,1,4,5,7,6,10,8], re arrange elements such that either even numbers in even locations or odd numbers in ...
2 comments:
Friday, 14 September 2012
Sort an Array of 0 1& 2 in one pass
›
G iven an array int a[] = {0, 1, 1 ,0, 2, 2, 1, 0 ,1, 2, 1,0 } to be converted into {0, 0, 0, 0, 1, 1, 1, 1, 1 ,2 ,2 ,2} inplace a...
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...
‹
›
Home
View web version