Skip to content

Squares of a Sorted Array#96

Merged
vbrazo merged 7 commits into
TheAlgorithms:masterfrom
jsca-kwok:jk-sorted-squares
Mar 10, 2021
Merged

Squares of a Sorted Array#96
vbrazo merged 7 commits into
TheAlgorithms:masterfrom
jsca-kwok:jk-sorted-squares

Conversation

@jsca-kwok
Copy link
Copy Markdown
Member

This PR adds 3 approaches to returning an array of sorted squares:

  1. Using .sort method
  2. Bubble sort approach
  3. Two pointers approach

Comment thread data_structures/arrays/sort_squares_of_an_array.rb
Comment thread data_structures/arrays/sort_squares_of_an_array.rb Outdated
Copy link
Copy Markdown
Member

@vbrazo vbrazo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we gitignore the .DS_Store file please?

jsca-kwok and others added 3 commits March 10, 2021 15:02
Co-authored-by: Vitor Oliveira <vbrazo@gmail.com>
Co-authored-by: Vitor Oliveira <vbrazo@gmail.com>
Copy link
Copy Markdown
Member

@vbrazo vbrazo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vbrazo vbrazo merged commit 27d725d into TheAlgorithms:master Mar 10, 2021
@vbrazo vbrazo changed the title Add algorithm for returning sorted squares Squares of a Sorted Array Mar 10, 2021
@jsca-kwok jsca-kwok deleted the jk-sorted-squares branch March 19, 2021 23:03
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.

2 participants