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...
Type: Posts; User: suryak
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...
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...
got it. thanks.
# include <stdio.h>
int main()
{
int* res[10];
double* vol[10];
double* curr[10];
int i;
for (i = 0; i < 5; i++)
Can you please tell me the difference between these
typedef struct aStructure
{
int a;
} object;
@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 =...
what does that mean..
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 [...
I need prime factors.. that's the point.
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
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.
Could anyone tell me how to setup gtk+ in Dev C++.
I installed gtk+ using all-in-one windows binary along with glade.
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...
Yeah, got it. I wasn't looking at it. Thanks.
for (i=0;i<size;i++)
{
for (j=0;j<size;j++)
{
if(fscanf(ip_file,"%d",&sudoku[i][j])==1)
{
//copy to TempArr
...
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...
Thanks.. I forgot.. I could use strtok()..
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...
I even thought about it but the problem comes when I want something like this...
+-----+-----+
| | |
| | |
| | |
+-----+-----+
as printf() takes \n by default......
I'm looking to make a checkers board..
A typical square of checkers board looks like
+-----+
| |
| |
| |
+-----+
I mean the program should execute based on the run-time commands I create..
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.
I'd rather take a string as input and pass it. its working!
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...
Then I think. there is a problem with the compiler/ IDE.
Thanks for helping