FooBarQix Kata

FooBarQix Kata

Best.App
Aug 31, 2016
  • 1.2 MB

    Dateigröße

  • Android 2.3.4+

    Android OS

Über FooBarQix Kata

Algorithmus, um FooBarQix Kata zu lösen

During an interview for an internship, they ordered me to resolve this problem

Write a program that prints numbers from 1 to 100, one number per line. For each printed number, use the following rules:

1. if the number is divisible by 3 or contains 3, replace 3 by "Foo";

2. if the number is divisible by 5 or contains 5, replace 5 by "Bar";

3. if the number is devisible by 7 or contains 7, replace 7 by "Qix".

Example: 1 2 FooFoo 4 BarBar Foo QixQix 8 Foo Bar

More details:

- divisors have high precedence, ex: 51 -> FooBar

- the content is analysed in the order they appear, ex: 53 -> BarFoo

- 13 contains 3 so we print "Foo"

- 15 is divisible by 3 and 5 and contains 5, so we print “FooBarBar”

- 33 contains 3 two times and is divisible by 3, so we print “FooFooFoo”

Mehr anzeigen

What's new in the latest 1.0

Last updated on Aug 31, 2016
Minor bug fixes and improvements. Install or update to the newest version to check it out!
Mehr anzeigen

Videos und Screenshots

  • FooBarQix Kata Plakat
  • FooBarQix Kata Screenshot 1
  • FooBarQix Kata Screenshot 2
  • FooBarQix Kata Screenshot 3
  • FooBarQix Kata Screenshot 4
  • FooBarQix Kata Screenshot 5

Alte Versionen von FooBarQix Kata

FooBarQix Kata 1.0

1.2 MBAug 31, 2016
Download
APKPure Zeichen

Superschnelles und sicheres Herunterladen über die APKPure-App

Ein Klick zur Installation von XAPK/APK-Dateien auf Android!

Download APKPure
thank icon
We use cookies and other technologies on this website to enhance your user experience.
By clicking any link on this page you are giving your consent to our Privacy Policy and Cookies Policy.
Learn More about Policies