-
Notifications
You must be signed in to change notification settings - Fork 23
lesson07 #330
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
lesson07 #330
Conversation
/** | ||
* Returns an array of the first `n` Fibonacci numbers starting from 1. | ||
* | ||
* @param n The first `n` of Fibonacci values to compute. | ||
* @return An array containing the first `n` Fibonacci values. | ||
*/ | ||
export function getFirstNFibonacciNumbers(n: number): number[] { | ||
return []; | ||
if (n <= 0) return []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix indentation here
|
||
const pivotIndex = Math.floor((start + end) / 2); // The index in the middle of the array. | ||
while (start <= end) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the iterative way to do binary search. Good work doing your research.
/** | ||
* Adds all of the provided values and returns the sum. | ||
* | ||
* @param values The values to sum. | ||
* @return The sum of all the values. | ||
*/ | ||
export function addNumbers(values: number[]): number { | ||
return 0; | ||
let sum= 0; | ||
for (let i = 0; i < values.length; i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix indentation here and everywhere else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the updated .env.test
file as well.
Closing this for now, feel free to re-open and continue work on it for an updated grade. |
Hi Mr. Mays,
This is my lesson07 work. It is not 100% completed. I have a meeting with Jordan this afternoon to go over syntax errors we discussed this morning.