java_fundamentals icon indicating copy to clipboard operation
java_fundamentals copied to clipboard

We need exercises about recursion functions

Open xaca opened this issue 8 years ago • 19 comments

Diffent of fibonacci, and factorial

xaca avatar Sep 28 '17 01:09 xaca

Can I collaborate with recursive binary search function? @xaca

cjlcarvalho avatar Sep 28 '17 02:09 cjlcarvalho

I would like to help you with this. But what is the difficulty you expect?

praveensvsrk avatar Sep 28 '17 02:09 praveensvsrk

@cjlcarvalho Cousrse, also i have a hand with a portuguese translation, take a look to the others issues please.

xaca avatar Sep 28 '17 02:09 xaca

@praveensvsrk Hard, medium, easy. Any level is welcome.

xaca avatar Sep 28 '17 02:09 xaca

I've made a PR with Binary Search algorithm. @xaca

cjlcarvalho avatar Sep 28 '17 03:09 cjlcarvalho

Added code for reversing a linked list recursively @xaca

praveensvsrk avatar Sep 28 '17 03:09 praveensvsrk

@praveensvsrk Good code! thanks!

xaca avatar Sep 28 '17 03:09 xaca

I can add Euclid's algorithm for finding the Greatest Common Divisor between two numbers

jpvg10 avatar Sep 28 '17 04:09 jpvg10

@jpvg95 Claro que si :)

xaca avatar Sep 28 '17 04:09 xaca

@xaca Listo! (Yo hablando en inglés que por mantener la seriedad del asunto jaja)

jpvg10 avatar Sep 28 '17 04:09 jpvg10

@jpvg95 Ok Mr :+1: thanks

xaca avatar Sep 28 '17 04:09 xaca

Hi @xaca I have added codes for :

  1. Reversing a Stack recursively.
  2. Sorting Stack Elements using Recursion.
  3. Counting Nodes in a Linked list using recursion.

mawashicaprio avatar Sep 28 '17 09:09 mawashicaprio

A good problem: The Russian multiplication algorithm in recursive form.

jmlon avatar Sep 29 '17 02:09 jmlon

Other recursive problems:

  • Decimal to binary conversion
  • Decimal to base P conversion

jmlon avatar Sep 29 '17 02:09 jmlon

@xaca , I would like to add tower of hanoi.

ribhav-pahuja avatar Sep 29 '17 08:09 ribhav-pahuja

@xaca i Will do the decimal to binary conversion

matheuscr30 avatar Sep 29 '17 11:09 matheuscr30

@jmlon Wow, we are wating for mr Kaiosama code examples. 👍

xaca avatar Sep 29 '17 20:09 xaca

@matheuscr30 We are ready for your solution

xaca avatar Sep 29 '17 20:09 xaca

@ribhav-pahuja Ok, go, go, go ...

xaca avatar Sep 29 '17 20:09 xaca