+ 9

Display all the numbers between 0 and 200 satisfying all the below conditions: i) Sum of the digits should be 9

ii) Digits should be in ascending order i.e., the digit on the left should be lesser than the digit in the right For Example: 27 -> 2+7=9 and 2 is less than 7 For Example: 135 -> 1+3+5=9 and 1 is less than 3 is less than 5

8th Sep 2022, 5:55 AM
Mr XXX
Mr XXX - avatar
26 Réponses
8th Sep 2022, 7:49 AM
Harsha S
Harsha S - avatar
+ 3
Java
8th Oct 2022, 1:04 PM
Vijay Vj
Vijay Vj - avatar
+ 2
Give basic to advance codes for python?
9th Sep 2022, 4:46 PM
Satyam Sahu
Satyam Sahu - avatar
+ 2
print([99*a+9*b+9 for a in [0,1] for b in range(a,(9-a)//2+1) ])
10th Sep 2022, 12:21 PM
VcC
VcC - avatar
+ 2
Please find the Coding challenge: 1.) Display all the numbers between 0 and 200 satisfying all the below conditions. Conditions: i) Sum of the digits should be 9 ii) Digits should be in ascending order i.e., the digit on the left should be lesser than the digit in the right For Example: 27-> 2 + 7 = 9 and 2 is less than 7 For Example: |35-> l + 3 + 5 = 9 and I is less than 3 is less than 5 How to solve in java language
19th Oct 2022, 4:36 PM
singappenney a
singappenney a - avatar
+ 1
this is wonderful, but what have you already done for this?
8th Sep 2022, 6:49 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 1
Thanks m8
9th Sep 2022, 2:58 PM
William A Kyzar
+ 1
Can Anyone do it in Java??..
22nd Oct 2022, 10:29 AM
Thiyagu Thiru
Thiyagu Thiru - avatar
+ 1
Display all the numbers between 0 and 200 satisfying all the below conditions: i) Sum of the digits should be 9 ii) Digits should be in ascending order i.e., the digit on the left should be lesser than the digit in the right For Example: 27 -> 2+7=9 and 2 is less than 7 For Example: 135 -> 1+3+5=9 and 1 is less than 3 is less than 5 Can anyone do this challenge in java
1st Nov 2022, 3:17 PM
Madhan Karthick S
Madhan Karthick S - avatar
0
Hi! what are your thoughts on this?
8th Sep 2022, 6:03 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
0
This is my coding challenge for interview round
8th Sep 2022, 6:34 AM
Mr XXX
Mr XXX - avatar
0
[(s:=(f"{i}")) and sorted(set(s))==list(s) and sum(map(int,s))==9 and print (i) for i in range(200)]
8th Sep 2022, 12:08 PM
Amir
Amir - avatar
0
Thanks you all🤗🙏🏼
8th Sep 2022, 1:24 PM
Mr XXX
Mr XXX - avatar
0
Plz help me am not understand the coding
9th Sep 2022, 5:08 PM
Ansh★😈😈
Ansh★😈😈 - avatar
0
do this code ans useing javascript
17th Sep 2022, 12:17 PM
Fahis
0
Pls this code in java
18th Oct 2022, 1:53 PM
RAJESH G
RAJESH G - avatar
0
Display all the number between 0 and 200 satisfying all the below conditions
14th Nov 2022, 9:20 AM
Metha J
Metha J - avatar
0
Give me answer
16th Nov 2022, 6:08 PM
Raj
0
n = 200 for i in range(1,n+1): a = [int(j) for j in str(i)] b = sum(a) if b == 9 and a == sorted(a) and len(a)==len(set(a)): print(i)
16th Nov 2022, 6:12 PM
Raj