How to Find the Longest Substring in Alphabetical Order in Python
The challenge
Find the longest substring in alphabetical order.
Example:
the longest alphabetical substring in "asdfaaaabbbbcttavvfffffdf" …
In-depth guides, insights, and best practices for modern software engineering
Find the longest substring in alphabetical order.
Example:
the longest alphabetical substring in "asdfaaaabbbbcttavvfffffdf" …
What is your favourite day of the week? Check if it’s the most frequent day of the week in the year.
You are given a year as …
Read Article →In this challenge, you will be given a string with brackets and an index of an opening bracket and your task will be to return the index …
Read Article →You can use the AWS CLI to presign URLs so that objects in S3 can be shared publicly even if they are set as private.
Presigned URLs are great for …
Read Article →If you use aria2c to download files using the command-line, then you can also use it to download using multiple connections.
aria2c -x16 -s16 …
Read Article →
In this challenge, you parse RGB colors represented by strings. The formats are primarily used in HTML and CSS. Your task is to …
Read Article →Simple transposition is a basic and simple cryptography technique. We make 2 rows and put first a letter in Row 1, the second in Row 2, …
Read Article →Write a function that takes in a binary string and returns the equivalent decoded text (the text is ASCII encoded).
Each 8 bits on the …
Read Article →Given a triangle of consecutive odd numbers:
1
3 5
7 9 11
13 15 17 19
21 23 …
Read Article →
Write a function that takes a shuffled list of unique numbers from 1 to n with one element missing (which can be any number including n …
The AWS Cloud Development Kit (CDK) comes with numerous CLI commands.
| Command | Function … |
|---|
AWSTemplateFormatVersion: 2010-09-09
Description: Basic S3 Bucket CloudFormation template
Resources:
S3BucketForWebsiteContent:
Type: …
Read Article →