Search:

Type: Posts; User: Togra

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,417

    Interesting... Let's give this some thought! Any...

    Interesting... Let's give this some thought!
    Any opinions on the event? Who of you will participate?
  2. Replies
    20
    Views
    4,226

    Poll: I might participate in an AI contest, but...

    I might participate in an AI contest, but probably not if it's about card games (don't know much of them, don't like them). Sorry!
  3. Replies
    28
    Views
    4,419

    What did I do wrong :S? You set the rules,...

    What did I do wrong :S?

    You set the rules, participants should obey them imo. If breaking the rules goes unpunished, it's not very fair to the other contestants... Furthermore, as a contest host...
  4. Replies
    28
    Views
    4,419

    Hmm, I see the point. Whoops!

    Hmm, I see the point. Whoops!
  5. Replies
    28
    Views
    4,419

    [troll-mode] howMany2(0) == 1?...

    [troll-mode]



    howMany2(0) == 1?
    [/troll-mode]

    :)
    I could have guessed you would participate here.
  6. Replies
    28
    Views
    4,419

    The hard problems weren't so hard imho - harder...

    The hard problems weren't so hard imho - harder to understand than to write down in code. I had most fun with the medium problem since it required solving some subproblems along the way.

    I hope...
  7. Replies
    4
    Views
    804

    Close... 5! = 120.

    Close... 5! = 120.
  8. Replies
    43
    Views
    4,442

    I think the challenges were a little too easy....

    I think the challenges were a little too easy. But I enjoyed them nonetheless! Mathematical problems / shortcuts are fun, keep 'em coming.

    A totally different kind of contest is "code brevity". I...
  9. Replies
    43
    Views
    4,442

    Are you sure about that? I know about two-step...

    Are you sure about that? I know about two-step recurrence, but the method I used is nothing like that. But maybe you got something entirely different...
  10. Replies
    43
    Views
    4,442

    Just submitted all 4.

    Just submitted all 4.
  11. Replies
    10
    Views
    1,688

    Better create a general numeric-to-string...

    Better create a general numeric-to-string conversion template, then catenate the strings with standard operator+.
  12. Thread: Minesweeper AI

    by Togra
    Replies
    34
    Views
    7,108

    I don't think so. You mean Darryl's examples,...

    I don't think so. You mean Darryl's examples, right?

    # + # + #
    # # # # #
    gives a 1 bottom left, after which we have 1/3 and 1/6 guessing options.

    + + # # #
    # # # # #
    gives me
    ? ? 1 0 0
  13. Replies
    6
    Views
    957

    If argc == 1, the test on the second loop will...

    If argc == 1, the test on the second loop will generate a segfault. a && b works as follows: first a is tested, if it is true b will be evaluated. Remedy: put argc check in front.
    Third loop ... :S?...
  14. Thread: Minesweeper AI

    by Togra
    Replies
    34
    Views
    7,108

    It might be easier for our contest host Shakti to...

    It might be easier for our contest host Shakti to leave in the probabilistic element, which just belongs to the game. But at least try to minimalize its effect by letting the players solvers run on...
  15. Thread: Minesweeper AI

    by Togra
    Replies
    34
    Views
    7,108

    The way I see it, GetPosition() tells the player...

    The way I see it, GetPosition() tells the player where the mines are - that's no fun! Please define "selected" and "iteration".

    Obviously, you will generate a field and have us solve it. To get a...
  16. Replies
    43
    Views
    4,442

    Yeah, but I find myself revising them over and...

    Yeah, but I find myself revising them over and over again. So to save you some copy-paste-work, you'll recieve all four of them just before the deadline.
  17. Thread: Chess Tournament

    by Togra
    Replies
    26
    Views
    5,071

    Poll: I think chess will be too complex, at least I...

    I think chess will be too complex, at least I won't have enough time to participate.
    Something like the "Connect 4" contest from a while ago would be really fun... If only I had noticed that...
  18. Replies
    43
    Views
    4,442

    By sending a PM to PYJelton. See...

    By sending a PM to PYJelton. See http://cboard.cprogramming.com/showthread.php?t=62539 for details.
  19. Replies
    43
    Views
    4,442

    This may sound obvious or dumb, but I believe we...

    This may sound obvious or dumb, but I believe we should be clear about it.

    How about precomputing values? Like


    int howMany2(int k)
    {
    static int precomputed[26] = {<insert correct values...
  20. Replies
    43
    Views
    4,442

    Me too, now working on "medium". I think the...

    Me too, now working on "medium".
    I think the "easy" problem will be the hardest for me. It requires reading and understanding 'n' stuff ;).

    [edit]
    Question on "medium": may I assume that no...
  21. Thread: BruteForce

    by Togra
    Replies
    2
    Views
    997

    Try recursion. Something like this: #include...

    Try recursion. Something like this:


    #include <stdio.h>

    char alfabet[] = "abcdefghijklmnopqrstuvwxyz";
    static char buf[27];

    void func(int n)
    {
  22. Replies
    1
    Views
    1,265

    Are you sure it's an infinite loop? Then check if...

    Are you sure it's an infinite loop? Then check if your submatrix is really decreasing in size. Take a 3-3 test matrix and print lot's of stuff to see if it works ok.

    For larger matrices, your...
  23. Replies
    9
    Views
    1,105

    I can't make much of your code... it seems to be...

    I can't make much of your code... it seems to be incomplete and is poorly indented.
    Only problem I can think of is 'tempi': perhaps you meant 'tempi1' and 'tempi2'?
  24. Replies
    7
    Views
    1,395

    :) Asagohan, now you help us out here!

    :)
    Asagohan, now you help us out here!
  25. Replies
    7
    Views
    1,395

    Asagohan might want to find the largest element...

    Asagohan might want to find the largest element between two variable bounds (that's how I interpret his question). So linear search would mean doing the same thing over and over again, if the search...
Results 1 to 25 of 38
Page 1 of 2 1 2