This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Lets say you have an array with a list of sub strings. Write a function that takes an input string and return true if the string can be divided into substrings contained in the array. | |
Example: array: [βandβ, βtheβ, βbackβ, βfrontβ, βoryβ , βendβ, βpoβ , βpuβ, βlarβ] | |
function subDivideString(inputString): | |
if inputString ==βbackendβ return true since array has βbackβ , βendβ | |
if inputString == βpopularβ return true since array has βpoβ , βpuβ, βlarβ | |
if inputString == βbackwardsβ return false since array doesnt have βwardsβ | |
if inputString == βswapanβ return false since array doesnt have any part of the word. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hi, | |
I have just started learning ansible. I have written a simple playbook which will create , delete a server using ansible's ec2 module. I can also create a volume and attach it to a previously created instance. | |
--- | |
- name: Sample playbook for Amazon AWS ec2 management via ansible | |
hosts: local | |
connection: local | |
vars: | |
aws_access_key: xxxx |