Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

3
LINES

< > BotCompany Repo | #1035559 // stupidFib - the really slow version of calculating a Fibonacci number

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (31L/1K).

static long stupidFib(int n) {
  ret n < 3 ? 1 : stupidFib(n-1) + stupidFib(n-2);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): elmgxqgtpvxh, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035559
Snippet name: stupidFib - the really slow version of calculating a Fibonacci number
Eternal ID of this version: #1035559/2
Text MD5: 4fdde58ffe4dae04dbf987671bb5bc92
Transpilation MD5: f91bf143f712f928c228bf99de18fa61
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-06-17 00:50:05
Source code size: 85 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 140 / 202
Version history: 1 change(s)
Referenced in: [show references]