Skip to content

Conversation

@renataestes
Copy link
Owner

Checkpoint Rubric

This is the rubric that your instructor will use to grade your checkpoints. Please do not edit.

Checkpoint 1

  • All tests passed: 40 points
  • Proper use of documentation (commenting on code): 15 points
  • Properly indented code: 15 points
  • Demonstrated effective use of JavaScript: 30 points

Checkpoint 2

  • The application works as it should: 40 points
  • Proper use of documentation (commenting on code): 15 points
  • Properly indented code: 15 points
  • Demonstrated effective use of JavaScript and the DOM API: 30 points

Checkpoint 3

  • Use of React: 25 points
  • Accesses an API: 25 points
  • Proper use of documentation (commenting on code): 25 points
  • The application functions as it should: 25 points

Copy link

@reneemeyer reneemeyer left a comment

Choose a reason for hiding this comment

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

Renata, good job on your JS methodology, I can kind of see where you're coming from, however I would like to see some more comments in your code, with these types of functions other developers are going to need a road map to understand what's going on. Please put in at least 5 comments describing your code and turn bubbleSort into a recursive function. Thanks!

var temp = arr[j-1];
arr[j-1] = arr[j];
arr[j] = temp;
}

Choose a reason for hiding this comment

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

Renata, I see where your going here, however, I would like for you to avoid using two loops and use a recursive function instead.

right =arr.slice(mid);
//send left and right to the mergeSort to broke it down into pieces
//then merge those
return merge(mergeSort(left),mergeSort(right));

Choose a reason for hiding this comment

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

very nice

function mergeSort(arr) {
// Your code here
function merge(left, right){
var result = [],

Choose a reason for hiding this comment

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

don't use var

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