Sean Urbassik #5

Open
wants to merge 3 commits into
base: master
from

Conversation

Projects
None yet
2 participants
@surbassik7

surbassik7 commented May 13, 2019

Complete 5
Comfort 3.5

@@ -17,6 +17,8 @@ function wordOccurrence(word, phrase) {
}
```

Linear complexity O(N). depending on the length of each array is how much time the algorithm will need to adjust the the strings to lower case.

This comment has been minimized.

@Zakk
@@ -34,6 +36,8 @@ function bubble_sort(list) {
}
```

Logarithmic complexity O(log(N)). its comparing two list and returning to a certain list

This comment has been minimized.

@Zakk
@@ -46,6 +50,8 @@ function factorial(n) {
}
```

O(N!) the loop will grow until the the algorithm is finished

This comment has been minimized.

@Zakk
@@ -54,6 +60,8 @@ function bobIsFirst(people) {
}
```

Constant complexity O(1). the algorithm will always return bob.

This comment has been minimized.

@Zakk
@@ -70,6 +78,8 @@ function isPalindrome(input) {
}
```

O(log(N)) the algorithm is add and taking away to get the variable to be reversed and the time it would take to solve

This comment has been minimized.

@Zakk
@@ -85,6 +95,8 @@ function sumOfDivisors(n) {
}
```

O(N!) there is an infinate loop that could cause they system to crash

This comment has been minimized.

@Zakk
@@ -100,6 +112,8 @@ function printAllNumbersThenSumPairs(numArray) {
}
```

O(N) this is a two step algorithm which which an array is printed then the pairs are added together, the length of the array dictates the speed at which it cn be completed

This comment has been minimized.

@Zakk
@@ -115,3 +129,5 @@ function isPrime(num) {
return true;
}
```

O(N!) the algorithm will always return false, causing the algorthim to always run

This comment has been minimized.

@Zakk
@Zakk

This comment has been minimized.

Zakk commented May 13, 2019

@surbassik7 You got 3 out of 8. We'll mark this as incomplete for now, giving you a week to resubmit. Please slack Hammad or I when you do so we know to regrade it!

@Zakk Zakk closed this May 13, 2019

@Zakk Zakk reopened this May 13, 2019

@surbassik7

This comment has been minimized.

surbassik7 commented Jun 17, 2019

Stacks and Ques

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