Ad
  • Default User Avatar

    thanks, I used it for checking basic loop structures, but yes, I cannot ensure that recursion has been used.

  • Default User Avatar

    yep! thanks! fixed!

  • Default User Avatar

    second kata is not exactly the same problem, it is a different version. I haven't found any kata like this in C/C++.

  • Default User Avatar

    Fixed, thanks!

  • Default User Avatar

    For this kata users do not require to know how to use std::vector or iterators.

  • Default User Avatar

    yep, thanks! it makes sense..., I will implement that check, however, solver may come up with a trick to "bypass" almost any kind of regular expression looking for iterative structures. But it's worth to at least check the basic ones and look for iterative structures that have not been obfuscated.

  • Default User Avatar

    ok, thanks, I will add new tests where the contained matrix does not start from the first row of the A matrix.

  • Default User Avatar

    answer above.

  • Default User Avatar

    Thanks for your feedback, I will add some random test, although in this kata I am not sure if it really makes sense...., in any case, it always helps having some random input data. I will update the description to remove the "return" word so users don't get confused about it. Related to the use of the std::vector structure, this kata is focused on first years students of a programming course I teach in a Computer Science degree, and the use of std::vector is not allowed, we want them to first learn how to use plain arrays.

  • Default User Avatar

    Fixed! thanks for the feedback!

  • Default User Avatar

    because I want students to solve katas that are as simple as printing a pyramid of * on the screen, I tried redirecting the std::cout stream to a stringbuffer but I get a compiler error in the platform (https://stackoverflow.com/questions/5419356/redirect-stdout-stderr-to-a-string). any idea? otherwise I will have to force them to return a string or an array of characters since first year students still don't know how to use std::string, we prefer them to start using character arrays. thanks!

  • Default User Avatar

    is there any way to create a test in a C++ Kata that compares program output std::cout?? I´ve been trying it but I have not succeeded yet... thanks, using GTest is easy, but I don´t a get a way to do it using igloo

  • Default User Avatar

    thanks for the suggestions, I just started creating katas. I updated it with random tests :)