From c869ff13392c31580e16b52616f7acd879cbdbf8 Mon Sep 17 00:00:00 2001 From: ncasula01 Date: Mon, 23 Feb 2026 16:15:37 -0500 Subject: [PATCH 1/6] added name to lab_1a --- labs/lab_1/lab_1a.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labs/lab_1/lab_1a.py b/labs/lab_1/lab_1a.py index 9d15ec83..0cc02c45 100644 --- a/labs/lab_1/lab_1a.py +++ b/labs/lab_1/lab_1a.py @@ -8,7 +8,7 @@ def main(): print("Hello World!") - name = "" # TODO: Insert your name between the double quotes + name = "Neel Casula" # TODO: Insert your name between the double quotes print(f"{name}, Welcome to the CSS course!") From 6fae6f513de64439c8f51df03c299a510ef5c734 Mon Sep 17 00:00:00 2001 From: Neel-Casula <87829584+Neel-Casula@users.noreply.github.com> Date: Mon, 23 Feb 2026 21:49:11 -0500 Subject: [PATCH 2/6] add comment about robot speed variable --- labs/lab_1/lab_1a.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/labs/lab_1/lab_1a.py b/labs/lab_1/lab_1a.py index 0cc02c45..aaa64235 100644 --- a/labs/lab_1/lab_1a.py +++ b/labs/lab_1/lab_1a.py @@ -3,6 +3,8 @@ The first lab in the BWSI CSS course. To complete this lab, fill out the variable on line 10 with your name. Then, save the code, add it to the staging area, and commit it to the Git tree. + +This is to simulate a change made on a robot: robot_speed = 5 # m/s """ def main(): From 40aa7c4b400b0ceda9672a4099f5bf4a6a34e5dc Mon Sep 17 00:00:00 2001 From: Neel-Casula <87829584+Neel-Casula@users.noreply.github.com> Date: Mon, 23 Feb 2026 21:55:21 -0500 Subject: [PATCH 3/6] lowered speed --- labs/lab_1/lab_1a.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labs/lab_1/lab_1a.py b/labs/lab_1/lab_1a.py index aaa64235..65ecbfc7 100644 --- a/labs/lab_1/lab_1a.py +++ b/labs/lab_1/lab_1a.py @@ -4,7 +4,7 @@ The first lab in the BWSI CSS course. To complete this lab, fill out the variable on line 10 with your name. Then, save the code, add it to the staging area, and commit it to the Git tree. -This is to simulate a change made on a robot: robot_speed = 5 # m/s +This is to simulate a change made on a robot: robot_speed = 3 # m/s """ def main(): From 298b28457e7471936b506217423a46dfe22fb48d Mon Sep 17 00:00:00 2001 From: ncasula01 Date: Mon, 23 Feb 2026 21:55:31 -0500 Subject: [PATCH 4/6] increased speed --- labs/lab_1/lab_1a.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labs/lab_1/lab_1a.py b/labs/lab_1/lab_1a.py index aaa64235..1b09cad7 100644 --- a/labs/lab_1/lab_1a.py +++ b/labs/lab_1/lab_1a.py @@ -4,7 +4,7 @@ The first lab in the BWSI CSS course. To complete this lab, fill out the variable on line 10 with your name. Then, save the code, add it to the staging area, and commit it to the Git tree. -This is to simulate a change made on a robot: robot_speed = 5 # m/s +This is to simulate a change made on a robot: robot_speed = 8 # m/s """ def main(): From c90cc89835280148926680863f04367e329b2c77 Mon Sep 17 00:00:00 2001 From: ncasula01 Date: Tue, 24 Feb 2026 21:48:20 -0500 Subject: [PATCH 5/6] added run_test.yml --- tests/.github/workflows/run_test.yml | 0 tests/tests_1b.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 tests/.github/workflows/run_test.yml diff --git a/tests/.github/workflows/run_test.yml b/tests/.github/workflows/run_test.yml new file mode 100644 index 00000000..e69de29b diff --git a/tests/tests_1b.py b/tests/tests_1b.py index be6b822d..5289a12a 100644 --- a/tests/tests_1b.py +++ b/tests/tests_1b.py @@ -8,7 +8,7 @@ from labs.lab_1.lab_1b import simple_calculator def test_addition(): - assert simple_calculator("add", 5, 3) == 8 # Test for positive numbers + assert simple_calculator("add", 5, 3) == 8 # Test for positive numbers assert simple_calculator("add", -2, 2) == 0 # Test for negative and positive number assert simple_calculator("add", 0, 0) == 0 # Test for zero addition From 77f464f7437f35c865f6d93736e664663f0e3717 Mon Sep 17 00:00:00 2001 From: ncasula01 Date: Tue, 24 Feb 2026 22:08:34 -0500 Subject: [PATCH 6/6] fixed 1c 1d --- labs/lab_1/lab_1c.py | 2 +- labs/lab_1/lab_1d.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/labs/lab_1/lab_1c.py b/labs/lab_1/lab_1c.py index 40cf98db..5f1369e5 100644 --- a/labs/lab_1/lab_1c.py +++ b/labs/lab_1/lab_1c.py @@ -24,7 +24,7 @@ def max_subarray_sum(nums: list[int]) -> int: for num in nums: max_current = max(num, max_current + num) - if max_current < max_global: + if max_current > max_global: max_global = max_current return max_global diff --git a/labs/lab_1/lab_1d.py b/labs/lab_1/lab_1d.py index ade4b4a8..1506810a 100644 --- a/labs/lab_1/lab_1d.py +++ b/labs/lab_1/lab_1d.py @@ -23,7 +23,7 @@ def two_sum(nums: list[int], target: int) -> list[int]: num_to_index = {} for index, num in enumerate(nums): - complement = target + num + complement = target - num if complement in num_to_index: return [num_to_index[complement], index] num_to_index[num] = index