Programming Challenges
Programming Challenges
================================================================================
1001-40
1002-50
1003-60
1002-80
1005-35
1005-55
1007-68
1009-99
1009-10
1004-89
Solution of Challenge - 1
Solution of Challenge - 2
Solution of Challenge - 3
123ABC,456DEF
Then the sum of the ascii values of the
characters in '123ABC' is 348 and in
'456DEF' it is 366. The Difference between
these numbers is 348 – 366 = -18
-18
Solution of Challenge - 4
0 – Jan
1 – Feb
2 – March
and so on......
The format for supplying the input is:
1999-5
1999-5
1998-6
Then the output should be:
MONDAY
TUESDAY
Solution of Challenge - 5
input,
This is a Program
Coding test of Initial Caps
the program Will Test You
Then, the output would look like:
This
Program
Coding
Initial
Caps
Will
Test
You
Solution of Challenge - 6
1
2 2
3 3 3
1
2 2
1
2 2
3 3 3
4 4 4 4
Solution of Challenge - 7
Input- [62, 5, 1, 3]
Output- 62531
Solution of Challenge - 9
For example: 1 + 2 + 34 – 5 + 67 – 8 + 9 =
100.
VALUES = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
Output-
1+2+3-4+5+6+78+9
1+2+34-5+67-8+9
1+23-4+5+6+78-9
1+23-4+56+7+8+9
12+3+4+5-6-7+89
12+3-4+5+67+8+9
12-3-4+5-6+7+89
123+4-5+67-89
123+45-67+8-9
123-4-5-6-7+8-9
123-45-67+89
Solution of Challenge - 10
INPUT
20,23,25,30,22,21,16
Then the corresponding biggest fluctuation
is:
OUTPUT
26.6666666666667 (As the maximum
fluctuation in price is between 22 and 30)
Solution of Challenge - 11
OUTPUT
abba
gaag
Solution of Challenge - 12
Definitions:
Volume of cube = aaa, where a is the side
of a cube
Area of Square = b*b, where b is the side
of the square
Solution of Challenge - 13
Solution of Challenge - 15
Solution of Challenge - 16
OUTPUT1 9 100
Solution of Challenge - 17
OUTPUT1 9 8 6
Solution of Challenge - 19
INPUT12-13-14,45-156-23,234-234-256
OUTPUT#0C0D0E,#2D9C17,INVALID
Solution of Challenge - 20
Example
Solution of Challenge - 21
INPUT1001,1002,1003,1004,1005
1106,1008,1005,1003,1016,1017,1112
Solution of Challenge - 25
Solution of Challenge - 26
Programming Challenges Question - 27
Write a program which accepts 4 integer
values (one per line) and converts them to
their corresponding 16 bit binary values.
The output should be printed one value per
line.
INPUT8 10 17 23
OUTPUT0000000000001000 0000000000001010
0000000000010001 0000000000010111
Solution of Challenge - 27
Solution of Challenge - 28