asifhossain_cs's profile picture. Full Stack Dev & Competitive Programmer
ReactJS Dev @KodezenTeam || 1289 rated @Codeforces

• http://github.com/its-asif
• http://linkedin.com/in/asifhossain-cs/

Asif Hossain

@asifhossain_cs

Full Stack Dev & Competitive Programmer ReactJS Dev @KodezenTeam || 1289 rated @Codeforces • http://github.com/its-asif • http://linkedin.com/in/asifhossain-cs/

Tried #CF "24A. Ring Road" today Trick: - Build graph with two edges per road (one free, one with cost). - DFS around the cycle, add costs depending on chosen direction. - Answer = min(clockwise, counter-clockwise). problem: codeforces.com/contest/24/pro… #Codeforces #CP #Graphs

asifhossain_cs's tweet image. Tried #CF "24A. Ring Road" today

Trick:
- Build graph with two edges per road (one free, one with cost).
- DFS around the cycle, add costs depending on chosen direction.
- Answer = min(clockwise, counter-clockwise).

problem: codeforces.com/contest/24/pro…

#Codeforces #CP #Graphs

Keeps getting my account suspended!!😢😢


Solved CF – Rudolf and Snowflakes (simple) Insights: - Snowflake vertex counts follow a geometric sum: (k^{m+1}-1)/(k-1) - Not every n is possible (e.g., 6 ❌, 13 ✅) - Precompute all valid values ≤ 1e6 using different k probblem: codeforces.com/problemset/pro… #Codeforces #CP #DSA

asifhossain_cs's tweet image. Solved CF – Rudolf and Snowflakes (simple) 

Insights:
- Snowflake vertex counts follow a geometric sum: (k^{m+1}-1)/(k-1)
- Not every n is possible (e.g., 6 ❌, 13 ✅)
- Precompute all valid values ≤ 1e6 using different k

probblem: codeforces.com/problemset/pro…

#Codeforces #CP #DSA

Solved CF 2130B. Pathless Observation: - Alice can always loop back & forth to reach sums. - Only blocked if s < sum(a) or s == sum(a)+1. - Else, impossible → -1. Rearrangement trick → put 0s, then 2s, then 1s. Problem link: codeforces.com/problemset/pro… #Codeforces #CP #CPP

asifhossain_cs's tweet image. Solved CF 2130B. Pathless 

Observation:
- Alice can always loop back &amp;amp; forth to reach sums.
- Only blocked if s &amp;lt; sum(a) or s == sum(a)+1.
- Else, impossible → -1.
Rearrangement trick → put 0s, then 2s, then 1s.

Problem link: codeforces.com/problemset/pro…

#Codeforces #CP #CPP

Solved "Binary Tree Inorder Traversal" on LeetCode! Used classic recursion: - Traverse left subtree - Visit node - Traverse right subtree This gives the nodes in sorted order for BSTs. Problem link: leetcode.com/problems/binar… #LeetCode #BinaryTree #Coding #Graph_Theory

asifhossain_cs's tweet image. Solved &quot;Binary Tree Inorder Traversal&quot; on LeetCode!

Used classic recursion:
- Traverse left subtree
- Visit node
- Traverse right subtree

This gives the nodes in sorted order for BSTs.

Problem link: leetcode.com/problems/binar…

#LeetCode #BinaryTree #Coding #Graph_Theory

Solved LeetCode "Word Search"! Used DFS with backtracking: - For each cell, try to match the word recursively in 4 directions - Mark visited cells in-place (with #) to avoid revisiting - Restore cell with backtracking problem: leetcode.com/problems/word-… #LeetCode #Coding #DFS

asifhossain_cs's tweet image. Solved LeetCode &quot;Word Search&quot;!
Used DFS with backtracking:
- For each cell, try to match the word recursively in 4 directions
- Mark visited cells in-place (with #) to avoid revisiting
- Restore cell with backtracking

problem: leetcode.com/problems/word-…

#LeetCode #Coding #DFS

Solved "Is Graph Bipartite?" on LeetCode! Insight: - Used DFS with coloring - Assign colors (+1, -1) to nodes. - If a neighbor has the same color, it's not bipartite. - Handle disconnected graphs by checking all nodes. problem: leetcode.com/problems/is-gr… #LeetCode #GraphTheory

asifhossain_cs's tweet image. Solved &quot;Is Graph Bipartite?&quot; on LeetCode!

Insight:
- Used DFS with coloring
- Assign colors (+1, -1) to nodes.
- If a neighbor has the same color, it&apos;s not bipartite.
- Handle disconnected graphs by checking all nodes.

problem: leetcode.com/problems/is-gr…

#LeetCode #GraphTheory

I developed a Chrome extension to easily browse and jump to your ChatGPT messages. Ideal for anyone who needs to review past messages quickly 🔗 GitHub link: github.com/its-asif/ChatG… I’d love to hear your thoughts & suggestions for improvements! #ChromeExtension #ChatGPT


Asif Hossain reposted

🚀 Turn your Figma designs into stunning websites with aBlocks! 🎨✨ Copy & paste typography, colors, shadows, and strokes from Figma to WordPress in 1 click! Plus, 22+ blocks to build your site faster. 🌟 🔗 Download: wordpress.org/plugins/ablock…


Asif Hossain reposted

nextjs gets 400 req/s when rendering a hello world this is 170x slower than rendering the same thing with pure react

thdxr's tweet image. nextjs gets 400 req/s when rendering a hello world

this is 170x slower than rendering the same thing with pure react

Check out my Gig on Fiverr: help you build your project in mern stack fiverr.com/s/NNw4lZy


Hey everyone!! Happy to announce that I just achieved #LeetCode 50 Days Badge 2024 #100DaysOfCode #ProblemSolving #LearnInPublic #DSA #connect #buildinpublic

asifhossain_cs's tweet image. Hey everyone!!

Happy to announce that I just achieved #LeetCode 50 Days Badge 2024

#100DaysOfCode #ProblemSolving #LearnInPublic #DSA #connect #buildinpublic

#Day38 of #100daysofcoding Today's #Leetcode problem "1823. Find the Winner of the Circular Game" solved it in O(k * n) time complexity solution is easy as the k & n can be max 500 #ProblemSolving #100DaysOfCode #LearnInPublic #DSA #connect #letsconnect #buildinpublic #cpp

asifhossain_cs's tweet image. #Day38 of #100daysofcoding 

Today&apos;s #Leetcode problem &quot;1823. Find the Winner of the Circular Game&quot; 

solved it in O(k * n) time complexity

solution is easy as the k &amp;amp; n can be max 500

#ProblemSolving #100DaysOfCode #LearnInPublic #DSA #connect #letsconnect #buildinpublic #cpp

#Day37 of #100daysofcoding "1518. Water Bottles" - today's #Leetcode problem was another easy one... "Consistency is the key, See you tomorrow" #ProblemSolving #100DaysOfCode #LearnInPublic #DSA #connect #letsconnect #buildinpublic #cpp

asifhossain_cs's tweet image. #Day37 of #100daysofcoding 

&quot;1518. Water Bottles&quot; - today&apos;s #Leetcode problem was another easy one...

&quot;Consistency is the key, See you tomorrow&quot;

#ProblemSolving #100DaysOfCode #LearnInPublic #DSA #connect #letsconnect #buildinpublic #cpp

#Day36 of #100daysofcoding "2582. Pass the Pillow" - today's #Leetcode problem was an easy one... solved it in O(1) time & space complexity... #ProblemSolving #100DaysOfCode #LearnInPublic #DSA #connect #letsconnect #buildinpublic #cpp

asifhossain_cs's tweet image. #Day36 of #100daysofcoding 

&quot;2582. Pass the Pillow&quot; - today&apos;s #Leetcode problem was an easy one...
solved it in O(1) time &amp;amp; space complexity...

#ProblemSolving #100DaysOfCode #LearnInPublic #DSA #connect #letsconnect #buildinpublic #cpp

United States Trends

Loading...

Something went wrong.


Something went wrong.