Merge pull request #4 from TiagoRG/dev-tiagorg

README update and small simplification
This commit is contained in:
Tiago Garcia 2023-02-03 17:35:31 +00:00 committed by GitHub
commit c29dceac96
Signed by untrusted user who does not match committer: TiagoRG
GPG Key ID: DFCD48E3F420DB42
3 changed files with 3 additions and 5 deletions

View File

@ -5,12 +5,8 @@
# os primeiros n elementos igualam os últimos n elementos (sem sobreposição).
def firstEqualLast(lst):
if len(lst) <= 1:
return 0
n = 0
for i in range(1, len(lst)//2+1):
if lst[:i] == lst[len(lst)-i:]:
if lst[:i] == lst[-i:]:
n = i
return n

View File

@ -5,6 +5,7 @@
- [Laboratórios de Informática](https://github.com/TiagoRG/uaveiro-leci/tree/master/1ano/2semestre/labi)
- [Laboratório de Sistemas Digitais](https://github.com/TiagoRG/uaveiro-leci/tree/master/1ano/2semestre/lsd)
- [Matem&aacute;tica Discreta](https://github.com/TiagoRG/uaveiro-leci/tree/master/1ano/2semestre/md)
- [C&aacute;lculo - 2](https://github.com/TiagoRG/uaveiro-leci/tree/master/1ano/2semestre/c2)
---
*Pode conter erros, caso encontre algum, crie um* [*ticket*](https://github.com/TiagoRG/uaveiro-leci/issues/new)

View File

@ -14,6 +14,7 @@
- [Laboratórios de Informática](https://github.com/TiagoRG/uaveiro-leci/tree/master/1ano/2semestre/labi)
- [Laboratório de Sistemas Digitais](https://github.com/TiagoRG/uaveiro-leci/tree/master/1ano/2semestre/lsd)
- [Matem&aacute;tica Discreta](https://github.com/TiagoRG/uaveiro-leci/tree/master/1ano/2semestre/md)
- [C&aacute;lculo - 2](https://github.com/TiagoRG/uaveiro-leci/tree/master/1ano/2semestre/c2)
---
*Pode conter erros, caso encontre algum, crie um* [*ticket*](https://github.com/TiagoRG/uaveiro-leci/issues/new)