Skip to content

Conversation

@kksaunders251
Copy link
Contributor

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.

*/
export function getFirstNFibonacciNumbers(n: number): number[] {
return [];
if (n <= 0) return [];
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix indentation here

let end = values.length - 1;

const pivotIndex = Math.floor((start + end) / 2); // The index in the middle of the array.
while (start <= end) {
Copy link
Contributor

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.

export function addNumbers(values: number[]): number {
return 0;
let sum= 0;
for (let i = 0; i < values.length; i++) {
Copy link
Contributor

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.

Copy link
Contributor

@anthonydmays anthonydmays left a 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.

@anthonydmays
Copy link
Contributor

Closing this for now, feel free to re-open and continue work on it for an updated grade.

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.

2 participants