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 6ca9a80 commit 37e6999Copy full SHA for 37e6999
Mathematical/Java/Arithmetic_Number.java
@@ -0,0 +1,25 @@
1
+class Solution{
2
+ static int inSequence(int A, int B, int C){
3
+ // code here
4
+ if (C == 0) {
5
+ if (A == B) {
6
+ return 1;
7
+ }
8
+ else {
9
+ return 0;
10
11
12
+ else if (A==B) {
13
14
15
+ else if (C>0 && (B-A)%C==0 && B>A) {
16
17
18
+ else if(C<0 && (B-A)%C ==0 && A>B) {
19
20
21
22
23
24
25
+}
0 commit comments