Photo by Brett Jordan on Unsplash

3 Billion SSM Calls in a Month: The hidden cost of using secrets backend in airflow, if not used correctly.


Photo by Daniele Franchi on Unsplash

Adjusting the search space to reach the target quickly

Template:

  1. Initialize the search space (start and end)
  2. Find Mid of the search space
  3. Discard/select one half based on the specific condition
  4. Update the search space
  5. Break the loop once search space narrowed to a single element

Pay special attention to the following:

  1. Start with all search space
  2. Decide on loop break condition. ( start < end vs start ≤ end vs start +1 < right)
  3. Correctly identify the condition to reduce search space. …


Photo by Kelly Sikkema on Unsplash

Access files stored in S3 as a regular table in Snowflake


Photo by Yaakov Winiarz on Unsplash


Photo by Andres Siimon on Unsplash


Photo by Teigan Rodger on Unsplash

Execute python code in lambda as external function in Snowflake

Solution Overview


Photo by Daniele Levis Pelusi on Unsplash

How to use Pass, Continue, Break in Python


Photo by Daniel Gregoire on Unsplash

SSM Run command on multiple hosts in parallel without SSH


Photo by Benjamin Child on Unsplash

253. Meeting Rooms II

Given an array of meeting time intervals intervals where intervals[i] = [starti, endi], return the minimum number of conference rooms required.

Input: intervals = [[9,10],[4,9],[5,17]]
Output: 2

Approach:

We need to find how many concurrent meetings are happening. Once we have that info we can find the no of meeting rooms required. To find the concurrent meetings at any given time we need to know how many meetings’ start and end time covers that.


Photo by Michal Matlon on Unsplash

150. Evaluate Reverse Polish Notation

Evaluate the value of an arithmetic expression in Reverse Polish Notation.

Example:

Input: tokens = ["2","1","+","3","*"]
Output: 9
Explanation: ((2 + 1) * 3) = 9

Understanding the problem:

From the above example, we understand that the last two elements become operand whenever we encounter an operator. Also, once we have computed the…

Amit Singh Rathore

Cloud | ML | Big Data

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store