Bitcoin Forum
May 08, 2024, 04:09:20 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: [1]
  Print  
Author Topic: JAVA+MATH EXAM [PAYING BTC]  (Read 618 times)
maybach1980 (OP)
Member
**
Offline Offline

Activity: 90
Merit: 10

<<<<>>>>>><<<


View Profile
October 18, 2016, 03:11:56 AM
 #1

Have an exam who need skills on math and java
if anyone is good at them please pm me your skype

example of a question :
Quote
The Fibonacci sequence of numbers is 1, 1, 2, 3, 5, 8, 13, 21, 34, ... The first and second numbers are 1 and after that ni = ni-2 + ni-1, e.g., 34 = 13 + 21. A number in the sequence is called a Fibonacci number. Write a method with signature int closestFibonacci(int n) which returns the largest Fibonacci number that is less than or equal to its argument. For example, closestFibonacci(12) returns 8 because 8 is the largest Fibonacci number less than 12 and closestFibonacci(33) returns 21 because 21 is the largest Fibonacci number that is <= 33. closestFibonacci(34) should return 34. If the argument is less than 1 return 0. Your solution must not use recursion because unless you cache the Fibonacci numbers as you find them, the recursive solution recomputes the same Fibonacci number many times.

PM me skype/whatever im you use.... + your price

xxx
1715184560
Hero Member
*
Offline Offline

Posts: 1715184560

View Profile Personal Message (Offline)

Ignore
1715184560
Reply with quote  #2

1715184560
Report to moderator
1715184560
Hero Member
*
Offline Offline

Posts: 1715184560

View Profile Personal Message (Offline)

Ignore
1715184560
Reply with quote  #2

1715184560
Report to moderator
1715184560
Hero Member
*
Offline Offline

Posts: 1715184560

View Profile Personal Message (Offline)

Ignore
1715184560
Reply with quote  #2

1715184560
Report to moderator
No Gods or Kings. Only Bitcoin
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715184560
Hero Member
*
Offline Offline

Posts: 1715184560

View Profile Personal Message (Offline)

Ignore
1715184560
Reply with quote  #2

1715184560
Report to moderator
1715184560
Hero Member
*
Offline Offline

Posts: 1715184560

View Profile Personal Message (Offline)

Ignore
1715184560
Reply with quote  #2

1715184560
Report to moderator
maybach1980 (OP)
Member
**
Offline Offline

Activity: 90
Merit: 10

<<<<>>>>>><<<


View Profile
October 18, 2016, 03:26:06 AM
 #2

paying 20$ / btc....

xxx
SummerBliss
Sr. Member
****
Offline Offline

Activity: 910
Merit: 254


View Profile
October 18, 2016, 04:41:03 AM
 #3

Hi, I could try to help you with that. My skype is enilk09. Smiley
Coding Enthusiast
Legendary
*
Offline Offline

Activity: 1039
Merit: 2783


Bitcoin and C♯ Enthusiast


View Profile WWW
October 18, 2016, 05:28:58 AM
Last edit: October 18, 2016, 05:47:05 AM by Coding Enthusiast
 #4

Code written in C♯: https://gist.github.com/Coding-Enthusiast/40bf7e9b7780eaa6b6f07f257acf2fe7
Ways to contact: comment on the gist, or PM me here
Price: Free! Grin

I just did it for fun, and since Java and C♯ are really close.

Some results:
Code:
Number: 0
Closest Fibonachi is: 0

Number: 1
Closest Fibonachi is: 1

Number: 12
Closest Fibonachi is: 8

Number: 33
Closest Fibonachi is: 21

Number: 34
Closest Fibonachi is: 34

Projects List+Suggestion box
Donate: 1Q9s or bc1q
|
|
|
FinderOuter(0.19.1)Ann-git
Denovo(0.7.0)Ann-git
Bitcoin.Net(0.26.0)Ann-git
|
|
|
BitcoinTransactionTool(0.11.0)Ann-git
WatchOnlyBitcoinWallet(3.2.1)Ann-git
SharpPusher(0.12.0)Ann-git
MagicIsMe
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250


Negative trust resolution: index.php?topic=1439270


View Profile
October 18, 2016, 06:43:15 AM
 #5

This seems doable. Similar problems can be seen on Project Euler (which I have experience in), so I'll take a shot at it.

You can contact me via Skype at the username I sent through PM.

maybach1980 (OP)
Member
**
Offline Offline

Activity: 90
Merit: 10

<<<<>>>>>><<<


View Profile
October 18, 2016, 05:15:58 PM
 #6

so far no one said he can do.....

xxx
jambola2
Legendary
*
Offline Offline

Activity: 1120
Merit: 1038


View Profile
October 18, 2016, 11:17:12 PM
Last edit: October 18, 2016, 11:57:11 PM by jambola2
 #7

I'll complete it right now, and I'll post some images of how it looks running.
Send me a PM with what proof of completion you'll need.
Code will be given upon 50% payment with rest of payment after verification.

Completed, proof:



Basic invalid data catching:


No longer active on bitcointalk, however, you can still reach me via PMs if needed.
MagicIsMe
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250


Negative trust resolution: index.php?topic=1439270


View Profile
October 19, 2016, 04:04:06 AM
 #8

so far no one said he can do.....

You still haven't responded on Skype. I sent the code for what you were after to prove I can do this.

fsb4000
Legendary
*
Offline Offline

Activity: 1400
Merit: 1000



View Profile
October 20, 2016, 03:01:51 AM
Last edit: October 20, 2016, 03:19:36 AM by fsb4000
 #9

Code:
int closestFibonacci(int n)
{
    int current = 0;
    int next = 1;
    while (n >= next) {
        long temp = (long)current + (long)next;
        if (temp > 2147483647) {  // 2,147,483,647 - this is maximal int value
            return next;
        }
        current = next;
        next = (int)temp;
    }
    return current;
}
arunka71
Sr. Member
****
Offline Offline

Activity: 410
Merit: 257


View Profile
October 28, 2016, 02:38:07 AM
 #10

http://mathworld.wolfram.com/BinetsFibonacciNumberFormula.html

should be faster?
TriggerX
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000


View Profile
October 28, 2016, 02:44:36 AM
 #11

I am interested in this. I PM'd you my skype. Could you elaborate on what you need to do?

Hi!
bitkng
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
October 28, 2016, 02:55:11 AM
 #12

Iam good at math but not at java
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!