5 kyu

One-Semicolon Fibonacci Stream

Description:

Write a function stream(int a, int b) -> IntStream that produces the Fibonacci sequence where the first two elements are a and b. Here's the catch: you only get one semicolon!

Good luck!

Algorithms
Streams
Puzzles

Stats:

CreatedOct 17, 2017
PublishedOct 17, 2017
Warriors Trained587
Total Skips55
Total Code Submissions949
Total Times Completed156
Java Completions156
Total Stars11
% of votes with a positive feedback rating86% of 33
Total "Very Satisfied" Votes26
Total "Somewhat Satisfied" Votes5
Total "Not Satisfied" Votes2
Total Rank Assessments4
Average Assessed Rank
5 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
6 kyu
Ad
Contributors
  • phantamanta44 Avatar
  • Voile Avatar
  • Madjosz Avatar
  • christian.ca Avatar
Ad