New answers tagged memory-optimization
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 ...
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 ...
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 ...
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 ...
Top 50 recent answers are included
Related Tags
memory-optimization × 237performance × 104
python × 61
c++ × 47
java × 35
memory-management × 33
algorithm × 32
programming-challenge × 26
c × 24
python-3.x × 20
c# × 18
javascript × 13
beginner × 12
recursion × 8
time-limit-exceeded × 8
matrix × 8
sieve-of-eratosthenes × 8
strings × 7
file × 6
python-2.x × 5
interview-questions × 5
comparative-review × 5
numpy × 5
graph × 5
breadth-first-search × 5