This commit is contained in:
		
							
								
								
									
										17
									
								
								.gitea/workflows/tests.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								.gitea/workflows/tests.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| name: Python unit tests | ||||
| run-name: ${{ gitea.actor }} is running unit tests | ||||
| on: [push, workflow_dispatch] | ||||
|  | ||||
| jobs: | ||||
|   unittests: | ||||
|     runs-on: ubuntu-latest | ||||
|     container: catthehacker/ubuntu:act-latest | ||||
|     steps: | ||||
|       - name: Check out repository code | ||||
|         uses: actions/checkout@v4 | ||||
|       - name: Set up Python | ||||
|         uses: actions/setup-python@v5 | ||||
|         with: | ||||
|           python-version: "3.13" | ||||
|       - name: Test with unittest | ||||
|         run: python -m unittest | ||||
							
								
								
									
										8
									
								
								.idea/.gitignore
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								.idea/.gitignore
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| # Default ignored files | ||||
| /shelf/ | ||||
| /workspace.xml | ||||
| # Editor-based HTTP Client requests | ||||
| /httpRequests/ | ||||
| # Datasource local storage ignored files | ||||
| /dataSources/ | ||||
| /dataSources.local.xml | ||||
							
								
								
									
										11
									
								
								.idea/examen2025.iml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								.idea/examen2025.iml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <module type="PYTHON_MODULE" version="4"> | ||||
|   <component name="NewModuleRootManager"> | ||||
|     <content url="file://$MODULE_DIR$"> | ||||
|       <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> | ||||
|       <sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" /> | ||||
|     </content> | ||||
|     <orderEntry type="jdk" jdkName="Python 3.13" jdkType="Python SDK" /> | ||||
|     <orderEntry type="sourceFolder" forTests="false" /> | ||||
|   </component> | ||||
| </module> | ||||
							
								
								
									
										6
									
								
								.idea/inspectionProfiles/profiles_settings.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								.idea/inspectionProfiles/profiles_settings.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| <component name="InspectionProjectProfileManager"> | ||||
|   <settings> | ||||
|     <option name="USE_PROJECT_PROFILE" value="false" /> | ||||
|     <version value="1.0" /> | ||||
|   </settings> | ||||
| </component> | ||||
							
								
								
									
										6
									
								
								.idea/misc.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								.idea/misc.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project version="4"> | ||||
|   <component name="Black"> | ||||
|     <option name="sdkName" value="Python 3.13" /> | ||||
|   </component> | ||||
| </project> | ||||
							
								
								
									
										8
									
								
								.idea/modules.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								.idea/modules.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project version="4"> | ||||
|   <component name="ProjectModuleManager"> | ||||
|     <modules> | ||||
|       <module fileurl="file://$PROJECT_DIR$/.idea/examen2025.iml" filepath="$PROJECT_DIR$/.idea/examen2025.iml" /> | ||||
|     </modules> | ||||
|   </component> | ||||
| </project> | ||||
							
								
								
									
										6
									
								
								.idea/vcs.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								.idea/vcs.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project version="4"> | ||||
|   <component name="VcsDirectoryMappings"> | ||||
|     <mapping directory="$PROJECT_DIR$" vcs="Git" /> | ||||
|   </component> | ||||
| </project> | ||||
							
								
								
									
										177
									
								
								README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										177
									
								
								README.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,177 @@ | ||||
| # Examen 2025 | ||||
|  | ||||
| ---  | ||||
| _**201.1 Algorithmes et Structures de données**_ | ||||
|  | ||||
|  | ||||
|  | ||||
| Voici mes réponses pour l'examen 2025 d'_Algorithmes et Structures de données_ ainsi que les tests unitaires fournis. | ||||
|  | ||||
| ## Exercice 1 | ||||
|  | ||||
| <table> | ||||
| <tr> | ||||
| <td><strong>But</strong></td> | ||||
| <td>...</td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><strong>Input</strong></td> | ||||
| <td>...</td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><strong>Output</strong></td> | ||||
| <td>...</td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><strong>Signature</strong></td> | ||||
| <td> | ||||
|  | ||||
| ```python | ||||
| def function1( | ||||
|     *args | ||||
| ) -> Any: | ||||
| ``` | ||||
|  | ||||
| </td> | ||||
| </tr> | ||||
| </table> | ||||
|  | ||||
| [Source](https://git.kb28.ch/HEL/AlgoDS-Examen2025/src/branch/main/src/ex1_.py) | ||||
| / | ||||
| [Tests](https://git.kb28.ch/HEL/AlgoDS-Examen2025/src/branch/main/tests/test_ex1.py) | ||||
|  | ||||
|  | ||||
| ## Exercice 2 | ||||
|  | ||||
| <table> | ||||
| <tr> | ||||
| <td><strong>But</strong></td> | ||||
| <td></td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><strong>Input</strong></td> | ||||
| <td>...</td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><strong>Output</strong></td> | ||||
| <td>...</td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><strong>Signature</strong></td> | ||||
| <td> | ||||
|  | ||||
| ```python | ||||
| def function2( | ||||
|     *args | ||||
| ) -> Any: | ||||
| ``` | ||||
|  | ||||
| </td> | ||||
| </tr> | ||||
| </table> | ||||
|  | ||||
| [Source](https://git.kb28.ch/HEL/AlgoDS-Examen2025/src/branch/main/src/ex2_.py) | ||||
| / | ||||
| [Tests](https://git.kb28.ch/HEL/AlgoDS-Examen2025/src/branch/main/tests/test_ex2.py) | ||||
|  | ||||
|  | ||||
| ## Exercice 3 | ||||
|  | ||||
| <table> | ||||
| <tr> | ||||
| <td><strong>But</strong></td> | ||||
| <td>...</td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><strong>Input</strong></td> | ||||
| <td>...</td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><strong>Output</strong></td> | ||||
| <td>...</td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><strong>Signature</strong></td> | ||||
| <td> | ||||
|  | ||||
| ```python | ||||
| def function3( | ||||
|     *args | ||||
| ) -> Any: | ||||
| ``` | ||||
|  | ||||
| </td> | ||||
| </tr> | ||||
| </table> | ||||
|  | ||||
| [Source](https://git.kb28.ch/HEL/AlgoDS-Examen2025/src/branch/main/src/ex3_.py) | ||||
| / | ||||
| [Tests](https://git.kb28.ch/HEL/AlgoDS-Examen2025/src/branch/main/tests/test_ex3.py) | ||||
|  | ||||
|  | ||||
| ## Exercice 4 | ||||
|  | ||||
| <table> | ||||
| <tr> | ||||
| <td><strong>But</strong></td> | ||||
| <td>...</td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><strong>Input</strong></td> | ||||
| <td>...</td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><strong>Output</strong></td> | ||||
| <td>...</td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><strong>Signature</strong></td> | ||||
| <td> | ||||
|  | ||||
| ```python | ||||
| def function4( | ||||
|     *args | ||||
| ) -> Any: | ||||
| ``` | ||||
|  | ||||
| </td> | ||||
| </tr> | ||||
| </table> | ||||
|  | ||||
| [Source](https://git.kb28.ch/HEL/AlgoDS-Examen2025/src/branch/main/src/ex4_.py) | ||||
| / | ||||
| [Tests](https://git.kb28.ch/HEL/AlgoDS-Examen2025/src/branch/main/tests/test_ex4.py) | ||||
|  | ||||
|  | ||||
| ## Exercice 5 | ||||
|  | ||||
| <table> | ||||
| <tr> | ||||
| <td><strong>But</strong></td> | ||||
| <td>...</td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><strong>Input</strong></td> | ||||
| <td>...</td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><strong>Output</strong></td> | ||||
| <td>...</td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td><strong>Signature</strong></td> | ||||
| <td> | ||||
|  | ||||
| ```python | ||||
| def function5( | ||||
|     *args | ||||
| ) -> Any: | ||||
| ``` | ||||
|  | ||||
| </td> | ||||
| </tr> | ||||
| </table> | ||||
|  | ||||
| [Source](https://git.kb28.ch/HEL/AlgoDS-Examen2025/src/branch/main/src/ex5_.py) | ||||
| / | ||||
| [Tests](https://git.kb28.ch/HEL/AlgoDS-Examen2025/src/branch/main/tests/test_ex5.py) | ||||
							
								
								
									
										0
									
								
								src/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								src/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								tests/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								tests/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										8
									
								
								tests/test_ex1.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								tests/test_ex1.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| import unittest | ||||
|  | ||||
| class MyTestCase(unittest.TestCase): | ||||
|     def test_simple1(self): | ||||
|         pass | ||||
|  | ||||
| if __name__ == '__main__': | ||||
|     unittest.main() | ||||
							
								
								
									
										8
									
								
								tests/test_ex2.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								tests/test_ex2.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| import unittest | ||||
|  | ||||
| class MyTestCase(unittest.TestCase): | ||||
|     def test_simple1(self): | ||||
|         pass | ||||
|  | ||||
| if __name__ == '__main__': | ||||
|     unittest.main() | ||||
							
								
								
									
										8
									
								
								tests/test_ex3.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								tests/test_ex3.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| import unittest | ||||
|  | ||||
| class MyTestCase(unittest.TestCase): | ||||
|     def test_simple1(self): | ||||
|         pass | ||||
|  | ||||
| if __name__ == '__main__': | ||||
|     unittest.main() | ||||
							
								
								
									
										8
									
								
								tests/test_ex4.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								tests/test_ex4.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| import unittest | ||||
|  | ||||
| class MyTestCase(unittest.TestCase): | ||||
|     def test_simple1(self): | ||||
|         pass | ||||
|  | ||||
| if __name__ == '__main__': | ||||
|     unittest.main() | ||||
							
								
								
									
										8
									
								
								tests/test_ex5.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								tests/test_ex5.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| import unittest | ||||
|  | ||||
| class MyTestCase(unittest.TestCase): | ||||
|     def test_simple1(self): | ||||
|         pass | ||||
|  | ||||
| if __name__ == '__main__': | ||||
|     unittest.main() | ||||
		Reference in New Issue
	
	Block a user