[Kata] (5kyu) Joseph died sort (ranked)

Source: Internet
Author: User

Never understand, today, Baidu, the next kyu is the level of meaning, Dan is the meaning of paragraph, the lower the level of the stronger the number of segments, the larger the greater the stronger.

Original question Https://www.codewars.com/kata/josephus-permutation/train/java

The first 5kyu question, it was a little hard.

Today, a 5kyu question was ordered, and the test passed, but the solution was to find the least common multiple of multiple values (incoming list) instead of the common denominator of the numerator/denominator of the incoming representation, not taking into account that even if the denominator/molecule is not a positive integer, multiplying the numerator may get a positive integer.

Original question Http://www.codewars.com/kata/common-denominators/train/java

Today read the next MU class Mooc Java Advanced score 73+ can take the entity certificate, but forensics time over 3 days, forget it, just as yesterday 100RMB bought fitness time card offset This 100 forensics money costs it!~

The requirement of the above question is the least common multiple of the public denominator rather than multiple numbers, or there is a difference.

such as the following:

LST = new long[][] {{1, 131}, {5, 130}};
LST = new long[][] {{1,100},{2,500},{1,20000}};

The obtained results are not fully obtained by the previous notation.

[Kata] (5kyu) Joseph died sort (ranked)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.