Niraja K
@k_niraja
Followers
12
Following
58
Media
48
Statuses
53
🚀 Day 37: #LeetCode 204 → Count Primes Problem: Given a non‑negative integer n, count how many prime numbers are strictly less than n. Time Complexity: ~O(n log log n) Space Complexity: O(n) #100DaysOfCode #CodingChallenge #ProgrammingTips
0
0
1
Day 36 | LeetCode 206: Reverse Linked List Revisited this classic again today. Simple idea, sharp pointer control. One pass. No shortcuts.
0
0
0
Day 35 | LeetCode 303 Wrapped up “Range Sum Query – Immutable”. Simple idea: precompute prefix sums so each query is O(1). Small trick, big time save. On to the next one. 🚀
0
0
1
Day 34 — LeetCode 222: Count Complete Tree Nodes. Idea: compare left & right heights. If equal → perfect tree → nodes = 2^h − 1. Else → recurse on subtrees. Fast: O((log n)²). #100DaysOfCode #LeetCode #Day34
0
0
0
🧠 #Day33 of #LeetCode365 Problem: 225. Implement Stack using Queues 💡 Concept: Simulate LIFO (stack) behavior using FIFO (queue) operations. Use one queue — push element then rotate queue to make it act like a stack.
0
0
0
🚀 LeetCode Day 32: Reverse Words in a String III (557) 💡 Logic: Split → Reverse each word → Join back #LeetCode #100DaysOfCode #CodingChallenge #LearnToCode
1
0
0
Day 31 · LeetCode 1021 — Remove Outermost Parentheses Given a valid parentheses string, remove the outermost pair from every primitive. Idea: track depth; append ( only when depth > 0 (then depth++), on ) do depth-- then append ) only if depth > 0. O(n) time, O(1) extra.
0
0
0
🧩 LeetCode 682 – Baseball Game (Day 30) 📘 Concept: Stack 🥞 Rules: + → sum last 2 D → double last C → remove last int → add score 💡 Use stack → push/pop → sum total #LeetCode #100DaysOfCode #Stack
0
0
0
Day 29 – LeetCode 268: Missing Number Given an array containing n distinct numbers from [0, n], find the missing one.
0
0
2
Day 28 · Problem 350 — Intersection of Two Arrays II Given two arrays, return their intersection including duplicates. Order doesn’t matter. #100DaysOfCode #LeetCode
0
0
3
Day 27 | #100DaysOfLeetCode Problem: 242. Valid Anagram Topic: Hashing + Strings Difficulty: 🟢 Easy 💭 Goal: Check if two strings contain the exact same characters in the same frequency (just maybe jumbled up 👀). ✨ Logic: Count → Balance → Verify
0
0
1