Posts with #spaceComplexity

#spaceComplexity

Public posts on X that use #spaceComplexity.

Related hashtags

  1. Abby 𝕏@abby_bytes
    🧵🌟 Day 46 of #100DaysOfCode ! 🌟 Solving today's coding challenge from LeetCode! 🚀 Sharing my solution for the problem along with intuition, time complexity (TC), and space complexity (SC). Let's dive in! 💻💡 #100daysofcodechallenge #leetcode
    207294
  2. Abby 𝕏@abby_bytes
    @abby_bytes
    ⏰Time Complexity (TC): O(n^2) Since we need to explore all cells in the matrix, the time complexity is directly proportional to the number of cells, which is n^2. The BFS traversal visits each cell once. 📈 #TimeComplexity
    10118
  3. Abby 𝕏@abby_bytes
    @abby_bytes
    📊Space Complexity (SC): O(n^2) We use a queue to store the cells to be explored, which can grow up to n^2 cells in the worst case. Hence, the space complexity is O(n^2) due to the queue. 🧱 #SpaceComplexity
    10120
  4. Abby 𝕏@abby_bytes
    📢 Attention, coding enthusiasts! Join me in solving today's exhilarating Coding Challenge! 🚀 📅 Day 81 of #100DaysOfCode journey! 🔢 Problem: Minimal Length Subarray Sum 👇 Let's dive in! #100Devs
    109120
  5. Abby 𝕏@abby_bytes
    @abby_bytes
    📝 Code Summary contd: - If the sum condition is met, move the left pointer to minimize the subarray length. - Update the answer with the minimum subarray length found so far. - Repeat until the end of the array. - Return the answer or 0 if no subarray found.
    10213
  6. Abby 𝕏@abby_bytes
    @abby_bytes
    ⏰ Time Complexity: O(n) The algorithm iterates through the array once, performing constant-time operations at each step. 🛰️ Space Complexity: O(1) - The algorithm uses a constant amount of additional space. #TimeComplexity #SpaceComplexity
    10233
  7. Sanju@sanju3139
    #Day6 : Learning DSA with C++ Today I focused on understanding #TimeComplexity and #SpaceComplexity —two crucial concepts for writing efficient algorithms. 💡 Problem solved : 1.Time complexity of nested loops 2. Space complexity of an array-based algorithms. #Day6 #DSA
    Download
    00288
  8. Abby 𝕏@abby_bytes
    @abby_bytes
    📝 Approach contd: 4️⃣ Track the count of visited non-obstacle squares. 5️⃣ Count the number of successful paths from start to end. #Algorithm #Recursive
    10226
  9. Abby 𝕏@abby_bytes
    @abby_bytes
    ⏰ Time Complexity: O(4^(NM)) - In the worst case, we explore all possible paths. 💾 Space Complexity: O(NM) - Utilizing the call stack for recursive calls and auxiliary space for maintaining the grid. #TimeComplexity #SpaceComplexity
    10217
  10. Abby 𝕏@abby_bytes
    🎉 Just solved today's coding challenge! Sharing my solution as part of my daily coding challenge. Let's dive in! 🧵 🔥 Problem: Capture surrounded regions in a 2-D board of 'X' and 'O' by flipping 'O's into 'X's.
    Download
    10345
  11. Abby 𝕏@abby_bytes
    @abby_bytes
    ⏰ Time Complexity (TC): The time complexity of the solution is O(N * M), where N is the number of rows and M is the number of columns in the board. #TimeComplexity #BigO #CodingChallenge
    10129
  12. Abby 𝕏@abby_bytes
    @abby_bytes
    💾 Space Complexity (SC): The space complexity of the solution is also O(N * M) as we use additional space for the visited set or queue in DFS/BFS. #SpaceComplexity #Coding #MemoryUsage
    10116
  13. Abby 𝕏@abby_bytes
    🌟 Exciting day ahead! 🌟 Day 112 of #365DaysOfCode and I've got a brand new coding challenge from LeetCode! 💻 Time to dive in and conquer some code. 💪
    2114243
  14. Abby 𝕏@abby_bytes
    @abby_bytes
    📊 Time Complexity Analysis: As we iterate through each goal and song position, the time complexity is O(goal * n). We're calculating and storing values in a 2D DP array. Let's keep that code running efficiently! ⏰💨 #TimeComplexity #Optimization
    10211
  15. Abby 𝕏@abby_bytes
    @abby_bytes
    📚 Space Complexity Analysis: We use a 2D DP array to store intermediate values, leading to O(goal * n) space complexity. With careful memory management, we're ensuring smooth execution. 🧠💾 #SpaceComplexity #MemoryManagement
    10326
  16. Sourav Paul@paulsourav
    Everytime I see this performance, I wonder how beautifully this group pulled it off. Best use of space, but no compromise on the performance. Space complexity is at its best! #performance #spacecomplexity
    Poet Pradeep Kalra @PoetPradeep2211
    Norway Dancers are performing Amazing Dance on Indian Songs. Dance - 2 "Song - Tenu Kala Chasma" @DanceMoms @Bollywoodirect @mipaltan @NRC_Norway @dancersa1234 @BigBootyDancers @Indiandancer @DanceIndian @weddingdance @DanceWedding
    002
  17. Show more posts