HackerTrans
トップ新着トレンドコメント過去質問紹介求人

throwaway744678

no profile record

コメント

throwaway744678
·4 年前·議論
This does not match my experience here. Can you back that claim a bit?
throwaway744678
·5 年前·議論
You are not alone! This is completely unclear: the next guy reading your code will definitely "fix" the halting condition. I'd either handle i == 0 outside of the loop, or use something like:

    for (size_t j = size; j > 0; --j) {
        size_t i = j - 1;
        // etc.
Or even:

    for (size_t j = 0; j <= size; ++j) {
        size_t i = size - j;
        // etc.
throwaway744678
·5 年前·議論
The (implied) benefits you get is that you can work on interesting things, and probably get much more freedom in your day job. Looks very fine to me if done on a voluntary basis.
throwaway744678
·6 年前·議論
I can't tell if this is sarcasm, but anyways: obviously an actual chessboard is indeed 3d - as are all physical objects in our world. Yet a chessboard is effectively a 2d space: any piece position is completely defined by a row and a column.