Skip to content

Nikolai Romanov | oct2025-3 | Complexity | Sprint 1 | Analyse and Refactor Functions#1

Open
kolya-rm wants to merge 9 commits into
mainfrom
coursework/analyse-and-refactor-functions
Open

Nikolai Romanov | oct2025-3 | Complexity | Sprint 1 | Analyse and Refactor Functions#1
kolya-rm wants to merge 9 commits into
mainfrom
coursework/analyse-and-refactor-functions

Conversation

@kolya-rm

@kolya-rm kolya-rm commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Analysed, described, calculated the time and space complexity, then refactored functions to decrease the time complexity for functions which:

  • calculates the sum and product of integers in a list;
  • finds common items between two arrays;
  • finds if there is a pair of numbers that sum to a target value;
  • removes duplicate values from a sequence, preserving the order of the first occurrence of each value;
    implemented in JavaScript and Python.

Questions

kolya-rm added 9 commits June 7, 2026 14:02
…ers in a list function in javascript. Refactored to unite calculations in an one loop to reduce the execution time.
…two arrays. Refactored code to reduce the time complexity of the function.
…pair of numbers in list that give target value.

Refactored function to decrease the time complexity.
…cate values form sequence. Refactored the given function to reduce its time complexity.
…rving the order of the first occurrence of each value implemented in Python.
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.

1 participant