#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 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 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 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