+ 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 🤓
15 Answers
+ 22
Here's my try :
https://code.sololearn.com/WiFNm7PA5V45/?ref=app
+ 15
I'll also try.
+ 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
+ 6
here's my attempt. assuming all sides are single digits
https://code.sololearn.com/cPWklJkuQ5U4/?ref=app
+ 3
Give it a try guys
+ 3
If you didn’t understand the question, i can elobrate here
+ 3
@faisal thanks 😀
+ 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
+ 3
Keep on creaating such types of challanges! This is so much fun...
+ 2
👍
+ 2
@siva you rock bro !!! 👏🏻👏🏻
+ 2
Wlcm bro 😊
+ 2
do we have to take spaces or directly a number
+ 2
@dhananjay you can specify it in input
+ 2
@dhananjay thanks man , your code is owsm 👏🏻👏🏻