House Robbery , First solved using recursion,got TLE error, then recognized that we were calculating the same thing multiple times, thats where DP hit ,then solved uing array memo , and return directly value when it's value in memo was not -1
#DSA#Buildinpublic#Code
Today made custom VPC in AWS , made vpc
Then created public and privat subnets ,
Created internet gateway(IGW)
Connected IGW to public subnet
created Route Table and edited routes to access igw for public subnet
vpc gives us secure Environment to run our appn.
#AWS#Cloud
Robbed House today! lc. 213
Main thought process is take take the alternative hoe or not take, deciding by the maximum money can rob, loop through the array and each time decide to rob present house or keep the previous one.
#DSA#LeetCode#Tech#Coding
Today Solved problem Climbing Stairs, The key takeaway
Used DP as it reduced the T.C from exponential(via recursion) to O(n) linear, by storing the previously calculated values in the array.
#Leetcode#DSA#Buildinpublic
Launched a static website in AWS S3 ,directly by uploading files without creating an EC2 instance
Steps
-Create a S3 bucket with a unique name
-In the properties section of the Bucket a option for hosting a website ,make it on
- now upload files
#AWS#Cloud#buildinpublic
Made my first Load Balancers,Steps
First made two EC2 serves ,configured their security rules,
Then made Target Group and added those two instances
Now made Load balancers,configured ssecurity
Added that target Group to the LB.
#Cloud#AWS#BuildInPublic
Successfully Deployed my first Static website using AWS EC2 instance using Linux 2023,
First setup AWS EC2,
set Security groups and inbound traffic,
Automated user data script,
Installed and used Nginx for the web deployment
#AWS#BuildInPublic
Planted flowers in DIWALI ,LC. 605, first thought of approach two pointers ,but it did not work here as we have to check present previous and after ones ,so used greedy approach and checked all condition at ones #BuildInPublic#Diwali#DSA
GRAPH CLONE, dis today Lc. 133 , did not understood at first then understood by gpt, main thought is to use hashmap for tracking which is cloned node and which is not, for not in map will put it in map and queuue to also see all its neighbours #leetocode#DSA#BuildInPublic