Skip to main content

All Questions

Filter by
Sorted by
Tagged with
6 votes
4 answers
412 views

Interview practice: Integer to Roman

Student here. I'm practicing for coding interviews right now. In that context, how would you recommend I improve my code for this practice problem? ...
Travis's user avatar
  • 161
5 votes
1 answer
1k views

Base conversion: decode and encode base to integer

I encountered this question as I am preparing for my code interview. I was implementing a base function that can decode and encode any bases from base 2 to base 36. I think my ...
NinjaG's user avatar
  • 2,489
2 votes
2 answers
634 views

Decimal number to binary number conversion in JavaScript

I made this decimal to binary conversion as an exercise for myself and because it is obviously often asked during job interviews / tests. Any hints concerning possible improvements welcomed. <...
michael.zech's user avatar
  • 4,516
4 votes
2 answers
10k views

JavaScript function to convert decimal number to binary

I was recently asked this in an interview for a front-end position and I came up with something like the code below, which seems to work but is clunky. (...
WinchenzoMagnifico's user avatar