Explore tweets tagged as #CrackCodingWithMayank
๐ข Coding Challenge Alert: Convert Integers to Roman Numerals! ๐ขโก๏ธ๐๏ธ #CrackCodingWithMayank #RomanNumerals #CodingChallenge #DailyCoding #ProblemSolving #Algorithms #LeetCode #CodeNewbie #SoftwareEngineering #100DaysOfCode #DevCommunity #BuildInPublic #JavaScript #Python #Tech
0
2
5
๐ง Can your path cross itself? Start at (0,0). Move: North, West, South, East... (repeat โคด๏ธ counter-clockwise). Input: distance = [2,1,1,2] โก๏ธ Output: true (Crosses at (0, 1)) #100DaysOfCode #CodingChallenge #LeetCode #DSA #Algorithms #DevLife #CrackCodingWithMayank
0
2
4
๐ SQL Challenge: High Earners in Each Department! Given Employee & Depart. tables, find the top 3 unique salaries per depart. ๐กUsing DENSE_RANK() to rank salaries within each department. #SQL #Coding #DataAnalytics #CrackCodingWithMayank
0
2
2
๐ Word Search II ๐ Used Trie + Backtracking to efficiently find words in a grid! ๐ โ
Optimized from O(m * n * 4^L) โ O(m * n * 3^L) โ
Found words: "oath", "eat" ๐ฏ #LeetCode #Coding #Algorithms #Trie #Backtracking #CrackCodingWithMayank
0
2
3
๐ Max Points on a Line! ๐ Given a set of points on an X-Y plane, find the maximum no. of points that lie on the same straight line. Eg: ๐[[1,1],[2,2],[3,3]] โ 3 ๐[[1,1],[3,2],[5,3],[4,1],[2,3],[1,4]] โ4 #Coding #LeetCode #Algorithms #ProblemSolving #CrackCodingWithMayank
0
2
3
๐ Binary Trees: Max Path Sum! ๐ณ Find the max path sum in a binary tree. The path can be any seq. of connected nodes. ๐กEg: [1,2,3] โ6 (2 โ1โ3) [-10,9,20,null,null,15,7] โ 42 (15โ20โ7) #Coding #LeetCode #BinaryTree #CrackCodingWithMayank ๐
0
2
3
๐ Coding Challenge: Count 1s! Given n, count how many times digit 1 appears from 0 to n. ๐น n = 13 โ Output: 6 ๐น n = 0 โ Output: 0 Constraints: 0 โค n โค 10โน Drop your solution below! โฌ๏ธ #CodingChallenge #LeetCode #ProblemSolving #CrackCodingWithMayank
0
2
3
๐ Given the head of a linked list, delete the node that's n-th from the end, and return the updated head. Input: [1, 2, 3, 4, 5], n = 2 Output: [1, 2, 3, 5] #LinkedList #DSA #CodingChallenge #TechInterview #ProblemSolving #CrackCodingWithMayank #100DaysOfCode #DataStructures
0
2
3
๐ Best Time to Buy and Sell Stock IV ๐ Maximize profit with at most k transactions! ๐น DP solution: O(k * n) ๐น Greedy for large k ๐น Key: Track balance & optimize state transitions #LeetCode #DynamicProgramming #Coding #CrackCodingWithMayank
0
2
3
Can you restore valid IPs from a string of digits? E.g. Input: "25525511135" Output: ["255.255.11.135", "255.255.111.35"] Rules: 4 parts 0โ255 range No leading 0s No digit reordering #CrackCodingWithMayank #CodingChallenge #100DaysOfCode #LeetCode #DevLife #Backtracking #Tech
0
2
3
๐ Palindrome Partitioning โ Min Cuts Problem ๐ฅ Given a string s, partition it so every substring is a palindrome. Find the min cuts needed! ๐นInput: "aab" โ 1 (["aa", "b"]) ๐นInput: "a" โ 0 ๐นInput: "ab" โ 1 #Coding #LeetCode #DynamicProgramming #CrackCodingWithMayank
0
2
3
Can you partition a string into all palindromic substrings? Example: "aab" โก๏ธ [["a","a","b"],["aa","b"]] Use recursion + backtracking to crack this! #CrackCodingWithMayank #100DaysOfCode #Backtracking #DSA #CodingChallenge #LeetCode #TechTwitter
0
2
4
๐ DSA Challenge Time! How many range sums in nums fall within [lower, upper]? Example: Input: [-2,5,-1], Range: [-2,2] โ
Output: 3 Master prefix sums & level up ๐ช More at ๐ Crack Coding with Mayank #100DaysOfCode #DSA #CodingChallenge #CrackCodingWithMayank
0
2
3
๐ DP Challenge: Distinct Subsequences Given s & t, find how many distinct subsequences of s equal t. Eg: ๐นs = "rabbbit", t = "rabbit" โ 3 ๐นs = "babgbag", t = "bag" โ 5 Can you solve it using Dynamic Programming? #Coding #DynamicProgramming #LeetCode #CrackCodingWithMayank
0
2
3
๐ Candy Distribution Problem! ๐ฌ Given ratings = [1,0,2], distribute candies so: โ
Each child gets at least one candy โ
Higher-rated kids get more than lower-rated neighbors Optimal: [2,1,2] โ 5 candies #Coding #Algorithms #LeetCode #ProblemSolving #CrackCodingWithMayank ๐
0
2
3
๐ Shortest Palindrome Challenge! ๐ Transform a string into a palindrome by adding the fewest characters in front of it. ๐ฅ Eg: ๐น"abcd" โ "dcbabcd" ๐น"aacecaaa" โ "aaacecaaa" Think KMP algorithm or two-pointer tricks! #Coding #LeetCode #Algorithms #CrackCodingWithMayank
0
2
3
๐ Stock Trading Challenge! ๐ Given prices[i] as the stock price on day i, find the max profit with โค2 transactions! Eg: ๐น [3,3,5,0,0,3,1,4] โ 6 ๐น [1,2,3,4,5] โ 4 ๐น [7,6,4,3,1] โ 0 #Coding #LeetCode #StockMarket #CrackCodingWithMayank
0
2
3
๐ก Coding Tip: Next Permutation Problem Given: [1,2,3] โก๏ธ Output: [1,3,2] Rearrange to next lexicographical order in-place with constant space! Perfect for tech interviews ๐ฅ #TechTwitter #CodeNewbie #InterviewPrep #LeetCode #DSA #CrackCodingWithMayank
0
2
3
๐ Built a Basic Calculator in Python! ๐งฎ โ
Handles +, -, (), and spaces โ
No eval()โused stack for expression evaluation โ
Supports nested parentheses & unary #Python #Coding #InterviewPrep #CrackCodingWithMayank
0
2
2
Zigzag String Conversion ๐งต Write a function to convert a string into zigzag form across rows and read line by line. Example: Input: "PAYPALISHIRING", numRows=3 Output: "PAHNAPLSIIGYIR" #CrackCodingWithMayank #Coding #Cplusplus
0
2
2