Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
50f9383
renamed A* -> A-Star
Anamaya1729 Oct 11, 2022
34eb524
final commit
Anamaya1729 Oct 11, 2022
c050b9a
added linear search solution
Oct 11, 2022
e4091ab
Merge pull request #15 from Manish589/main
Anamaya1729 Oct 11, 2022
cb905d2
correction in testcases
Anamaya1729 Oct 11, 2022
83ee0b1
Merge branch testcases
Anamaya1729 Oct 11, 2022
c7f82db
correction in testcases
Anamaya1729 Oct 11, 2022
fa5c140
correction in testcases
Anamaya1729 Oct 11, 2022
e45c514
correction in testcases
Anamaya1729 Oct 11, 2022
ce1d544
correction in testcases
Anamaya1729 Oct 11, 2022
3d661dc
added quicksort recursive solution
ShaileshKumar007 Oct 11, 2022
eb85c11
Merge pull request #17 from ShaileshKumar007/quickrec
Anamaya1729 Oct 11, 2022
272b5c8
Fibonacci using recurion...all the test cases passed
infernus01 Oct 13, 2022
6e3de12
change in exception test 3
neutralWire Oct 13, 2022
a77ceee
Merge pull request #1 from GDSC-CEC/main
ashurajpoot2003 Oct 13, 2022
3daa2f5
Solution of Right angle Triangle
ashurajpoot2003 Oct 13, 2022
68571a1
Merge pull request #19 from ashurajpoot2003/main
neutralWire Oct 13, 2022
2f34c0c
Correction in the README
Anamaya1729 Oct 13, 2022
1cf93ab
corrections in readme
Anamaya1729 Oct 13, 2022
aa814bc
correction in readme.
Anamaya1729 Oct 13, 2022
4a8577d
Update README.md
Anamaya1729 Oct 13, 2022
579f23a
correction in readme
Anamaya1729 Oct 13, 2022
764929f
Correction in readme
Anamaya1729 Oct 13, 2022
c243059
Correction in readme
Anamaya1729 Oct 13, 2022
b5ac4cf
correction in readme
Anamaya1729 Oct 13, 2022
0b7d2c4
correction in readme
Anamaya1729 Oct 13, 2022
0bd2fb9
correction in readme
Anamaya1729 Oct 13, 2022
a7b62b3
Correction in readme
Anamaya1729 Oct 13, 2022
763b0a1
Correction in readme
Anamaya1729 Oct 13, 2022
52f57c7
Correction in readme
Anamaya1729 Oct 13, 2022
d846aaf
Correction in readme
Anamaya1729 Oct 13, 2022
058c541
Correction in readme
Anamaya1729 Oct 13, 2022
9572184
Correction in readme
Anamaya1729 Oct 13, 2022
b85ae29
Correction in readme
Anamaya1729 Oct 13, 2022
7900320
Correction in readme
Anamaya1729 Oct 13, 2022
c29d0f6
Correction in readme
Anamaya1729 Oct 13, 2022
874adba
Correction in readme
Anamaya1729 Oct 13, 2022
52201a0
Correction in readme
Anamaya1729 Oct 13, 2022
439d6a7
Correction in readme
Anamaya1729 Oct 13, 2022
8dd8d26
Correction in readme
Anamaya1729 Oct 13, 2022
9097e9c
correction in readme
Anamaya1729 Oct 13, 2022
e27af09
Correction in readme
Anamaya1729 Oct 13, 2022
139d48d
Correction in readme
Anamaya1729 Oct 13, 2022
d6ba4af
Correction in readme
Anamaya1729 Oct 13, 2022
4e0cd39
Correction in readme
Anamaya1729 Oct 13, 2022
acc42a0
Correction in readme
Anamaya1729 Oct 13, 2022
7d71023
Correction in readme
Anamaya1729 Oct 13, 2022
bb979c9
Correction in readme
Anamaya1729 Oct 13, 2022
9f902f2
Correction in readme
Anamaya1729 Oct 13, 2022
bc2ebae
Correction in readme
Anamaya1729 Oct 13, 2022
1bc6b57
Correction in readme
Anamaya1729 Oct 13, 2022
92891b0
Correction in readme
Anamaya1729 Oct 13, 2022
0f50b65
Correction in readme
Anamaya1729 Oct 13, 2022
c4655bb
Correction in tests
Anamaya1729 Oct 13, 2022
44cffd9
Correction in tests
Anamaya1729 Oct 13, 2022
a1d84a9
Correction in readme
Anamaya1729 Oct 13, 2022
6fdd9f6
Correction in readme
Anamaya1729 Oct 13, 2022
4b7d0af
Correction in readme
Anamaya1729 Oct 13, 2022
5e8697f
Correction in tests
Anamaya1729 Oct 13, 2022
890c1c9
Correction in tests
Anamaya1729 Oct 13, 2022
72c40cd
Correction in tests
Anamaya1729 Oct 13, 2022
c902bc5
Correction in tests
Anamaya1729 Oct 13, 2022
9f3ec54
Correction in tests
Anamaya1729 Oct 13, 2022
4c49e5e
Correction in tests
Anamaya1729 Oct 13, 2022
17ae8f0
Correction in tests
Anamaya1729 Oct 13, 2022
016385d
update solution.py
infernus01stronger Oct 13, 2022
8d098f6
Merge pull request #18 from infernus01stronger/fibRecursion
Anamaya1729 Oct 13, 2022
4ea5b95
Update solution.py
Shubhang-2111 Oct 13, 2022
8586e0e
Delete solution.py
Shubhang-2111 Oct 13, 2022
a5b6db9
Create solution.py
Shubhang-2111 Oct 13, 2022
97c8933
added sum of digits solution
Shubhang-2111 Oct 14, 2022
69fd026
Merge branch 'main' into shubhang
Anamaya1729 Oct 14, 2022
b5066e5
Merge pull request #22 from Shubhang-2111/shubhang
Anamaya1729 Oct 14, 2022
d25bb94
recursive binary search
SakshamSharma07 Oct 14, 2022
256f129
update test.py
SakshamSharma07 Oct 14, 2022
e3bf76a
bubble_sort_recursion implementation.
Oct 14, 2022
900e131
Merge pull request #1 from adricasi/bubble_sort_recursion
adricasi Oct 14, 2022
b0ed235
Merge pull request #27 from adricasi/main
Anamaya1729 Oct 15, 2022
49c8592
solution.py
SakshamSharma07 Oct 16, 2022
06b7785
Merge pull request #32 from SakshamSharma07/saksham
neutralWire Oct 16, 2022
868de0f
Revert "solution for pattern printing with numbers"
ShaileshKumar007 Oct 16, 2022
fce35bf
Merge pull request #35 from GDSC-CEC/revert-32-saksham
ShaileshKumar007 Oct 16, 2022
92c914d
commit in normal test 3
neutralWire Oct 17, 2022
490903d
Solution for Inverted Right Angle Triangle Problem
neutralWire Oct 17, 2022
60eb5c1
Merge pull request #38 from saloni1202/saloni
neutralWire Oct 17, 2022
41d94ac
commit in test cases
neutralWire Oct 17, 2022
faf57fe
solution for inverted right angled triangle with numbers
srishti309 Oct 17, 2022
59ba47f
Merge pull request #39 from srishti2002649/abc3
Anamaya1729 Oct 17, 2022
0c0e41a
Revert "Solution for inverted right angled triangle with numbers"
Anamaya1729 Oct 17, 2022
3c63728
Merge pull request #40 from GDSC-CEC/revert-39-abc3
Anamaya1729 Oct 17, 2022
46ef122
solution for inverted right angled triangle with number
srishti309 Oct 18, 2022
0842021
Merge pull request #44 from srishti309/abc5
neutralWire Oct 18, 2022
a7e8c23
added solution.py for palindrome recursion
ahmadsyafrudin Oct 18, 2022
f5738ef
updated the file easy/sum_of_n_numbers/solution.py
Abhishek-00 Oct 18, 2022
c803d00
Merge pull request #46 from Abhishek-00/sum
neutralWire Oct 18, 2022
8cd4496
Merge pull request #45 from ahmadsyafrudin/feature/palindrome_recursion
Anamaya1729 Oct 18, 2022
68394a7
added linear regression implementation from scratch
Anamaya1729 Oct 18, 2022
5ff5d1f
Merge pull request #47 from Anamaya1729/main
ShaileshKumar007 Oct 18, 2022
4997d80
Update solution.py
Suhas2002 Oct 25, 2022
6a4da25
Update solution.py
Suhas2002 Oct 25, 2022
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@

[![Open Source Love](https://firstcontributions.github.io/open-source-badges/badges/open-source-v1/open-source.svg)](https://github.com/GDSC-CEC)


Hacktoberfest is a month-long celebration of open source software run by DigitalOcean in partnership with GitHub and Twilio. Hacktoberfest is open to everyone in our global community! Four quality pull requests must be submitted to public GitHub repositories. You can sign up anytime between October 1 and October 31.

This repo is aimed at people who are new to open-source, earn and learn from that experience.

### Goal of this repository
There are many repositories on GitHub that contain a collection of algorithms and data structures in different programming languages. The goal of this repository is to provide a collection of algorithms and data structures in Python. Aim of this repository is to become a one-stop repository for all the algorithms and data structures in Python.
Code should be well documented and easy to understand. The algorithms and data structures should be implemented according to the style guide mentioned below.
Expand All @@ -32,7 +33,6 @@ Please read [CONTRIBUTING.md](/CONTRIBUTING.md) and [CODE_OF_CONDUCT.md](/CODE_O
### Rules

* There are total 70 problems open for contribution.
* Pull Requests are accepted on **First Come First Serve Basis**.
* Once Pull Request is accepted on one problem, no other pull request will be reviewed on the that problem. Please try to contribute on other problem if any pull request is already merged.
* Read the [CONTRIBUTING.md](/CONTRIBUTING.md) file.
* Respect people.
Expand Down
2 changes: 1 addition & 1 deletion easy/binary_search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Write a program to implement Binary Search in Python.

### Input Format
Create a function with name binary_search that takes a list and an integer as arguments and returns the index of the integer in the list if it exists, else return -1. If invalid input is entered, return -1.
Create a function with name solution that takes a list and an integer as arguments and returns the index of the integer in the list if it exists, else return -1. If invalid input is entered, return -1.

### Output Format
Return an integer denoting the index of the integer in the list if it exists, else return -1.
Expand Down
4 changes: 2 additions & 2 deletions easy/binary_search_recursion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Write a program to implement Binary Search in Python.

### Input Format
Create a function with name binary_search that takes a list and an integer as arguments and returns the index of the integer in the list if it exists, else return -1. If invalid input is entered, return -1.
Create a function with name solution that takes a list and an integer as arguments and returns the index of the integer in the list if it exists, else return -1. If invalid input is entered, return -1.

### Output Format
Return an integer denoting the index of the integer in the list if it exists, else return -1.
Expand Down Expand Up @@ -48,4 +48,4 @@ If all test cases pass, your solution will be merged with the main branch. If yo
## License
**This project is licensed under the GNU GENERAL PUBLIC License - see the [LICENSE](../../LICENSE) file for details**

## Happy Coding! :smile:
## Happy Coding! :smile:
4 changes: 2 additions & 2 deletions easy/binary_to_decimal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Write a program to convert a binary number to decimal in Python.

### Input Format
Create a function with name binary_to_decimal that takes a binary number as an argument and returns the decimal equivalent of the binary number. If invalid input is entered, return -1.
Create a function with name solution that takes a binary number as an argument and returns the decimal equivalent of the binary number. If invalid input is entered, return -1.

### Output Format
Return an integer denoting the decimal equivalent of the binary number.
Expand Down Expand Up @@ -47,4 +47,4 @@ If all test cases pass, your solution will be merged with the main branch. If yo
## License
**This project is licensed under the GNU GENERAL PUBLIC License - see the [LICENSE](../../LICENSE) file for details**

## Happy Coding! :smile:
## Happy Coding! :smile:
2 changes: 1 addition & 1 deletion easy/binary_to_decimal/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ def test_binary_to_decimal_test_j(self):


if __name__ == "__main__":
unittest.main()
utility.main()
4 changes: 2 additions & 2 deletions easy/bubble_sort/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Write a program to sort a list of numbers in ascending order using Bubble Sort in Python.

### Input Format
Create a function with name bubble_sort that takes a list of numbers as an argument and returns the sorted list of numbers. If invalid input is entered, return empty list.
Create a function with name solution that takes a list of numbers as an argument and returns the sorted list of numbers. If invalid input is entered, return empty list.

### Output Format
Return a list of numbers in ascending order.
Expand Down Expand Up @@ -46,4 +46,4 @@ If all test cases pass, your solution will be merged with the main branch. If yo
## License
**This project is licensed under the GNU GENERAL PUBLIC License - see the [LICENSE](../../LICENSE) file for details**

## Happy Coding! :smile:
## Happy Coding! :smile:
2 changes: 1 addition & 1 deletion easy/bubble_sort/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ def test_bubble_sort_test_k(self):


if __name__ == "__main__":
unittest.main()
utility.main()
4 changes: 2 additions & 2 deletions easy/bubble_sort_recursion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Write a program to sort a list of numbers in ascending order using Bubble Sort in Python.

### Input Format
Create a function with name bubble_sort that takes a list of numbers as an argument and returns the sorted list of numbers. If invalid input is entered, return empty list.
Create a function with name solution that takes a list of numbers as an argument and returns the sorted list of numbers. If invalid input is entered, return empty list.

### Output Format
Return a list of numbers in ascending order.
Expand Down Expand Up @@ -46,4 +46,4 @@ If all test cases pass, your solution will be merged with the main branch. If yo
## License
**This project is licensed under the GNU GENERAL PUBLIC License - see the [LICENSE](../../LICENSE) file for details**

## Happy Coding! :smile:
## Happy Coding! :smile:
25 changes: 23 additions & 2 deletions easy/bubble_sort_recursion/solution.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,23 @@
def solution():
pass
def solution(list_of_nums = []):
return bubble_sort(list_of_nums)

def bubble_sort(list_of_nums):
# Check if it is a valid input.
if not list_of_nums or not isinstance(list_of_nums, list):
# If not a valid input return empty list.
return []

# Return bubble sort recursive solution
return recursive_sort(list_of_nums, len(list_of_nums))

def recursive_sort(list_of_nums, len):
# Basic case.
if len == 1:
return list_of_nums

# Order sublist.
for i in range(len-1):
if list_of_nums[i] > list_of_nums[i+1]:
list_of_nums[i], list_of_nums[i+1] = list_of_nums[i+1], list_of_nums[i]

return recursive_sort(list_of_nums, len-1)
2 changes: 1 addition & 1 deletion easy/bubble_sort_recursion/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ def test_bubble_sort_test_k(self):


if __name__ == "__main__":
unittest.main()
utility.main()
4 changes: 2 additions & 2 deletions easy/calculator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Write a program to create a calculator in Python.

### Input Format
Create a function with name calculator that takes two numbers and an operator as arguments and returns the result of the operation. If invalid input is entered, return -1.
Create a function with name solution that takes two numbers and an operator as arguments and returns the result of the operation. If invalid input is entered, return -1.

### Output Format
Return the result of the operation.
Expand Down Expand Up @@ -51,4 +51,4 @@ If all test cases pass, your solution will be merged with the main branch. If yo
## License
**This project is licensed under the GNU GENERAL PUBLIC License - see the [LICENSE](../../LICENSE) file for details**

## Happy Coding! :smile:
## Happy Coding! :smile:
27 changes: 25 additions & 2 deletions easy/calculator/solution.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,25 @@
def solution():
pass
def solution(num1, num2, op =""):
if(op == "+"):
n1 = str(num1)
n2 = str(num2)
if not n1.isdigit() and not n2.isdigit():
return -1
else:
calc = num1 + num2
return calc
elif(op == "-"):
calc = num1 - num2
return calc
elif(op == "*"):
calc = num1 * num2
return calc
elif(op == "/"):
if(num2 == 0):
return -1
else:
calc = num1 / num2
return calc
else:
return -1


2 changes: 1 addition & 1 deletion easy/calculator/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ def test_calculator_test_h(self):
self.assertEqual(solution(1, 1), -1, "Test 8 Failed")

if __name__ == "__main__":
unittest.main()
utility.main()
4 changes: 2 additions & 2 deletions easy/decimal_to_binary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Write a function that takes a decimal number as an argument and returns the binary equivalent of that number.

#### Input Format
Create a function with name answer that takes an integer n as an argument and returns the binary equivalent of that number.
Create a function with name solution that takes an integer n as an argument and returns the binary equivalent of that number.

#### Output Format
Return a integer denoting the binary equivalent of the decimal number. If invalid input is entered, return 0.
Expand Down Expand Up @@ -47,4 +47,4 @@ If all test cases pass, your solution will be merged with the main branch. If yo
## License
**This project is licensed under the GNU GENERAL PUBLIC License - see the [LICENSE](../../LICENSE) file for details**

## Happy Coding! :smile:
## Happy Coding! :smile:
6 changes: 3 additions & 3 deletions easy/diamond_pattern/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Write a function that takes a number n as an argument and prints a diamond pattern of height n.

#### Input Format
Create a function with name answer that takes an integer n as an argument and prints a diamond pattern of height n. n should be an odd number and greater than 1. If n is even, return -1.
Create a function with name solution that takes an integer n as an argument and prints a diamond pattern of height n. n should be an odd number and greater than 1. If n is even, return -1.

#### Output Format
Print a diamond pattern of height n. If invalid input is entered, return -1.
Expand Down Expand Up @@ -41,7 +41,7 @@ The diamond pattern of height 9 is:
*****
***
*
```
```
- The first line contains 8 spaces and 1 star.
- The second line contains 7 spaces and 3 stars.
- The third line contains 6 spaces and 5 stars.
Expand Down Expand Up @@ -77,4 +77,4 @@ If all test cases pass, your solution will be merged with the main branch. If yo
## License
**This project is licensed under the GNU GENERAL PUBLIC License - see the [LICENSE](../../LICENSE) file for details**

## Happy Coding! :smile:
## Happy Coding! :smile:
4 changes: 2 additions & 2 deletions easy/factorial_iterative/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Write a function that takes a number n as an argument and returns the factorial of that number.

#### Input Format
Create a function with name answer that takes an integer n as an argument and returns the factorial of that number.
Create a function with name solution that takes an integer n as an argument and returns the factorial of that number.

#### Output Format
Return a integer denoting the factorial of the number. If invalid input is entered, return -1.
Expand Down Expand Up @@ -47,4 +47,4 @@ If all test cases pass, your solution will be merged with the main branch. If yo
## License
**This project is licensed under the GNU GENERAL PUBLIC License - see the [LICENSE](../../LICENSE) file for details**

## Happy Coding! :smile:
## Happy Coding! :smile:
4 changes: 2 additions & 2 deletions easy/factorial_recursion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Write a function that takes a number n as an argument and returns the factorial of that number.

#### Input Format
Create a function with name answer that takes an integer n as an argument and returns the factorial of that number.
Create a function with name solution that takes an integer n as an argument and returns the factorial of that number.

#### Output Format
Return a integer denoting the factorial of the number. If invalid input is entered, return -1.
Expand Down Expand Up @@ -47,4 +47,4 @@ If all test cases pass, your solution will be merged with the main branch. If yo
## License
**This project is licensed under the GNU GENERAL PUBLIC License - see the [LICENSE](../../LICENSE) file for details**

## Happy Coding! :smile:
## Happy Coding! :smile:
4 changes: 2 additions & 2 deletions easy/fibonacci_iterative/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Write a function that takes a number n as an argument and returns the nth Fibonacci number.

#### Input Format
Create a function with name answer that takes an integer n as an argument and returns the nth Fibonacci number.
Create a function with name solution that takes an integer n as an argument and returns the nth Fibonacci number.

#### Output Format
Return a integer denoting the nth Fibonacci number. If invalid input is entered, return -1.
Expand Down Expand Up @@ -47,4 +47,4 @@ If all test cases pass, your solution will be merged with the main branch. If yo
## License
**This project is licensed under the GNU GENERAL PUBLIC License - see the [LICENSE](../../LICENSE) file for details**

## Happy Coding! :smile:
## Happy Coding! :smile:
4 changes: 2 additions & 2 deletions easy/fibonacci_recursion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Write a function that takes a number n as an argument and returns the nth Fibonacci number.

#### Input Format
Create a function with name answer that takes an integer n as an argument and returns the nth Fibonacci number.
Create a function with name solution that takes an integer n as an argument and returns the nth Fibonacci number.

#### Output Format
Return a integer denoting the nth Fibonacci number. If invalid input is entered, return -1.
Expand Down Expand Up @@ -47,4 +47,4 @@ If all test cases pass, your solution will be merged with the main branch. If yo
## License
**This project is licensed under the GNU GENERAL PUBLIC License - see the [LICENSE](../../LICENSE) file for details**

## Happy Coding! :smile:
## Happy Coding! :smile:
9 changes: 7 additions & 2 deletions easy/fibonacci_recursion/solution.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
def solution():
pass
def solution(*args):
if len(args)==0:
return -1

if args[0]<=1:
return args[0]
return solution(args[0]-1)+solution(args[0]-2)
4 changes: 2 additions & 2 deletions easy/half_diamond_pattern/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Write a function that takes a number n as an argument and prints a half diamond star pattern of height n.

#### Input Format
Create a function with name answer that takes an integer n as an argument and prints a half diamond star pattern of height n. n should be odd and greater than 1.
Create a function with name solution that takes an integer n as an argument and prints a half diamond star pattern of height n. n should be odd and greater than 1.

#### Output Format
Print a half diamond star pattern of height n. If invalid input is entered, return -1.
Expand Down Expand Up @@ -55,4 +55,4 @@ If all test cases pass, your solution will be merged with the main branch. If yo
## License
**This project is licensed under the GNU GENERAL PUBLIC License - see the [LICENSE](../../LICENSE) file for details**

## Happy Coding! :smile:
## Happy Coding! :smile:
4 changes: 2 additions & 2 deletions easy/half_pyramid_pattern/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Write a function that takes a number n as an argument and prints a half pyramid star pattern of height n.

#### Input Format
Create a function with name answer that takes an integer n as an argument and prints a half pyramid star pattern of height n.
Create a function with name solution that takes an integer n as an argument and prints a half pyramid star pattern of height n.

#### Output Format
Print a half pyramid star pattern of height n. If invalid input is entered, return -1.
Expand Down Expand Up @@ -51,4 +51,4 @@ If all test cases pass, your solution will be merged with the main branch. If yo
## License
**This project is licensed under the GNU GENERAL PUBLIC License - see the [LICENSE](../../LICENSE) file for details**

## Happy Coding! :smile:
## Happy Coding! :smile:
4 changes: 2 additions & 2 deletions easy/hourglass_pattern/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Write a function that takes a number n as an argument and prints an hourglass star pattern of height n.

#### Input Format
Create a function with name answer that takes an integer n as an argument and prints an hourglass star pattern of height n. n should be odd and greater than 1.
Create a function with name solution that takes an integer n as an argument and prints an hourglass star pattern of height n. n should be odd and greater than 1.

#### Output Format
Print an hourglass star pattern of height n. If invalid input is entered, return -1.
Expand Down Expand Up @@ -51,4 +51,4 @@ If all test cases pass, your solution will be merged with the main branch. If yo
## License
**This project is licensed under the GNU GENERAL PUBLIC License - see the [LICENSE](../../LICENSE) file for details**

## Happy Coding! :smile:
## Happy Coding! :smile:
4 changes: 2 additions & 2 deletions easy/insertion_sort/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Write a function that takes a list as an argument and sorts it using the insertion sort algorithm.

#### Input Format
Create a function with name answer that takes a list as an argument and sorts it using the insertion sort algorithm.
Create a function with name solution that takes a list as an argument and sorts it using the insertion sort algorithm.

#### Output Format
Return the sorted list. If invalid input is entered, return [].
Expand Down Expand Up @@ -48,4 +48,4 @@ If all test cases pass, your solution will be merged with the main branch. If yo
## License
**This project is licensed under the GNU GENERAL PUBLIC License - see the [LICENSE](../../LICENSE) file for details**

## Happy Coding! :smile:
## Happy Coding! :smile:
4 changes: 2 additions & 2 deletions easy/insertion_sort_recursion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Write a function that takes a list as an argument and sorts it using the insertion sort algorithm.

#### Input Format
Create a function with name answer that takes a list as an argument and sorts it using the insertion sort algorithm.
Create a function with name solution that takes a list as an argument and sorts it using the insertion sort algorithm.

#### Output Format
Return the sorted list. If invalid input is entered, return [].
Expand Down Expand Up @@ -48,4 +48,4 @@ If all test cases pass, your solution will be merged with the main branch. If yo
## License
**This project is licensed under the GNU GENERAL PUBLIC License - see the [LICENSE](../../LICENSE) file for details**

## Happy Coding! :smile:
## Happy Coding! :smile:
4 changes: 2 additions & 2 deletions easy/inverted_half_pyramid_pattern/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#### Problem Statement
Write a function that takes a number n as an argument and prints a inverted half pyramid star pattern of height n.

#### Input Format
Create a function with name answer that takes an integer n as an argument and prints a half pyramid star pattern of height n.
#### Input Format
Create a function with name solution that takes an integer n as an argument and prints a half pyramid star pattern of height n.

#### Output Format
Print a inverted half pyramid star pattern of height n. If invalid input is entered, return -1.
Expand Down
Loading