๐ Stop waiting to be discovered. Start putting yourself out there.
With UrNextDoor, you can:
โ๏ธ Blog & share ideas
๐ฃ Market your business FREE
๐ผ Post job openings
๐ ๏ธ Promote your services
๐ค Connect & network
๐ Find opportunities & grow
๐ 0% platform fee.
๐งCoding Tip: Max Water Container Problem!๐ง
Input: [1,8,6,2,5,4,8,3,7]
Max Area: 49
โ Use Two Pointers โ Move the pointer with smaller height โ Optimize space and time!
#100DaysOfCode#leetcode#TechTwitter#CodingLife
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
Itinerary problem!
Reconstruct the path from JFK using all tickets, lex smallest order.
Inp: [["JFK","SFO"],["JFK","ATL"],["SFO","ATL"],["ATL","JFK"],["ATL","SFO"]]
Opt: ["JFK","ATL","JFK","SFO","ATL","SFO"]
#100DaysOfCode#GraphAlgorithms#DevCommunity#JavaScript#MayankCodes
๐ง Coding Challenge: Given nums = [1,3], n = 6, how many numbers do we need to add so that we can form every sum in [1, 6]?
Answer: 1 โ Add 2 ๐ฅ
Try more: [1,5,10], n=20 โ 2 patches
[1,2,2], n=5 โ 0 patches
#Coding#Greedy#TechTwitter
๐ 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
๐ง Can you form the largest number of length k from two arrays of digits?
Keep the order in each array! ๐
Example:
nums1 = [3,4,6,5]
nums2 = [9,1,2,5,8,3]
k = 5
โ Output: [9,8,6,5,3]
๐จโ๐ป Comment your approach โฌ๏ธ
#LeetCode#CodingChallenge#100DaysOfCode#DevTwitter
๐ Challenge: Count Smaller Numbers After Self
Given nums = [5,2,6,1], return [2,1,1,0].
Efficient solutions? โ Merge Sort + BIT, โ Balanced BST, โ Segment Tree (O(n log n) complexity).
How would you solve it? Drop your approach! ๐
#LeetCode#Coding#DSA#Algorithms#Tech
๐ก Bursting Balloons โ DP Challenge! ๐
Given an array of balloons ๐ฏ, burst them wisely to maximize coins! ๐ฐ
๐น nums = [3,1,5,8]
๐น Max Coins = 167
๐จโ๐ป Used Memoization + Interval DP to optimize!
#LeetCode#Coding#DynamicProgramming#InterviewPrep#100DaysOfCode