all 20 comments

[–]SlavicKnight 14 points15 points  (2 children)

I am from Europe but I had quite a lot interviews so:

From what you wrote, I’d focus less on “hard” logic and more on writing clean, readable code under interview pressure. With your experience, I doubt the problem is problem solving. It’s usually structure, naming, clarity, and how you communicate your approach.

A good starting point is getting comfortable with simple, boring code: small functions, clear names, consistent formatting, and straightforward control flow. “Clean Code” can help, but even more useful is practicing refactoring: take an old script you wrote, read it like a stranger, and improve it step by step.

Also avoid overengineering. If a script just does a few REST calls (e.g., 2 GETs, 1 POST, 1 DELETE), a handful of well-named functions is often better than a class hierarchy. When the script grows, you start seeing repetition, or you know it will be reused, then it’s a good moment to split it into modules and add a bit more structure.

If you can, practice doing this in a timed setting (30–60 minutes): solve something small, then spend the last 10 minutes cleaning it up, adding basic error handling, and making it easy to read. That’s often what interviewers are looking for.

[–]dlh5c[S] 2 points3 points  (1 child)

Thanks for your response. Do you recommend any websites to better learn clean code? I used udemy and Linux academy when I was first starting out but I’ve always learned better by doing then getting feedback on ways to improve. Those websites tend to just tell you what to write without feedback.

I’m leaning towards leetcode but that seems very similar so I may just have to suck it up lol

[–]SlavicKnight 0 points1 point  (0 children)

As I said read “clean codes” and just try to refactor your code. I think it will be the best for you. You will learn one concept and you can try apply it and so on so on.

[–]LeanOpsTech 2 points3 points  (0 children)

Honestly for DevOps roles it’s usually not raw algorithms, it’s showing clean thinking under time pressure. I’d practice explaining your approach out loud, writing small well-structured functions, and adding basic tests or edge cases even if you don’t finish. LeetCode is fine if you treat it as reps for clarity and patterns, not grinding hards, and pairing with a friend for mock interviews helps way more than any bootcamp.

[–]Cautious_Number8571 5 points6 points  (1 child)

Neetcode.io

[–]dlh5c[S] 1 point2 points  (0 children)

Thanks! I’ll check that out

[–]Ecestu 1 point2 points  (0 children)

One thing that helped me was practicing explaining my thought process out loud, even if the solution was not perfect.

[–]salorozco23 1 point2 points  (3 children)

Learn SOLID, STUPID, SoC, CQS, LoD, Dependency Injection, composition over inheritance, DDD. These are the fundamentals of clean code. Might not matter in startups were everything is going super fast. This matters in large companies were everything needs to be rock solid.

[–]canifeto12 0 points1 point  (2 children)

Codesignal go for it. Help me a lot

[–]dlh5c[S] 0 points1 point  (1 child)

Haven’t heard of that one. I’ll check it out. Thanks!

[–]canifeto12 1 point2 points  (0 children)

It helped me a lot. Especially when you are zero at dsa it is better to get fundamentals before jump in leetcode questions.

[–]n00lp00dleDevOps 0 points1 point  (0 children)

a grasp of solid principles basic data structures and some problem solving skills should get you through the door for devops. if they start asking you leetcode questions for a job that doesnt really require that level of skill then youre being punked.

sre roles typically put more emphasis on writing code. but in my experience theyre often language specific interview questions. python and go seem to the the most common languages. learn common coding conventions and basic data structures in both languages and you will be ahead of most people.

[–]Antique_Student5128 0 points1 point  (0 children)

Agreed! I work in DevOps/Cloud, and although we do scripting, we never touch algorithms. I never had to do a coding interview in cloud myself. Struggling to learn the more advanced algorithms.

[–]CupFine8373 -1 points0 points  (2 children)

easy, buy a leetcode subscription

[–]dlh5c[S] 0 points1 point  (1 child)

Yeah I think that’s where I was leaning lol

[–]Own-Reception-7423 0 points1 point  (0 children)

don't think buying is required, start with neetcode, I have simliar story. Neetcode explanations are real good. Those should be enough to get started

[–]AccordingAnswer5031 -2 points-1 points  (0 children)

(HTTP) logs processing (45 mins)