Solving Love vs Friendship in C
The challenge
If a = 1, b = 2, c = 3 ... z = 26
Then l + o + v + e = 54
and f + r + i + e + n + d + s + h + i + p = 108
So friendship is twice as …
In-depth guides, insights, and best practices for modern software engineering
If a = 1, b = 2, c = 3 ... z = 26
Then l + o + v + e = 54
and f + r + i + e + n + d + s + h + i + p = 108
So friendship is twice as …
Infrastructure code needs the same quality assurance practices as application code, but testing infrastructure presents unique challenges. How do you …
Read Article →A child is playing with a ball on the nth floor of a tall building. The height of this floor, h, is known.
He drops the ball out of the …
Read Article →Instructions
Write a function that takes a single string (word) as argument. The function must return an ordered list containing the …
AWS CLIStep 1
export bucketname='your-bucket-here'
Step 2
aws s3api delete-objects --bucket $bucketname --delete "$(aws …
Read Article →
If you are creating a FSx file system, and want to connect it to AWS Managed Active Directory, then you will need to create a VPC Security Group with …
Read Article →Multi-cloud strategies are becoming increasingly common as organizations seek to avoid vendor lock-in, leverage best-of-breed services, and meet …
Read Article →If you need to calculate variance in Python, then you can do the following.
variance() from Statistics moduleimport statistics
list …
Read Article →
If you need to calculate and get the sum of a list in Python, then you can do the following.
sum()myList = [1, 2, 3, 4, 5, 6, 7, 8, …
Read Article →
If you need to add a list to a set in Python, then you can do the following:
Tuplemyset = set((1,2,3,4))
mylist = list(1,2,3]) …
Read Article →
If you have a Python list, and want to remove all punctuation, then you can do the following:
string.punctuation …If you need to normalize a list of numbers in Python, then you can do the following:
Native Pythonlist = [6,1,0,2,7,3,8,1,5] …
Read Article →