We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5b7cb3 commit 7f8f4ccCopy full SHA for 7f8f4cc
Logic-2/close_far.py
@@ -0,0 +1,9 @@
1
+def close_far(a, b, c):
2
+ if abs(a-b) > abs(a-c) :
3
+ b = b + c
4
+ c = b - c
5
+ b = b - c
6
+
7
+ if abs(a-b) <= 1 and abs(a-c) >= 2 and abs(b-c) >= 2 :
8
+ return True
9
+ return False
0 commit comments