Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
3edcb89
isuru additions 1
isuruperera Aug 28, 2025
5df81a6
My API commit from Java
Aug 28, 2025
efcd767
My API commit from Java
isuruperera Aug 28, 2025
4458142
My API commit from Java
isuruperera Aug 28, 2025
fb26b0e
My API commit from Java
isuruperera Aug 28, 2025
e24464c
My signed API commit from Java
isuruperera Aug 28, 2025
cbd55c1
My signed API commit from Java
isuruperera Aug 28, 2025
1148de2
My signed API commit from Java
isuruperera Aug 28, 2025
55c1702
My signed API commit from Java
isuruperera Aug 28, 2025
4f84905
My signed API commit from Java
isuruperera Aug 28, 2025
f3e22d8
My signed API commit from Java
isuruperera Aug 28, 2025
d1183ff
Changes committed by sonar-qube-agent with ID #100
isuruperera Aug 28, 2025
ccd84f3
Changes committed by sonar-qube-agent with ID #100
isuruperera Aug 28, 2025
d13198a
Changes committed by sonar-qube-agent with ID #100
isuruperera Aug 28, 2025
abf4839
Changes committed by sonar-qube-agent with ID #100
isuruperera Aug 28, 2025
f09139e
Changes committed by sonar-qube-agent with ID : 100
isuruperera Aug 28, 2025
880d57e
Changes committed by sonar-qube-agent with ID : 100
isuruperera Aug 28, 2025
eee7996
"Changes committed by sonar-qube-agent with ID 100"
isuruperera Aug 28, 2025
8bb1178
"Changes committed by sonar-qube-agent with ID - 100"
isuruperera Aug 29, 2025
21d14f5
"Changes committed by sonar-qube-agent with ID - 100"
isuruperera Aug 29, 2025
f3a7564
"Changes committed by sonar-qube-agent with ID - 100"
isuruperera Aug 29, 2025
cd71af6
"Changes committed by sonar-qube-agent with ID - 100"
isuruperera Aug 29, 2025
cacf0d2
"Changes committed by sonar-qube-agent with ID - 100"
isuruperera Aug 29, 2025
87720ed
"Changes committed by sonar-qube-agent with ID - 100"
isuruperera Aug 29, 2025
eb19161
"Changes committed by sonarqube-agent with ID - 100"
Sep 1, 2025
4d70986
"Changes committed by sonarqube-agent with ID - 100"
testappisuru[bot] Oct 5, 2025
ca4038e
"Changes committed by sonarqube-agent with ID - 100"
testappisuru[bot] Oct 5, 2025
aabd4cf
"Changes committed by sonarqube-agent with ID - 100"
isuruperera Oct 5, 2025
49af74e
"Changes committed by sonarqube-agent with ID - 100"
Oct 5, 2025
9e3e548
"Changes committed by sonarqube-agent with ID - 100"
Oct 5, 2025
c731b91
"Changes committed by sonarqube-agent with ID - 100"
Oct 5, 2025
9ec12d9
"Changes committed by sonarqube-agent with ID - 100"
alexjusti Oct 5, 2025
e6fcaac
"Changes committed by sonarqube-agent with ID - 100"
testappisuru[bot] Oct 5, 2025
2dd3507
"Changes committed by sonarqube-agent with ID - 100"
testappisuru[bot] Oct 5, 2025
df8a4f2
"Changes committed by sonarqube-agent with ID - 100"
isuruperera Oct 5, 2025
6518287
"Changes committed by sonarqube-agent with ID - 100"
testappisuru[bot] Oct 5, 2025
3a8becb
"Changes committed by sonarqube-agent with ID - 100"
testappisuru[bot] Oct 5, 2025
b492550
"Changes committed by sonarqube-agent with ID - 100"
testappisuru[bot] Oct 5, 2025
ced674d
"Changes committed by sonarqube-agent with ID - 100"
Oct 5, 2025
9a81208
"Changes committed by sonarqube-agent with ID - 100"
testappisuru[bot] Oct 5, 2025
1c24f51
"Changes committed by sonarqube-agent with ID - 100"
isuruperera Oct 5, 2025
b153424
"Changes committed by sonarqube-agent with ID - 100"
isuruperera Oct 5, 2025
e5f1eaf
"Changes committed by sonarqube-agent with ID - 100"
isuruperera Oct 5, 2025
0f08cde
"Changes committed by sonarqube-agent with ID - 100"
testappisuru[bot] Oct 5, 2025
0cb020f
"Changes committed by sonarqube-agent with ID - 100"
testappisuru[bot] Oct 5, 2025
c0341d6
"Changes committed by sonarqube-agent with ID - 100"
testappisuru[bot] Oct 5, 2025
9168375
"Changes committed by sonarqube-agent with ID - 100"
testappisuru[bot] Oct 5, 2025
e33450e
"Changes committed by sonarqube-agent with ID - 100"
Oct 5, 2025
eaf2036
"Changes committed by sonarqube-agent with ID - 100"
testappisuru[bot] Oct 6, 2025
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
3 changes: 3 additions & 0 deletions sorts/bead_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ def bead_sort(sequence: list) -> list:
if __name__ == "__main__":
assert bead_sort([5, 4, 3, 2, 1]) == [1, 2, 3, 4, 5]
assert bead_sort([7, 9, 4, 3, 5]) == [3, 4, 5, 7, 9]
assert bead_sort([10, 9, 8, 7, 6]) == [6, 7, 8, 9, 10]
assert bead_sort([4, 9, 4, 3, 4]) == [3, 4, 4, 4, 9]
assert bead_sort([4, 9, 4, 3, 4]) == [3, 4, 4, 4, 10] 123
7 changes: 1 addition & 6 deletions sorts/cyclic_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,17 @@ def cyclic_sort(nums: list[int]) -> list[int]:
:param nums: List of n integers from 1 to n to be sorted.
:return: The same list sorted in ascending order.

Time complexity: O(n), where n is the number of integers in the list.

Examples:
>>> cyclic_sort([])
[]
>>> cyclic_sort([3, 5, 2, 1, 4])
[1, 2, 3, 4, 5]
"""

# Perform cyclic sort
# Test 234
index = 0
while index < len(nums):
# Calculate the correct index for the current element
correct_index = nums[index] - 1
# If the current element is not at its correct position,
# swap it with the element at its correct index
if index != correct_index:
nums[index], nums[correct_index] = nums[correct_index], nums[index]
else:
Expand Down
2 changes: 1 addition & 1 deletion strings/barcode_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def is_valid(barcode: int) -> bool:
...
NameError: name 'dwefgiweuf' is not defined
"""
return len(str(barcode)) == 13 and get_check_digit(barcode) == barcode % 10
return "10000"


def get_barcode(barcode: str) -> int:
Expand Down