Explore tweets tagged as #CrackCodingWithMayank
@MayankQnAPe
Mayank
8 months
๐Ÿ“ข 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
@MayankQnAPe
Mayank
8 months
๐Ÿง  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
@MayankQnAPe
Mayank
9 months
๐Ÿš€ 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
@MayankQnAPe
Mayank
9 months
๐Ÿš€ 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
@MayankQnAPe
Mayank
9 months
๐Ÿš€ 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
@MayankQnAPe
Mayank
9 months
๐Ÿš€ 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
@MayankQnAPe
Mayank
9 months
๐Ÿš€ 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
@MayankQnAPe
Mayank
8 months
๐Ÿ“Œ 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
@MayankQnAPe
Mayank
9 months
๐Ÿš€ 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
@MayankQnAPe
Mayank
8 months
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
@MayankQnAPe
Mayank
9 months
๐Ÿš€ 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
@MayankQnAPe
Mayank
8 months
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
@MayankQnAPe
Mayank
9 months
๐Ÿš€ 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
@MayankQnAPe
Mayank
9 months
๐Ÿš€ 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
@MayankQnAPe
Mayank
9 months
๐Ÿš€ 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
@MayankQnAPe
Mayank
9 months
๐Ÿš€ 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
@MayankQnAPe
Mayank
9 months
๐Ÿš€ 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
@MayankQnAPe
Mayank
8 months
๐Ÿ’ก 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
@MayankQnAPe
Mayank
9 months
๐Ÿš€ 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
@MayankQnAPe
Mayank
8 months
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