blog.debjotyms.comDeploy Next.js on AWS Amplify: A Step-by-Step GuideStep 1: Accessing the AWS Amplify Console Our journey begins in the AWS Management Console. To start, first choose a Region. This is an important decision as it determines the location of your application's infrastructure. Consider factors like your ...Nov 2, 2024·5 min read
blog.debjotyms.com118. Pascal's Triangle[A1] - Brute Force Time: O(n^2) Space: O(n^2) class Solution: def generate(self, numRows: int) -> List[List[int]]: # Initialize the triangle with the first row pascal_triangle = [] for i in range(numRows): # S...Oct 25, 2024·1 min read
blog.debjotyms.com1. Two SumYouTube Video https://youtu.be/hfN4VONP4HQ [A1] - Brute Force Time: O(n^2) Space: O(1) class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: for i in range(len(nums)): for j in range(i+1, len(nums)): ...Oct 4, 2024·1 min read
blog.debjotyms.com242. Valid AnagramYouTube Video https://youtu.be/i3gKaEpOB_s [A1] - Sorting Time: O(nlog(n)) Space: O(1) class Solution(object): def isAnagram(self, s, t): s_sorted = sorted(s) t_sorted = sorted(t) if s_sorted == t_sorted: re...May 14, 2024·1 min read
blog.debjotyms.com217. Contain DuplicateYouTube Video https://youtu.be/w29Wrsehl40 [A1] - Brute Force Time: O(n^2) Space: O(1) class Solution(object): def containsDuplicate(self, nums): for i in range(len(nums)): for j in range(i+1,len(nums)): if n...May 13, 2024·1 min read