Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

# fixed grammatical errors. (Ex: adjusted articles) #913

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions algorithms/arrays/limit.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# Corrected grammatical errors.
# result -> results, need the -> need to, need value -> need a value, under than 100 -> remove than
# By use this algorithms -> By using this algorithm, specific -> a specific, array -> an array
# of given -> of a given, 'unlimit' -> unlimited
"""
Sometimes you need to limit array result to use. Such as you only need the
value over 10 or, you need value under than 100. By use this algorithms, you
can limit your array to specific value
Sometimes you need to limit array results to use. Such as you only need to
value over 10 or, you need a value under 100. By using this algorithm, you
can limit your array to a specific value

If array, Min, Max value was given, it returns array that contains values of
given array which was larger than Min, and lower than Max. You need to give
'unlimit' to use only Min or Max.
If an array, Min, Max value was given, it returns an array that contains values of
a given array which was larger than Min, and lower than Max. You need to give
'unlimited' to use only Min or Max.

ex) limit([1,2,3,4,5], None, 3) = [1,2,3]

Expand Down