Skip to content

Conversation

@salamhha
Copy link

@salamhha salamhha commented Jun 6, 2019

No description provided.

@lintr-bot
Copy link

R/fluffy.R:71:18: style: Put spaces around all infix operators.

res <- (x* factRecursion(x-1))
                ~^

R/fluffy.R:71:35: style: Put spaces around all infix operators.

res <- (x* factRecursion(x-1))
                                 ~^~

randomNumber <- function(a, b) {
# write your code here
res <- NULL
res <- runif(1, a, b)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

runif returns floats. Use sample here

factMemoiz <- function(x) {
# write your code here
res <- NULL
return(res)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create a look up table here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants