How to Convert Integer to Whitespace format in Python
The challenge
Hereinafter, [space] refers to " ", [tab] refers to "\t", and [LF] refers to "\n" for illustrative …
In-depth guides, insights, and best practices for modern software engineering
Hereinafter, [space] refers to " ", [tab] refers to "\t", and [LF] refers to "\n" for illustrative …
You have an array of integers and have a frog at the first position
[Frog, int, int, int, ..., int]
The integer itself may tell you the …
Read Article →Write the following function:
def area_of_polygon_inside_circle(circle_radius, number_of_sides):
It should calculate the area of a …
Read Article →You are developing an image hosting website.
You have to create a function for generating random and unique image filenames.
Create a …
Read Article →Given string s, which contains only letters from a to z in lowercase.
A set of the alphabet is given by abcdefghijklmnopqrstuvwxyz. …
Login to your MySQL server, enter your password when prompted:
mysql -u root -p
Find out where the data directory is located:
mysql> select …
Read Article →
You will be given an integer array and your task is to return the sum of elements occupying prime-numbered indices.
The first element of …
Read Article →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 →