Currently, I have been digging up my old codes. One of the applications I worked on was an Image editing phone app that displays a collection of random pictures from a user's picture, which I limited to less than 80 pictures because of performance. These random pictures are chosen from different ...
@syb0rg Cmake couldn't find sphinxbase for me, here's the error message: `CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.2/Modules`/ExternalProject.cmake:1696 (message): error: could not find git for clone of sphinxbase`
though that's not really a dealbreaker, usually I download this stuff separately anyway
it ... ends abruptly with "the code is broken" and you can't review anything from there
because from contradiction, you can prove anything.
(okay that's a bit of a leap but still, large swaths of commentary that seems reasonable can be wiped out by OP stating "oh yeah that, it was a bug, nvm, fixed it" and there goes (for example) your optimization based on all values being positive values)
This method tests an array of integers satisfies to see if its a max binary heap. This means
each node is greater than or equal to it's children
each node has at most 2 children
the leaf nodes are filled from left to right
This is for heaps that do not use element 0. See here.
/*returns true...
at the time, it was VTCd broken code via the code, no comment, obvious in hindsight but it slipped my grasp; had I compiled the code via Ideone (a 15 second effort) I would have known
> Questions containing broken code or asking for advice about code not yet written are off-topic, as the code is not ready for review. After the question has been edited to contain working code, we will consider reopening it.
@Phrancis situation as follows: OP says code is fine. Someone else votes to close the question because the code is not fine. We're left guessing in what way the code is not fine.
@Pimgd That's all well and good, but enforcing it would be completely voluntary, and more to the point, the users least likely to follow guidelines are the users most likely to do exactly what the guidelines warn against
@Pimgd That is a fair point I think, although, perhaps someone's question (on-topic or otherwise) is not the best place to educate another, unrelated user
Well, I'm curious how @Pimgd would word that guideline, if it were to be something that we would refer to for time to come, it really sounds more like some unwritten rule that most people just kind of figure out after a while (by the time they reach VTC privileges, most likely)