#leetcodecontest — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #leetcodecontest, aggregated by home.social.
-
☑️ Day 40/100: #Leetcode daily question
🟨 Question: 2275. Largest Combination With Bitwise AND Greater Than Zero
This was an easy one for medium and I solved it using index bit count.
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/minimumNumberofChangestoMakeBinaryStringBeautiful
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
-
☑️ Day 39/100: #Leetcode daily question
🟨 Question: 3011. Find if Array Can Be Sorted
This was an easy one for medium and I solved it using bubble sort.
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/minimumNumberofChangestoMakeBinaryStringBeautiful
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
-
☑️ Day 38/100: #Leetcode daily question
🟨 Question: 2914. Minimum Number of Changes to Make Binary String Beautiful
This was an easy one for medium but idk why I need to see the soluiton
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/minimumNumberofChangestoMakeBinaryStringBeautiful
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
-
☑️ Day 37/100: #Leetcode daily question
🟩 Question: 3163. String Compression III
Easy question
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/rotateString
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
-
☑️ Day 36/100: #Leetcode daily question
🟩 Question: 796. Rotate String
Easy question
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/rotateString
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
-
☑️ Day 35/100: #Leetcode daily question
🟩 Question: 2490. Circular Sentence
Easy question but I did it hard way I guess and complicated the solution
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/circularSentence
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
-
☑️ Day 34/100: #Leetcode daily question
🟩 Question: 1957. Delete Characters to Make Fancy String
Easy question
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/deleteCharacterstoMakeFancyString
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
-
☑️ Day 33/100: #Leetcode daily question
🟥 Question: 2463. Minimum Total Distance Traveled
This is a very good difficult question, and I obviously need to look a solution. Solved it using dp
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/minimumTotalDistanceTraveled
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
-
☑️ Day 32/100: #Leetcode daily question
🟨 Question: 1671. Minimum Number of Removals to Make Mountain Array
This is a very good difficult question, and I obviously need to look a solution. This was solved using the lowest increasing decreasing subarray method.
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/minimumNumberofRemovalstoMakeMountainArray
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
-
☑️ Day 31/100: #Leetcode daily question
🟨 Question: 2684. Maximum Number of Moves in a Grid
Easy dp question but need to see the solution maybe I was too last to solve that day
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/maximumNumberofMovesinaGrid
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
-
☑️ Day 30/100: #Leetcode daily question
🟨 Question: 2501. Longest Square Streak in an Array
Easy question
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/longestSquareStreakinanArray
🔗 My Leetcode Github: https://github.com/akshatsingh1718
-
☑️ Day 29/100: #Leetcode daily question
🟨 Question: 1277. Count Square Submatrices with All Ones
Medium question and I need to check the solution but good learning
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/countSquareSubmatriceswithAllOnes
🔗 My Leetcode Github: https://github.com/akshatsingh1718
-
☑️ Day 28/100: #Leetcode daily question
🟥 Question: 2458. Height of Binary Tree After Subtree Removal Queries
Hard tree question but learnt a lot
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/heightofBinaryTreeAfterSubtreeRemovalQueries
🔗 My Leetcode Github: https://github.com/akshatsingh1718
-
☑️ Day 27/100: #Leetcode daily question
🟨 Question: 1233. Remove Sub-Folders from the Filesystem
Easy question
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/removeSub-FoldersfromtheFilesystem
🔗 My Leetcode Github: https://github.com/akshatsingh1718
-
☑️ Day 26/100: #Leetcode daily question
🟨 Question: 951. Flip Equivalent Binary Trees
Good binary tree question and I did see the approach but got good understanding of tree questions
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 My Leetcode Github: https://github.com/akshatsingh1718
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/flipEquivalentBinaryTrees
-
☑️ Day 25/100: #Leetcode daily question
🟨 Question: 2641. Cousins in Binary Tree II
Easy binary tree question but I saw the solution, could be done without seeing it.
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/cousinsinBinaryTreeII
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
-
☑️ Day 24/100: #Leetcode daily question
🟨 Question: 2583. Kth Largest Sum in a Binary Tree
Easy binary tree question
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/kthLargestSuminaBinaryTree
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
-
☑️ Day 23/100: #Leetcode daily question
🟨 Question: 1593. Split a String Into the Max Number of Unique Substrings
This question was marked as medium and it was really a good one and I need to look for a solution.
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/splitaStringIntotheMaxNumberofUniqueSubstrings
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
-
☑️ Day 22/100: #Leetcode daily question
🟥 Question: 1106. Parsing A Boolean Expression
This question marked as hard but after looking at the solution it looks very easy and I did find out that it needs to be solved using stack.
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/parsingABooleanExpression
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
-
☑️ Day 21/100: #Leetcode daily question
🟨 Question: 1545. Find Kth Bit in Nth Binary String
This question was a tricky one and I need to look for a solution and it shows me how people think of a solution In a recursive way.
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/findKthBitinNthBinaryString
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
-
☑️ Day 20/100: #Leetcode daily question
🟨 Question: 2044. Count Number of Maximum Bitwise-OR Subsets
Today's question was an easy one and can be done simply finding out all the subsets and store their sum as dict key and increment +1 to the value.
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/countNumberofMaximumBitwise-ORSubsets
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
-
☑️ Day 19/100: #Leetcode daily question
🟨 Question: 670. Maximum Swap
The question was good and I was able to do it but went for the solutions tab because I was not feeling like solving anymore. The solution was using a greedy approach.
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/maximumSwap
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
-
☑️ Day 18/100: #Leetcode daily question
🟨 Question: 1405. Longest Happy String
The question was good and I did it in 45 mins. I was able to solve it using max function and other was to use heap.
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/longestHappyString
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
-
☑️ Day 17/100: #Leetcode daily question
🟨 Question:2938. Separate Black and White Balls
The question was easy I got it using 2 ptr approach.
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/separateBlackandWhiteBalls
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
-
☑️ Day 13/100: #Leetcode daily question
🟨 Question:1942. The Number of the Smallest Unoccupied Chair
The question was tricky and I had to see the solution tab sadly. But I did learn how to use min heap for assigning the lowest value we can.
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/theNumberoftheSmallestUnoccupiedChair
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
-
☑️ Day 9/100: #Leetcode daily question
🟨 Question: 241. Different Ways to Add Parentheses
Today's question was a 🟥 hard one for me where we needed to put parenthesis over different positions to find other expressions' results.I did the question using #recursion
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/largestNumber
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
-
☑️ Day 8/100: #Leetcode daily question
🟨 Question: 179. Largest Number
Today's question was good and can be answered using a custom sorting function. I did this with 3 approaches:
1. Built-in sort (provided custom key fn).
2. #quicksort
3. #MergeSort🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/largestNumber
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
-
☑️ Day 6/100: #Leetcode daily question
🟩 Question: 884. Uncommon Words from Two Sentences
Today's question was an easy one and involved counting algo.
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/uncommonWordsfromTwoSentences
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
-
☑️ Day 6/100: #Leetcode daily question
🟨 Question: 539. Minimum Time Difference
Today's question was on Sorting & Two Pointers.
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/minimumTimeDifference
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
#coding #python #dailycode -
☑️ Day 5/100: #Leetcode daily question
🟨 Question: 1371. Find the Longest Substring Containing Vowels in Even Counts
This question was medium-level and a really good question of bit masking.
🐈⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions
🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/findtheLongestSubstringContainingVowelsinEvenCounts
🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode
#coding #python #dailycode #Bitmasking