Human Ai

Check Out my Blog Website to know more:- Link MIT 9.13 The Human Brain, Spring 2019 Instructor: Nancy Kanwisher View the complete course Lecture 1: Introduction Download the PDF of Lecture01 Prof. Kanwisher tells a true story to introduce the course, then covers the why, how, and what of studying the human brain and gives a course overview. {: .prompt-info} Watch the Lecture Video Lecture 2: Neuroanotomy Download the PDF Basic brief neuroanatomy review in preparation for dissection, including an introduction to the cortex, primary regions, and topographic maps. {: .prompt-info} ...

March 7, 2025 · 4 min

3351. Sum of Good Subsequences

Check Out my Blog Website to know more:- Link Sum of Good Subsequences Approach to the Problem We are tasked with finding the sum of all possible good subsequences in a given array nums where a good subsequence satisfies the condition that the absolute difference between any two consecutive elements is exactly 1. Here’s how we can systematically solve this problem. Understand the Problem Subsequences: A subsequence is a sequence derived from an array by deleting some or no elements without changing the order of the remaining elements. Example: [1, 2, 1] has subsequences: [1], [2], [1], [1, 2], [2, 1], [1, 2, 1]. Good Subsequences: A subsequence is good if the absolute difference between consecutive elements is exactly 1. Goal: Compute the sum of all good subsequences modulo 10⁹+7. Brute-Force Approach Generating All the Subsequences: Use recursion or bitmasking to generate all possible subsequences of the array. Check if each subsequence is good by ensuring the condition ∣a[i]−a[i−1]∣ = 1 is satisfied for all consecutive elements. Sum up all elements of the good subsequences. Time Complexity: Generating all subsequences takes O(2^n), where n is the length of the array. Verifying each subsequence for the good property takes O(n) in the worst case. Overall: O(n⋅2^n). This is infeasible for large n (up to 10⁵). Optimal Approach To handle the constraints efficiently, we use a dynamic programming approach with optimization based on frequencies of numbers in the array. Algorithm We Use:- ...

November 17, 2024 · 4 min

2458. Height of the Binary Tree

Check Out my Blog Website to know more:- Link Height of Binary Tree After Subtree Removal Queries Leetcode 2458. Today in the daily Leetcode problem of the day, we have a hard-level question related to trees. But first Let’s understand the question We have a Binary Tree with n nodes with unique values from 1 to n. We have given queries[i] of size n which are independent. We have to perform queries[i] such that we Remove the subtree rooted at the node with the value queries[i] from the tree. Remember, It is guaranteed that queries[i] will not be equal to the value of the root. ...

October 26, 2024 · 3 min

MIT 6.S191 Introduction to Deep Learning

Check Out my Blog Website to know more:- Link MIT 6.S191 Introduction to Deep Learning MIT’s introductory program on deep learning methods with applications in language, medicine, art, computer vision, game play, robotics and more! old Edition 2024, 2025 Lecturer: Alexander Amini Lecture 1: Intro to Deep Learning Apr. 29, 2024 Deep Learning – The Brainy Robot 🤖🧠 Imagine you have a robot friend who wants to learn how to recognize things, like cats, dogs, or even your handwriting. How does it learn? ...

February 5, 2024 · 11 min

The Human Brain

Check Out my Blog Website to know more:- Link MIT 9.13 The Human Brain, Spring 2019 Instructor: Nancy Kanwisher View the complete course Lecture 1: Introduction Download the PDF of Lecture01 Prof. Kanwisher tells a true story to introduce the course, then covers the why, how, and what of studying the human brain and gives a course overview. {: .prompt-info} Watch the Lecture Video Lecture 2: Neuroanotomy Download the PDF Basic brief neuroanatomy review in preparation for dissection, including an introduction to the cortex, primary regions, and topographic maps. {: .prompt-info} ...

January 31, 2024 · 4 min