Algorithm Puzzles: Pow(x, n)
Algorithm Puzzles everyday every week sometimes: Pow(x, n)
Algorithm Puzzles everyday every week sometimes: Pow(x, n)
AWS Cloudformation allows user attach condition to resource, so resource will be created only if the given condition has been fulfilled(conditional resource). But things get tricky when using AWS CDK, user must use getNode
method to get the Cfnxxxxx
resource from original CDK resource and attach conditions afterwards. Take S3 Bucket as an example:
1 | ((CfnBucket)myBucket.getNode().getDefaultChild()).getCfnOptions().setCondition( |
Algorithm Puzzles everyday every week sometimes: Search Insert Position
We can construct a Map<String, Object>
from a JSON string with the help of reflect:
1 | import com.google.gson.Gson; |
Algorithm Puzzles everyday every week sometimes: Edit Distance
Algorithm Puzzles everyday every week sometimes: Koko Eating Bananas
Algorithm Puzzles everyday every week sometimes: Rotate Image
Algorithm Puzzles everyday every week sometimes: Subtree of Another Tree
Algorithm Puzzles everyday every week sometimes: Best Time to Buy and Sell Stock