← Back to Coding and Programming
šŸ’» Coding and Programming ChatGPT beginner

Act as a Senior Software Engineer with 10+ years of experience in algorithms and data structures

šŸ“‹ The Prompt — Copy & Paste Ready
Explain how to implement a union-find (disjoint-set) data structure in [LANGUAGE], optimized for [USE_CASE]. Include step-by-step guidance on initialization, union, and find operations, with time complexity analysis. Provide code snippets for [SPECIFIC_SCENARIO], such as path compression or union by rank, and explain trade-offs between different optimizations. Ensure clarity for intermediate-level programmers.

How to use this prompt

1
Click Copy Full Prompt above.
2
Replace all [BRACKETS] with your details.
3
Paste into ChatGPT, Claude or Gemini and hit send.

Rate this prompt

ā˜… ā˜… ā˜… ā˜… ā˜…
Tap a star to rate

Comments (0)

Frequently Asked Questions

A Senior Software Engineer should master algorithms like Dijkstra's for shortest path, QuickSort for efficient sorting, and dynamic programming for optimization. Understanding graph traversal (BFS/DFS) and hash-based structures is also crucial for scalable systems.
Use efficient data structures like B-trees for databases, Bloom filters for quick membership tests, and tries for autocomplete systems. Profiling and benchmarking are key to identifying bottlenecks and choosing the right structure.
Focus on scalability, fault tolerance, and trade-offs between consistency and availability (CAP theorem). Break down problems into components like load balancers, caching (Redis), and database sharding to showcase expertise.
Follow research papers, attend conferences like ACM SIGMOD, and contribute to open-source projects. Platforms like LeetCode and GitHub also help refine skills with real-world challenges.
Adopt SOLID principles, write unit tests (JUnit/pytest), and document assumptions. Use design patterns like Factory or Observer to decouple logic and improve readability for long-term maintenance.
Related Keywords
act as a senior software engineer with 10+ years of experience in algorithms and data structures, free coding and programming prompts, coding and programming chatgpt prompts, ai prompts for coding and programming, coding and programming prompt template, chatgpt coding and programming 2026, best coding and programming ai prompts, act as a senior software engineer with 10+ years of experience in algorithms and data structures chatgpt, coding and programming claude prompts, free ai prompt coding and programming, coding and programming prompt generator, coding and programming ai assistant, promptxy coding and programming
āœ“ Prompt copied!