tests with assertions βΆ 17 Sep, 2025 β’ 35 words β’ 1 min β’ updated 03 Jan, 2026 python # returns something we want to inspect def solve(): pass def main(): # program logic goes here assert solve(1) == [...] assert solve(0) == [...] # and so son if __name__ == "__main__": main() Related Posts LeetCode #3370: Smallest Number With All Set Bits LeetCode #3370: Smallest Number With All Set Bits: python class Solution: def smallestNumber(self, n: int) -> int: return n | (1 << β¦Jan 06, 2026 LeetCode #1876: Substrings of Size Three with Distinct Characters LeetCode #1876: Substrings of Size Three with Distinct Characters: python class Solution: def countGoodSubstrings(self, s: str) -> int: def β¦Jan 06, 2026 Previously, previously, previously, previously, previously. Thiago Perrotta
LeetCode #3370: Smallest Number With All Set Bits LeetCode #3370: Smallest Number With All Set Bits: python class Solution: def smallestNumber(self, n: int) -> int: return n | (1 << β¦Jan 06, 2026
LeetCode #1876: Substrings of Size Three with Distinct Characters LeetCode #1876: Substrings of Size Three with Distinct Characters: python class Solution: def countGoodSubstrings(self, s: str) -> int: def β¦Jan 06, 2026