Skip to main content

New answers tagged

8 votes
Accepted

Memory-optimizing arduino code to be able to print all files from SD card

The code has multiple possible points of improvement with respect to the Arduino Nano's memory limitations. Let's start by stating the current memory consumption. Compiling your sketch with PlatformIO ...
Maximilian Gerhardt's user avatar
4 votes

HackerRank, Haskell simple "compression" algorithm

I agree with some of the criticism mentioned in the other review, notably: You're trying to write a function from String to String, so you should have such a function. In general, be more eager to ...
Rainer P.'s user avatar
  • 2,727
2 votes
Accepted

Check which sinks are connected in the pipe system using Python

algorithm I did not use [BFS] as there are multiple conditions to take care of. Sorry, I didn't follow the reasoning there. One could profitably apply either BFS or DFS to this problem. There is an ...
J_H's user avatar
  • 32.4k
3 votes

HackerRank, Haskell simple "compression" algorithm

There are a lot of tools Haskell provides for doing things like this elegantly; I'll try to limit my feedback to boring solutions that will be helpful. You're trying to write a function from ...
ShapeOfMatter's user avatar

Top 50 recent answers are included