Golden Scores
Write a program to print all the Golden Scores in the list by maintaining their relative order.
Note: The last score is always a golden score.
sample input1
4 5 1 3 2
sample output1
5 3 2
sample input2
9 8 10 12
sample output2
12
Numbers Replacement
Note: Start from the left end of the list.
sample input1
1 -2 3 -4 -5 6
sample output1
1 1 3 3 3 6
sample input2
1 11 -13 21 -19
sample output2
1 11 11 21 21
Perpendicular Words
Write a program to print all the perpendicular words in S.
sample input 1
CAT BAT VIN
sample output1
CBV
AAI
TTN
sample input 2
MAM BY DORM
sample output 2
MBD
AYO
M R
M
Re-order the string
Given a string, write a program to help Eren to modify the string.
sample Input 1
I am 5 years 11 months and 8 days old.
sample output 1
I am 5 years 8 months and 11 days old.
sample Input 2
At 12pm total score is 180 with 8 4s 7 6s in 150 balls.
sample output 2
At 4pm total score is 6 with 7 8s 12 150s in 180 balls.
Find latitude and longitude of utmost 20 countries, ordered by population, with a population greater or equal to the population limit given below and have atleast one currency exclusively for themselves.
Population limit:84497
Diamond Given an integer value N, write a program to print a number diamond of 2*N -1 rows as shown below. Input The first line of input is an integer N. Explanation In the given example, the number of rows in the diamond is 5. So, the output should be
. . . . 0 . . . .
. . . 0 0 0 . . .
. . 0 0 0 0 0 . .
. 0 0 0 0 0 0 0 .
0 0 0 0 0 0 0 0 0
. 0 0 0 0 0 0 0 .
. . 0 0 0 0 0 . .
. . . 0 0 0 . . .
. . . . 0 . . . .
Given a string, create a new string with all the consecutive duplicates removed.
=====================================================================
Hint: You may make a new string to store the result. You can check whether the current character and the next character are the same, then add that character to the new string.
What are the default values do we can assign for the class Bank whose attributes IFSC code, branch name, bank name and location are initialized using parameterized constructors
implement a variations of a list type in a python, Specifically a type increasing list
2. Found Ya!
by CodeChum Admin
Let's now try finding a certain digit into an integer! Come and join in on the fun and code with me!
Instructions
Input
A line containing two integers separated by a space.
1·231214238
Output
A line containing a string.
Yes