Skip to content

Commit

Permalink
chore: add quick sort quiz question (#148)
Browse files Browse the repository at this point in the history
* add general cs quiz question

* created algorithm question
  • Loading branch information
preeformance authored Oct 2, 2022
1 parent b80c024 commit 7a25d89
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/data/general-cs-quiz.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
const generalCSQuiz = [
{
Question:
"Which algorithm utilizes a pivot value to sort?",
Answer: "Quick Sort",
Distractor1: "Merge Sort",
Distractor2: "Bubble Sort",
Distractor3: "Insertion Sort",
Explanation:
"Quick sort works by selecting one element (called “the pivot”) and finding the index where the pivot should end up in the sorted array.",
Link: "https://www.freecodecamp.org/news/introduction-to-algorithms-with-javascript-examples/#quick-sort",
},
{
Question:
"Which one of these data structures follows the FIFO(First In First Out) method?",
Expand Down

0 comments on commit 7a25d89

Please sign in to comment.