maths & cs grad • building & breaking prod • poetry reader
May 29, 2023 • 23 tweets • 4 min read
My learnings after solving 700+ LeetCode problems, summarized in a few points.
2 years of experience curated in a thread.🧵
📌Consistency is more important than Intensity:
It happens very often with us that we lack in solving problems daily and get motivated once a week then solve 5 - 10 in one sitting and again forget for a few days.
May 27, 2023 • 10 tweets • 3 min read
Everything you need to master Data Structures and Algorithms from Scratch to Advanced.
Are you also tired of Time Limit Exceeded errors on your code??
Open this thread, I promise you'll not face it anymore. 🧵
We're solely talking about DSA problems not other things around.
This is one of the most important threads till now, it'll tell you how to find an estimate of the worst-case time complexity of an algorithm that can work in a problem. So read till the end, carefully. 🤯
Apr 27, 2023 • 15 tweets • 3 min read
Give me a minute, I'll tell you the proper way of approaching any @LeetCode problem which is above your level.
A thread 🧵
Bhaiya how should I approach a LeetCode problem?? How much time should I spend on a problem?? Should I see the solution or not? When should I see the solution?? 🤔
Apr 25, 2023 • 10 tweets • 2 min read
📢 Never make these mistakes on @LeetCode if you want to excel in problem solving from beginning to end.
A thread. 🧵
📌 If you're just starting out with DSA, don't directly go to LeetCode, your first destination should be HackerRank, you can learn any programming language there and practice the basic concepts in a structured manner.
Nov 17, 2022 • 10 tweets • 4 min read
Participated in @LeetCode contest 241 virtually, could solve only the 1st one during contest due to a minor mistake. But later finished 2nd and 3rd also on my own.
Let's see the problems: 1. Sum of All Subset XOR Totals
Nov 11, 2022 • 8 tweets • 3 min read
Top @LeetCode posts, you can't miss, regarding most important interview problems.
Participated in @LeetCode weekly contest 245 virtually, got a rank of 4k/8.5k.
Let's see the problems:
1st Problem: Redistribute Characters to Make All Strings Equal
Nov 2, 2022 • 12 tweets • 4 min read
Starting a 30 days of @LeetCode virtual contest, tried LeetCode weekly contest 246.
Let's see the problems:
1st Problem: Largest Odd Number in String
Sep 8, 2022 • 8 tweets • 3 min read
Binary Tree Inorder Traversal, today's @Leetcode challenge: Understanding the problem to intuition to solution, 3 approaches.
A thread 🧵 #100daysOfCode#leetcode
Problem Statement-
Given the root of a binary tree, return the inorder traversal of its nodes' values.
Sep 7, 2022 • 15 tweets • 3 min read
Sometimes the biggest problem while applying off-campus is that, we don't know which company to apply??
300+ Companies paying 12+ LPA for SDE-1 role in India, checkout the list below.
A thread 👇
Acko
Adobe
Airbase
Airbnb
Airbus
Airtel X Labs
Ajio
Akamai
AlphaGrep
Alphonso
Amagi
Amazon
American Express
Angel One
Ansys
Anthem
Apna
AppDynamics
Arcesium
Arista
Atlassian
AutoDesk
Auzmor
Avail Finance
Avalara
BCG
BNY Mellon
Bain & Company
Sep 7, 2022 • 10 tweets • 3 min read
Construct String from Binary Tree, today's @LeetCode challenge explained in recursive and iterative method.
A thread 🧵 #100daysOfCode
Problem Statement -
Given the root of a binary tree, construct a string consisting of parenthesis and integers from a binary tree with the preorder traversal way, and return it.
Sep 6, 2022 • 7 tweets • 3 min read
If you are inconsistent in practice, start 100 days of challenge and mention me I'll support you. Let's see today's solution,
0ms, faster than 100%, recursive approach of today's @Leetcode challenge.
A thread 🧵 #100daysOfCode
Problem Statement-
Given the root of a binary tree, return the same tree where every subtree (of the given tree) not containing a 1 has been removed.
A subtree of a node node is node plus every node that is a descendant of node.
Sep 5, 2022 • 8 tweets • 5 min read
"429. N-ary Tree Level Order Traversal", today's @LeetCode challenge explained with DFS and BFS methods.
A thread 🧵 #100daysOfCode #leetcode@LeetCode Problem Statement-
Given an n-ary tree, return the level order traversal of its nodes' values.
Nary-Tree input serialization is represented in their level order traversal, each group of children is separated by the null value (See examples).
Jul 30, 2022 • 13 tweets • 6 min read
It's better to solve one problem everyday instead of solving 10 once in a week.
~Consistency
In the series of solving daily @LeetCode challenges, let's see today's really interesting problem.
In the series of solving @Leetcode daily challenges, we've an awesome problem today, 2 more days to finish a month, let's see how we can solve it. @naval@LeetCode Find and Replace Pattern:
Input: words = ["abc","deq","mee","aqq","dkd","ccc"], pattern = "abb"
Output: ["mee","aqq"]
Jul 28, 2022 • 10 tweets • 5 min read
I was going through the threads of @Julian, I found some on startups, writing, career, storytelling, audience building, mental models, thinking and more which are not less than a goldmine, if you are eager to learn.
I'm gonna read them one by one, you shouldn't miss this. 🧵
@Julian -> Another perspective of seeing the world, it's not how you think:
“A son asked his father, why the sun rises in the east, and sets in the west. His response? If it works, don’t touch!”. You know why? 🤔
Coz, his father was a programmer. 😅
Well, jokes apart, in the series of solving @LeetCode, let's see today's problem. @LeetCode We've an easy problem, "Valid Anagram": Given two strings s and t, return true if t is an anagram of s, and false otherwise.
An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.
Jul 25, 2022 • 19 tweets • 6 min read
How to center a "div" in CSS??
Sometimes it becomes very confusing and takes a long time.
So, here are 10 ways to do that, learn in the simplest way possible and save time.
A thread🧵
We'll be using 2 HTML div's
-> parent container
-> child container
Our aim is to center the child container with respect to parent.
We have this initial HTML, CSS files.