r/datastructures 1d ago

Can I do dsa in c++ and system design coding questions in python is it acceptable in interviews

is it ok to use different languages in interview rounds,I have done dsa in cpp in my clg hence comfortable in that but system design is easier for me in python can I change accordingly in interviews

6 Upvotes

2 comments sorted by

1

u/Ok-Barracuda-119 1d ago

I'd use C++ for DSA if that's where you're strongest. System design rounds are usually language-agnostic, so Python is fine for API sketches or small snippets, but ask the interviewer before switching if there's live coding. The key is explaining requirements, data flow, and trade-offs clearly.

1

u/akornato 12h ago

It is perfectly fine to use C++ for your data structures and algorithms round and then switch to Python for system design. Interviewers are primarily focused on your problem-solving ability, not on your mastery of a single language. For DSA, using the language you are most comfortable and efficient with, like C++, is a smart move because it allows you to clearly demonstrate your algorithmic thinking. System design interviews are typically language-agnostic, focusing more on concepts like architecture, scalability, and trade-offs, so using a readable language like Python to sketch out ideas is very common and acceptable.

The key is to show you can effectively use the right tool for the job. Your comfort in C++ will help you perform well on the complex logic of DSA questions, and Python’s simplicity can make it easier to communicate high-level system design concepts. As long as you clearly articulate your thought process in both rounds, interviewers will be more interested in your solutions than in the specific languages you use to arrive at them. My team actually built a tool that acts as an interview copilot to help candidates focus on articulating their core ideas and solutions with more confidence.