This repo includes solving many problems with Python on the LeetCode platform and is classified according to the number and name of the problem in the form of folders. Each folder contains one or more ...
Palindrome.py is a Python program that uses a recursive function to calculate whether or not a string is a palindrome (reads the same if reversed). Pairs.py is a Python program that uses a recursive ...
今回はPythonの勉強をしたので共有したいと思います。 前から読んでも、後ろから読んでも同じなのかを判断するプログラムの共有したいと思います。 複数あるので何個か共有します 一つ目 s = 'racecar' print(s == ''.join(reversed(s))) # reversedで判断する。 reversedで逆 ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する