Skip to content

fix(curriculum): improve data structures review content in js cert - #71620

Closed
ShakilUrRehman21 wants to merge 1 commit into
freeCodeCamp:mainfrom
ShakilUrRehman21:fix/improve-js-data-structures-review
Closed

ShakilUrRehman21 wants to merge 1 commit into
freeCodeCamp:mainfrom
ShakilUrRehman21:fix/improve-js-data-structures-review

Conversation

@ShakilUrRehman21

@ShakilUrRehman21 ShakilUrRehman21 commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Checklist:

Description

Improves the JavaScript Data Structures Review challenge (review-data-structures-js) by aligning it with the concepts taught in the Working with Common Data Structures JavaScript lecture module, mirroring the content improvements made in #71543:

  • Clarified Big O notation as an asymptotic upper bound on resource usage, distinguishing the bound from the choice of best, average, or worst-case scenarios.
  • Distinguished Merge Sort's O(n log n) worst-case from Quick Sort's O(n log n) average-case and O(n²) worst-case complexity.
  • Added explanations for O(2ⁿ) exponential and O(n!) factorial time and space complexities.
  • Expanded the problem-solving section to include algorithm and data structure selection, implementation, and testing/refinement.
  • Clarified static array contiguous memory and O(1) indexed access, noting that JavaScript arrays are dynamic by default.
  • Added auxiliary space complexities for dynamic arrays, stacks, queues, and singly linked lists.
  • Clarified abstract queue dequeue O(1) time complexity versus JavaScript array .shift() O(n) re-indexing cost.
  • Added tail reference explanation for doubly linked lists.

Fixes #71691

@ShakilUrRehman21
ShakilUrRehman21 requested a review from a team as a code owner November 8, 2026 12:01
@github-actions github-actions Bot added the scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. label Nov 8, 2026
@majestic-owl448 majestic-owl448 added the js v9 cert This is for the JS V9 certification. label Nov 13, 2026
- Clarify Big O notation as an asymptotic upper bound separate from best/average/worst-case scenarios.
- Add average-case and worst-case qualifications to Quick Sort time complexity.
- Add O(2^n) exponential and O(n!) factorial time and space complexities.
- Expand problem-solving techniques to include algorithm & data structure selection, implementation, and refinement.
- Clarify static array contiguous memory and constant-time indexed access, noting JavaScript arrays are dynamic.
- Add auxiliary space complexities for dynamic arrays, stacks, queues, and linked lists.
- Clarify dequeue time complexity and JavaScript array shift overhead.
@ShakilUrRehman21
ShakilUrRehman21 force-pushed the fix/improve-js-data-structures-review branch from 190edae to a996a38 Compare November 17, 2026 08:32
@huyenltnguyen

Copy link
Copy Markdown
Member

Hi there, thank you for your interest in contributing.

However, the linked issue hasn't been triaged yet, so I'm closing this PR to keep the queue manageable.

Feel free to open a new PR once consensus has been reached and the issue is marked as ready for contribution.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

js v9 cert This is for the JS V9 certification. scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[JS v9] Data Structures Review: clarify Big O bounds, sorting cases, and auxiliary space

3 participants