Submit your work, meet writers and drop the ads. Become a member
Gandy Lamb Oct 2023
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89,144,233,377,610,987, 1597, 2584, 4181, 6765, 10946, 17711, 28657, 46368, 75025, 121393, 196418, 317811, 514229, ...

The numbers keep getting bigger, time keeps passing, and I get closer to death. I need a faster way to find the nth fibonacci number, or I will starve to death.  I will use dynamic programming to find the nth fibonacci number in O(n) time.

public class fibonacci {
    static int fib(int n)
    {
        int f[]  = new int[n + 2];
        int i;
  
        f[0] = 0;
        f[1] = 1;
  
        for (i = 2; i <= n; i++) {
            f[i] = f[i - 1] + f[i - 2];
        }
  
        return f[n];
    }

I have now found the nth fibonacci number in O(n) time. This represents the fact that if we put our minds to it, we can overcome any obstacle in our way. However, this dynamic programming uses O(n) space, and could be improved to O(1) space. This represents the fact that there is no such thing as perfection, and honing our skills is a lifelong process. However, since I found a polynomial time solution to this problem, I won't starve to death before finding the 10000th fibonacci sequence. This is good, because it represents the fact that African children won't go hungry anymore.
I did it. I found the nth fibonacci number in O(n) time.
finn Aug 2021
firth -
part
of the
sea; ebbs and
flows - an inlet of
the ocean at a wide river
estuary, a place where mourning songs are sung and
souls are lost and found and secrets revealed and waters are wide; a place to breathe for once.
the firth is where there is a separation of ways.
where we walk down one river each
and we don’t look back
go forward
forget
the
past.
a fibonacci poem this time! i've recently been experimenting with different letters for poem+word combos.
Astrid Michaels Nov 2020
Who
Am
I when
Tragedy
Is stripped out of me
And my hollow heart is displayed
Mark Toney Mar 2020
Fear
of
flying—
facing fear
he boarded the plane
which some minutes after takeoff
violently shook and then plummeted toward earth—
him being sad, not over his impending death, but having just won the lottery



© 2020 by Mark Toney. All rights reserved.
2/29/2020 - Poetry form: Fibonacci - The number of syllables in each line must equal the sum of the syllables in the two previous lines resulting in  0, 1, 1, 2, 3, 5, 8, 13, 21... which is the fibonacci sequence.  The last line of 21 syllables in this poem appears as more than one line because of Hellopoetry's space restrictions and also on mobile devices and smaller screens.  Ah, the Romanesque broccoli spirals of the fibonacci sequence! - © 2020 by Mark Toney. All rights reserved.
Tex Dermott Jan 2020
Go
To
Edgemont
If you can
Stand at the crossroads
Don't look back at the path again
TS Ray Nov 2019
You came out of poetry,
your beauty enumerated by,
syllables of two lengths.
I wish I can write your form.

Arranging an eye catching detail,
you are in every spiraling leaf,
circling in and around its stem.
Are you showing us nature is not random?

You are in daisies” geometry,
even as pine cones are made in symmetry,
nearly completing the pineapples design as though it is rudimentary,
How I miss this visual isometry
Are you saying there is order in chaos?

Mathematics of last sum,
made in addition with previous one,
and one before the last,
is how we simplify you.
Are you showing that beauty lies in simplicity?

Showing how to go from strength to strength,
teaching us learnings are cumulative,
you are my new additive affection,
So, show me more!
Xaela San Nov 2019
Shards
Of
Broken
Glass mirror
Spread across the floor
And the crimson blood flowing through
Letting out the unspoken words she carried before
1,1,2,3,5,8,13 syllable
Xaela San Nov 2019
Such
Pain
Of the
Broken heart
I carry within
For my heart assumes you're alive,
In reality you're buried six feet underground.
1,1,2,3,5,8,13 syllable
Next page