-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
An improvement on Ficbonacci function using DP #81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
If you feel you can make a better implementation feel free to make a PR |
I do not understand what PR means. If it is a sarcasm feel free not to reply. |
No it is not sarcasm Sorry if you misunderstood PR means Pull Request which means updating the code of the repo with the better approach so that I can merge it in the repository. I have given to link for you to check just in case if you are new to GitHub |
Thank you for your explanation. |
@duongtq This lines are needless for ( let i = 0; i <= n; i++)
{
val[i] = 0;
} Because you used dynamic arrays in javascript. |
val[1] = 1;
val[2] = 2; Begin with index |
I would like to work on this by providing the solution of the Fibonacci sequence from the Brute Force Approach to the Top-Down and Bottom-Up Dynamic Approach. |
can i make a pull request...i can update the code by applying dynamic programming. |
Is this issue still open ? I would like to work on it. |
there is already this function available
if you can improve it or add something new then go for it @Satzyakiz, you are most welcome |
Maybe something like this :
This is nothing new, just avoiding the recursive calls. @itsvinayak |
@Satzyakiz you can make a separate function for this approach in this file and send a PR |
Where should I keep it ? In Algorithms/Dynamic-Programming/ ? |
In same file make a function
Vinayak sharma
9259888898
IERT allahabad
CSE 3rd year
…On Fri, 8 May, 2020, 4:15 PM Satzyakiz, ***@***.***> wrote:
Where should I keep it ? In Algorithms/Dynamic-Programming/ ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#81 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIDL6MUFS2LBGN7MVWNVUXTRQPPFRANCNFSM4GNA3YZQ>
.
|
many new algorithms are added on this topic #159 |
// My code just improves a little
// Feel free to ask me questions
function dp_ficbo(n)
{
var val = [];
for ( let i = 0; i <= n; i++)
{
val[i] = 0;
}
console.log(dp_ficbo(20));
The text was updated successfully, but these errors were encountered: