Search:

Type: Posts; User: suryak

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    25
    Views
    20,652

    Finding a palindrome is easy.. I agree get a look...

    Finding a palindrome is easy.. I agree get a look at the question:
    For a given number n: we need to find next smallest number. If n=100, 101 is next palindrome.

    What we typically do is:
    1. take...
  2. Replies
    25
    Views
    20,652

    How to handle very large number in C

    I am new to solving algorithm puzzles, thinking to start using C for a while.

    One thing I observe in puzzles is they demand very very large numbers (eg: of order 100000 digits number) which...
  3. Replies
    5
    Views
    1,481

    got it. thanks.

    got it. thanks.
  4. Replies
    5
    Views
    1,481

    why is this pointer showing a large value?

    # include <stdio.h>

    int main()
    {
    int* res[10];
    double* vol[10];
    double* curr[10];
    int i;

    for (i = 0; i < 5; i++)
  5. Replies
    1
    Views
    1,231

    A simple question on structures

    Can you please tell me the difference between these



    typedef struct aStructure
    {
    int a;
    } object;
  6. Replies
    12
    Views
    2,559

    @iMalc... could you tell me more about this...

    @iMalc... could you tell me more about this frequency method.

    @Andrew: Whether its n! or n! ^ 2.. as long as n value is high..
    Its not a good approach to iterate all values from 1 to n if n =...
  7. Replies
    12
    Views
    2,559

    what does that mean..

    what does that mean..
  8. Replies
    12
    Views
    2,559

    Actually, what I've said you is a part of...

    Actually, what I've said you is a part of program... sorry for not disclosing everything.
    The mathematical analysis for the puzzle ends at finding number of positive integral factors of (n!)^2 [...
  9. Replies
    12
    Views
    2,559

    I need prime factors.. that's the point.

    I need prime factors.. that's the point.
  10. Replies
    12
    Views
    2,559

    how to find factors of n! (No brute force)

    How to find factors of a number (n!)^2.

    If its for N, its easy to solve.. but its like N! ^ 2.. I am worried. Brute force wouldn't work here. so, how to solve??

    got any idea? please post it
  11. Replies
    1
    Views
    4,162

    I downloaded all-in-one bundle from gtk.org and...

    I downloaded all-in-one bundle from gtk.org and installed using "package manager".. when I tried to run the basic code .. its showing me error
    gtk/gtk.h: No such file or directory.
  12. Replies
    1
    Views
    4,162

    how to setup gtk+ in Dev Cpp

    Could anyone tell me how to setup gtk+ in Dev C++.

    I installed gtk+ using all-in-one windows binary along with glade.
  13. Replies
    2
    Views
    4,767

    How to setup a multiplayer game

    I am writing a multiplayer game (name: Bingo).. Its played using numbers 1 - 25.

    So, I want my friends/ players to connect via internet. In this game, each player will get a chance to pass a...
  14. Replies
    2
    Views
    2,861

    Solved!

    Yeah, got it. I wasn't looking at it. Thanks.
  15. Replies
    2
    Views
    2,861

    Unable to assign to a variable

    for (i=0;i<size;i++)
    {
    for (j=0;j<size;j++)
    {
    if(fscanf(ip_file,"%d",&sudoku[i][j])==1)
    {
    //copy to TempArr
    ...
  16. Replies
    21
    Views
    4,434

    yes, CommonTater's 1st threat solution is not...

    yes, CommonTater's 1st threat solution is not working...

    But guys I'm just not looking for string like this rows:2 but after rowsif can be any non-numeric char that has to be eliminated...
    I...
  17. Replies
    21
    Views
    4,434

    Thanks.. I forgot.. I could use strtok()..

    Thanks.. I forgot.. I could use strtok()..
  18. Replies
    21
    Views
    4,434

    how to take integer from a string

    If I have a input string like
    rows: 3

    I'd like to assign that "rows" to a particular string and "3" to a integer variable. how do I do it...

    similar to python where I simply take


    val...
  19. Thread: Checkers board

    by suryak
    Replies
    3
    Views
    4,790

    I even thought about it but the problem comes...

    I even thought about it but the problem comes when I want something like this...


    +-----+-----+
    | | |
    | | |
    | | |
    +-----+-----+

    as printf() takes \n by default......
  20. Thread: Checkers board

    by suryak
    Replies
    3
    Views
    4,790

    Checkers board

    I'm looking to make a checkers board..
    A typical square of checkers board looks like


    +-----+
    | |
    | |
    | |
    +-----+
  21. Replies
    2
    Views
    1,715

    I mean the program should execute based on the...

    I mean the program should execute based on the run-time commands I create..
  22. Replies
    2
    Views
    1,715

    how to define run-time commands in C

    I'd like to make a small program which requires it to run on base of run-time commands...
    like "quit".. to quit. "help" -- show a small doc for help.
    ..

    how could I handle this kind of things.
  23. Replies
    11
    Views
    4,560

    I'd rather take a string as input and pass it....

    I'd rather take a string as input and pass it. its working!
  24. Replies
    11
    Views
    4,560

    Can you tell me why this error is coming.. I was...

    Can you tell me why this error is coming.. I was rebuilding all my code so, this was pointed out.
    20 D:\sudoku\main.c [Warning] passing arg 1 of `input' from incompatible pointer type

    This is...
  25. Replies
    11
    Views
    4,560

    Then I think. there is a problem with the...

    Then I think. there is a problem with the compiler/ IDE.
    Thanks for helping
Results 1 to 25 of 114
Page 1 of 5 1 2 3 4