111
submitted 4 weeks ago by tomatol@lemmy.world to c/asklemmy@lemmy.ml

Seriously, been working as a software developer for 9 years now and never passed a single coding test.

The jobs I got were always the ones giving me weekend projects or just no coding test at all.

I have a job opportunity that looks exciting but they sent me this coding test link and I know I'm gonna fail for sure. Any tips aside from the obvious (practicing in advance on leetcode etc)?

you are viewing a single comment's thread
view the rest of the comments
[-] magic_lobster_party@kbin.run 3 points 4 weeks ago

What is it you struggle most with? The type of questions? The time pressure? Anxiety?

[-] tomatol@lemmy.world 3 points 4 weeks ago* (last edited 4 weeks ago)

The type of questions are really bizarre. Time pressure also.

I am a mobile dev so my day to day is dealing with UI, api requests, writing test cases, CI/CD stuff...

This is one example I remember being in a test: https://www.geeksforgeeks.org/the-skyline-problem-using-divide-and-conquer-algorithm/

In that case it was books in a shelf and some other additions but yeah it's not something that I relate to at all.

[-] magic_lobster_party@kbin.run 4 points 4 weeks ago

Yeah, those kind of questions are silly and don’t reflect problems that happen in real life.

My advice when you get a question similar to this is to have a pen and paper at hand. Draw a few easy examples and find a solve those systematically by hand. From there you go to harder and harder examples and adapt your system for those examples. Try to find examples where your system fails.

Once you’re confident you’ve found all corner cases you can start to write down the algorithm.

That’s the advice I can give. Hope it helps!

[-] tomatol@lemmy.world 1 points 4 weeks ago
[-] magic_lobster_party@kbin.run 2 points 4 weeks ago

When I think about it, what I just wrote is basically test driven development, but by hand on a piece of paper.

load more comments (2 replies)
this post was submitted on 04 May 2024
111 points (99.1% liked)

Asklemmy

42194 readers
1374 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy 🔍

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS