Skip to main content
deleted 1045 characters in body
Source Link

Nth FizzBuzz Number

Introduction

Everyone knows the FizzBuzz sequence. It goes something like this:

1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
.
.
.

In case you don't know, if the number is divisible by 3, it's Fizz. If it is divisible by 5, it's Buzz. If it is divisible by both, it's FizzBuzz. If it is not divisible by both, it's just the original number.

Task

Take two inputs separated by spaces, for example

Fizz 3

For this specific example input, you should output 9, the third Fizz. To be more general, take a word and a number separated by spaces, output the numberth word.

The word input may be Number, and in this case, you should output the numberth number in the FizzBuzz sequence that is not Fizz, Buzz, or FizzBuzz.

Test Cases

Fizz 3 => 9
Buzz 4 => 25
FizzBuzz 2 => 30
Number 312 => 586

Scoring

Shortest code wins!

Rules

  • No standard loopholes.

MetaNth FizzBuzz Number

  • Feedback?

Todos

  • Add more test cases

Nth FizzBuzz Number

Introduction

Everyone knows the FizzBuzz sequence. It goes something like this:

1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
.
.
.

In case you don't know, if the number is divisible by 3, it's Fizz. If it is divisible by 5, it's Buzz. If it is divisible by both, it's FizzBuzz. If it is not divisible by both, it's just the original number.

Task

Take two inputs separated by spaces, for example

Fizz 3

For this specific example input, you should output 9, the third Fizz. To be more general, take a word and a number separated by spaces, output the numberth word.

The word input may be Number, and in this case, you should output the numberth number in the FizzBuzz sequence that is not Fizz, Buzz, or FizzBuzz.

Test Cases

Fizz 3 => 9
Buzz 4 => 25
FizzBuzz 2 => 30
Number 312 => 586

Scoring

Shortest code wins!

Rules

  • No standard loopholes.

Meta

  • Feedback?

Todos

  • Add more test cases
edited body
Source Link
Larry Bagel
  • 4.2k
  • 4
  • 9

Nth FizzBuzz Number

Introduction

Everyone knows the FizzBuzz sequence. It goes something like this:

1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
.
.
.

In case you don't know, if the number is divisible by 3, it's Fizz. If it is divisible by 5, it's Buzz. If it is doesn'tdivisible by both, it's FizzBuzz. If it is not divisible by both, it's just the original number.

Task

Take two inputs separated by spaces, for example

Fizz 3

For this specific example input, you should output 9, the third Fizz. To be more general, take a word and a number separated by spaces, output the numberth word.

The word input may be Number, and in this case, you should output the numberth number in the FizzBuzz sequence that is not Fizz or, Buzz, or FizzBuzz.

Test Cases

Fizz 3 => 9
Buzz 4 => 25
FizzBuzz 2 => 30
Number 312 => 586

Scoring

Shortest code wins!

Rules

  • No standard loopholes.

Meta

  • Feedback?

Todos

  • Add more test cases

Nth FizzBuzz Number

Introduction

Everyone knows the FizzBuzz sequence. It goes something like this:

1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
.
.
.

In case you don't know, if the number is divisible by 3, it's Fizz. If it is divisible by 5, it's Buzz. If it is doesn't by both, it's FizzBuzz. If it is not divisible by both, it's just the original number.

Task

Take two inputs separated by spaces, for example

Fizz 3

For this specific example input, you should output 9, the third Fizz. To be more general, take a word and a number separated by spaces, output the numberth word.

The word input may be Number, and in this case, you should output the numberth number in the FizzBuzz sequence that is not Fizz or Buzz.

Test Cases

Fizz 3 => 9
Buzz 4 => 25
FizzBuzz 2 => 30
Number 312 => 586

Scoring

Shortest code wins!

Rules

  • No standard loopholes.

Meta

  • Feedback?

Todos

  • Add more test cases

Nth FizzBuzz Number

Introduction

Everyone knows the FizzBuzz sequence. It goes something like this:

1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
.
.
.

In case you don't know, if the number is divisible by 3, it's Fizz. If it is divisible by 5, it's Buzz. If it is divisible by both, it's FizzBuzz. If it is not divisible by both, it's just the original number.

Task

Take two inputs separated by spaces, for example

Fizz 3

For this specific example input, you should output 9, the third Fizz. To be more general, take a word and a number separated by spaces, output the numberth word.

The word input may be Number, and in this case, you should output the numberth number in the FizzBuzz sequence that is not Fizz, Buzz, or FizzBuzz.

Test Cases

Fizz 3 => 9
Buzz 4 => 25
FizzBuzz 2 => 30
Number 312 => 586

Scoring

Shortest code wins!

Rules

  • No standard loopholes.

Meta

  • Feedback?

Todos

  • Add more test cases
added 21 characters in body
Source Link
Larry Bagel
  • 4.2k
  • 4
  • 9

Nth FizzBuzz Number

Introduction

Everyone knows the FizzBuzz sequence. It goes something like this:

1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
.
.
.

In case you don't know, if the number is divisible by 3, it's Fizz. If it is divisible by 5, it's Buzz. If it is doesn't by both, it's FizzBuzz. If it is not divisible by both, it's just the original number.

Task

Take two inputs separated by spaces, for example

Fizz 3

For this specific example input, you should output 9, the third Fizz. To be more general, take a word and a number separated by spaces, output the numberth word.

The word input may be NoneNumber, and in this case, you should output the numberth number in the FizzBuzz sequence that is not Fizz or Buzz.

Test Cases

Fizz 3 => 9
Buzz 4 => 25
FizzBuzz 2 => 30
Number 312 => 586

Scoring

Shortest code wins!

Rules

  • No standard loopholes.

Meta

  • Feedback?

Todos

  • Add more test cases

Nth FizzBuzz Number

Introduction

Everyone knows the FizzBuzz sequence. It goes something like this:

1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
.
.
.

In case you don't know, if the number is divisible by 3, it's Fizz. If it is divisible by 5, it's Buzz. If it is doesn't by both, it's FizzBuzz. If it is not divisible by both, it's just the original number.

Task

Take two inputs separated by spaces, for example

Fizz 3

For this specific example input, you should output 9, the third Fizz. To be more general, take a word and a number separated by spaces, output the numberth word.

The word input may be None, and in this case, you should output the numberth number in the FizzBuzz sequence that is not Fizz or Buzz.

Test Cases

Fizz 3 => 9
Buzz 4 => 25
FizzBuzz 2 => 30

Scoring

Shortest code wins!

Rules

  • No standard loopholes.

Meta

  • Feedback?

Todos

  • Add more test cases

Nth FizzBuzz Number

Introduction

Everyone knows the FizzBuzz sequence. It goes something like this:

1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
.
.
.

In case you don't know, if the number is divisible by 3, it's Fizz. If it is divisible by 5, it's Buzz. If it is doesn't by both, it's FizzBuzz. If it is not divisible by both, it's just the original number.

Task

Take two inputs separated by spaces, for example

Fizz 3

For this specific example input, you should output 9, the third Fizz. To be more general, take a word and a number separated by spaces, output the numberth word.

The word input may be Number, and in this case, you should output the numberth number in the FizzBuzz sequence that is not Fizz or Buzz.

Test Cases

Fizz 3 => 9
Buzz 4 => 25
FizzBuzz 2 => 30
Number 312 => 586

Scoring

Shortest code wins!

Rules

  • No standard loopholes.

Meta

  • Feedback?

Todos

  • Add more test cases
Source Link
Larry Bagel
  • 4.2k
  • 4
  • 9
Loading