Kitty and Katty

Sort by

recency

|

10 Discussions

|

  • + 0 comments

    can somebody show me an example code. i have no clue

  • + 0 comments

    AC in one go !!

  • + 1 comment

    There is an hole of explanation of the question. For example every time bigger number subtracted by smaller number not vice versa. And and the first test result not always Kitty Katty, some times the result Kitty Kitty

  • + 1 comment

    In Java modulo operation -1 % 3 = -1 , One of the answer said that -1 % 3 =2 But java doesn't calculate like that. How can find result of 2 in -1 % 3 Here the sample java program I run: class Remainder {

      public static void main (String args[]) {
    
        int i = -1;
        int j = 3;
    
        System.out.println("i is " + i);
        System.out.println("j is " + j);
    
        int k = i % j;
        System.out.println("i%j is " + k);
      }
    
    }
    
  • + 1 comment

    One more question, let assume I choose xth number of block as A and yth number of Block as B, should the new block ( the block which number A-B) put to the location of A? Let me explain I choose 2nd (as A) and 5th (as B) block the number of new block would be (A - B) -3 should I set this block in the position of A?