+ 6

Challenge : Rectangle Conformation

We know that a rectangle have 4 sides in which opposite sides are equal but alternate sides are unequal. 1) Take Input as 4 sides of a rectangle. 2) If both the opposite sides are equal then output = yes (its a rectangle) 3) User input may be in random order For Example If Input = Ex : 1) 1224 Output = No Ex : 2) 1221 Output = Yes Ex: 3) 121 Output = invalid input{must contain all the 4 side} Every Language Welcome 🤓

25th Feb 2018, 1:04 PM
Faisal Khan
Faisal Khan - avatar
15 Answers
26th Feb 2018, 3:59 PM
Swapnil Srivastava
Swapnil Srivastava - avatar
+ 15
I'll also try.
26th Feb 2018, 1:57 PM
Swapnil Srivastava
Swapnil Srivastava - avatar
+ 9
Your is good but your Challenges should be made into assignments in lesson factory. In this you also have benefit and read this. https://www.sololearn.com/discuss/1082512/?ref=app
25th Feb 2018, 2:28 PM
Vishal Pal❄️⚛️
Vishal Pal❄️⚛️ - avatar
+ 6
here's my attempt. assuming all sides are single digits https://code.sololearn.com/cPWklJkuQ5U4/?ref=app
26th Feb 2018, 2:52 PM
Siva Shankar
Siva Shankar - avatar
+ 3
Give it a try guys
25th Feb 2018, 1:05 PM
Faisal Khan
Faisal Khan - avatar
+ 3
If you didn’t understand the question, i can elobrate here
25th Feb 2018, 1:05 PM
Faisal Khan
Faisal Khan - avatar
+ 3
@faisal thanks 😀
26th Feb 2018, 4:35 PM
Siva Shankar
Siva Shankar - avatar
+ 3
Let me know if something can be changed to make it more faster! Please let me know if you have any suggestions. https://code.sololearn.com/cHO0ha5TwHly/?ref=app
27th Feb 2018, 7:16 PM
Dhananjay Panage
Dhananjay Panage - avatar
+ 3
Keep on creaating such types of challanges! This is so much fun...
27th Feb 2018, 7:18 PM
Dhananjay Panage
Dhananjay Panage - avatar
+ 2
👍
26th Feb 2018, 1:55 PM
Faisal Khan
Faisal Khan - avatar
+ 2
@siva you rock bro !!! 👏🏻👏🏻
26th Feb 2018, 2:55 PM
Faisal Khan
Faisal Khan - avatar
+ 2
Wlcm bro 😊
26th Feb 2018, 4:58 PM
Faisal Khan
Faisal Khan - avatar
+ 2
do we have to take spaces or directly a number
27th Feb 2018, 7:02 PM
Dhananjay Panage
Dhananjay Panage - avatar
+ 2
@dhananjay you can specify it in input
27th Feb 2018, 7:17 PM
Faisal Khan
Faisal Khan - avatar
+ 2
@dhananjay thanks man , your code is owsm 👏🏻👏🏻
27th Feb 2018, 7:19 PM
Faisal Khan
Faisal Khan - avatar