Re: How to make a prog more efieiant (in C)

2006-12-01 Thread Jabka Atu
Sorry if i mislead some one im just trieng to make my progy work better. (It's an HW assignment) btw do you mean :res_3 simatric ? char res_2,res_3; res_2=(char)num; res_3=res_2; then loop to rearnge the res_2 and (res_2==res_3)?0:1; ? On 12/1/06, Kevin Ross <[EMAIL PROTECTED]> wrote: Is this f

Re: How to make a prog more efieiant (in C)

2006-11-30 Thread Kevin Ross
Is this from a recent job interview, with whiteboard programming questions? Anyway, get_max_digit() and get_sum_digits() seem perfectly reasonable. For reverse_num() and is_symmetric(), about the only other approach I can think of is converting the numbers to strings first, do your manipulation