Today's practice question requires us to write a Python function to find the square of a number. Here are some topics we'll cover in the post: Three ways to square a number in PythonHow to use...
Posts by Jamie
Python Programming Challenge 10: Longest Substring Without Repeating Characters
Today's challenge, taken from https://leetcode.com/problems/longest-substring-without-repeating-characters/, requires us to write a program to determine the length of the longest substring of a given...
Today, we have another interesting challenge from Leetcode (https://leetcode.com/problems/zigzag-conversion/); we're going to scramble a given word following a zig zag fashion. For instance, let's...
Here's another challenge from LeetCode (https://leetcode.com/problems/integer-to-roman/). This challenge requires us to convert integers to roman numerals. The Roman Numbering...
Today's question is taken from LeetCode (https://leetcode.com/problems/reverse-integer). Given a 32-bit signed integer, reverse the digits of the integer. If the resulting integer is out of the...
The slice notation is a very powerful concept in Python. It allows us to extract parts of a sequence (such as a list or string) effortlessly. The notation takes three values. Suppose we...