File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ Com o objetivo de alcançar uma abrangência maior e encorajar novas pessoas a c
6868| -------------------------------------| -------| ------| --------| ----| ------| ----| --------| -------| ------|
6969| Lista com 2 Pilhas | C/C++ | Java | [ Python] ( ./src/python/lista_com_pilhas.py ) | Go | Ruby | JS | Pascal | Swift | Rust |
7070| Soma de 2 Números | C/C++ | Java | [ Python] ( ./src/python/soma_dois_numeros.py ) | Go | Ruby | JS | Pascal | Swift | Rust |
71- | [ Palíndromo] [ 49 ] | [ C/C++] ( ./src/c/Palindromo.c ) | Java | Python | Go | [ Ruby] ( ./src/ruby/Palindromo.rb ) | [ JS] ( ./src/javascript/Palindromo.js ) | Pascal | [ Swift] ( ./src/swift/palindromo.swift ) | [ Rust] ( ./src/rust/palindromo.rs ) |
71+ | [ Palíndromo] [ 49 ] | [ C/C++] ( ./src/c/Palindromo.c ) | Java | [ Python] ( ./src/python/palindromos.py ) | Go | [ Ruby] ( ./src/ruby/Palindromo.rb ) | [ JS] ( ./src/javascript/Palindromo.js ) | Pascal | [ Swift] ( ./src/swift/palindromo.swift ) | [ Rust] ( ./src/rust/palindromo.rs ) |
7272| Lista Ligada Desordenada | C/C++ | Java | [ Python] ( ./src/python/lista_encadeada_desordenada.py ) | Go | Ruby | JS | Pascal | Swift | Rust |
7373| [ Calculo do PI (Leibniz)] [ 50 ] | C/C++ | Java | [ Python] ( ./src/python/calculate_pi.py ) | [ Go] ( ./src/go/calculatepi/calculatepi.go ) | Ruby | [ JS] ( ./src/javascript/calculate_pi.js ) | Pascal | [ Swift] ( ./src/swift/calculatePi.swift ) | [ Rust] ( ./src/rust/calculate_pi.rs ) |
7474| Busca em Labirinto | C/C++ | Java | [ Python] ( ./src/python/busca_em_labirinto.py ) | Go | Ruby | JS | Pascal | Swift | Rust |
Original file line number Diff line number Diff line change 1+ # a simplified way to resolve the issue of palindromes.
2+
3+ reading1 = input ("insert the word: " )
4+
5+ # reading2 receives the variable (only the other way around)
6+ reading2 = reading1 [::- 1 ]
7+
8+ # return True or False (depending on the input value)
9+ if (reading1 == reading2 ):
10+ print (True )
11+ else :
12+ print (False )
You can’t perform that action at this time.
0 commit comments