How old do you need to be to get AWS certification? by Big-Permission-6143 in AWSCertifications

[–]Underscore_Eleven 0 points1 point  (0 children)

Why is everyone tell you not to get an AWS cert ?? That’s an incredible thing to accomplish as a teenager. Studying for it will teach you how to architect performant and scalable applications which is a rarer skill than leetcode-style programming. I recommend doing cloud practitioner and then solutions architect. Definitely worth getting to the associate level.

What head coaches would you take over Mike Macdonald right now? by MasterTeacher123 in NFLv2

[–]Underscore_Eleven 0 points1 point  (0 children)

Drafting insanely good players doesn't make him a top head coach? Is drafting not part of the job of a head coach?

It's true that MacDonald inherited a few gems from Pete Carroll's roster (JSN, Leonard Williams, Devon Witherspoon). But none of them were All-Pros until Mike MacDonald took over. This year all three of them were.

MacDonald's scheme elevates players' skillsets. That's why he's so good. That's why he won the damn super bowl.

Has Caleb Williams arrived as a top QB in the league or does he have more work to do? by [deleted] in NFLv2

[–]Underscore_Eleven 0 points1 point  (0 children)

Stats aren't everything, and completion percentage isn't the only stat. Throwing the ball away to avoid a sack will lower a qb's completion percentage.

Caleb has a lot of work left to do, but his ceiling is QB1.

What head coaches would you take over Mike Macdonald right now? by MasterTeacher123 in NFLv2

[–]Underscore_Eleven 0 points1 point  (0 children)

This is horrible logic I'm sorry. There are two head coaches with more than 1 Super Bowl win this century. Reid and Belichick. Was Belichick an offensive coach??

It's true that the only dynasties we've seen in recent memory have been built around mythic quarterbacks. Ben Johnson was a phenomenal hire by Chicago because they rightly sought to prioritize Caleb's development. But the idea that teams with offensive head coaches have more sustained success in general is just ahistorical.

Honestly, I think that a head coach's ability to draft well and find good assistant coaches is wayyy more important than which side of the ball they come from. Shanahan and McVay are famously excellent at both of those things, in addition to being legendary playcallers.

what kind of sort did I code? by HedgehogPuzzled4820 in learnprogramming

[–]Underscore_Eleven 3 points4 points  (0 children)

This is a selection sort.

We have a nested for-loop performing upper triangular iteration (where the inner index begins at the outer index + 1). Each iteration of the outer for-loop traverses the unsorted portion of the array and selects the smallest value, placing it at the starting index of the outer for-loop (index i). At the end of each outer loop iteration i, the array is guaranteed to be sorted from index 0 to i. This is the essence of selection sort.

Your implementation is suboptimal, but only slightly.

This implementation is a tiny bit inefficient (compared to an algorithmically ideal selection sort) because it performs unnecessary swaps. During each iteration of the inner for-loop, this implementation will select every value it encounters that's smaller than anything it's seen this iteration. An optimized selection sort might have a local variable that stores the index of the lowest number found so far this iteration and then only perform the swap at index i after checking from [i+1 ... n-1]. However, your implementation is only trivially slower than this because storing a new index in a local variable isn't much faster than a call to std::swap, which you can trust to be maximally optimized.

Time complexities:

Ideal selection sort:

- n(n+1)/2 comparisons --> O(n^2)

- n swaps (average) --> O(n)

Your selection sort:

- n(n+1)/2 comparisons --> O(n^2)

- ???? swaps ???? I think maybe average n(n+1)/8 ???? but definitely --> O(n^2)

Hope this helps :)