Recent content by Gagan A

  1. G

    Think of a good algorithm for this program

    I just can't think of a good algorithm for this program after two days. There are n persons (you take n from the user) and you have to permute them in room 1 and room 2 for all possible number of permutations. If the number of persons in a room are same then they should be sorted according to...
  2. G

    Is Pluto Still a Planet? The Controversial Decision to Downsize the Solar System

    One page less in science textbooks and one more in history textbooks. :wink:
  3. G

    I think the PF clock is off by 27 minutes.

    It is 12 minutes behind here.
  4. G

    What courses are you taking this semester?

    Computer Programming Maths (Advanced Calculus) Physical Sciences (Not sure till now what we are going to learn in this. :confused: ) Digital Logic Design English and I should not forget the stupidest subject - Human Values :devil: .
  5. G

    So what did you do while PF was down?

    I completed my assignments faster than I usually do. But maybe it is because of the tests starting (and ending too, in 3 days) starting from next week. :cry: :cry:
  6. G

    Site Down? PF Access Troubles Today

    Ya, they might be catching on their sleep right now.. :zzz: :zzz: :zzz: :zzz:
  7. G

    Site Down? PF Access Troubles Today

    I was not able to access the site for the last two days... Some database error
  8. G

    C program to mimic wc command in UNIX

    I did it the following way. The number of characters and lines are coming out fine, but the words are usually more than the actual given by wc. #include<stdio.h> int main() { FILE *fp; int words=0,chars=0,lines=0; char prev,curr; //prev variable is included to...
  9. G

    Dell recalls 4.1M exploding Li-Ion batteries

    :smile: :smile: :smile: :smile: :smile: This one's is really good. I am buying a laptop in Jan. I hope the exploding feature is removed by then.
  10. G

    The Commonly Confused Words Test

    English Genius You scored 100% Beginner, 92% Intermediate, 100% Advanced, and 80% Expert! You did so extremely well, even I can't find a word to describe your excellence! You have the uncommon intelligence necessary to understand things that most people don't. You have an extensive vocabulary...
  11. G

    Are You a Nerd, Geek, or Dork? Take the Test!

    Outcast Genius 65 % Nerd, 78% Geek, 78% Dork For The Record: A Nerd is someone who is passionate about learning/being smart/academia. A Geek is someone who is passionate about some particular area or subject, often an obscure or difficult one. A Dork is someone who has difficulty with...
  12. G

    Number of Digits in n!: Coding a Program for 500! Factorial

    I too verified with the teacher, the answer is 1135. But how in heaven did you calculate the value of 500!, chroot? What is the maximum precision of the calculator you used?
  13. G

    Number of Digits in n!: Coding a Program for 500! Factorial

    I have to code a program in C that will give the correct number of digits of n! where n is upto 500. I thought this way: Get the value of log(n!) by using a for loop. (like log1 + log2 + log3... upto logn, log is to the base 10). Now the final answer will be (int)sum + 1. If I give 500...
  14. G

    Is This Site Meant to Unite Physics Enthusiasts for Interaction?

    What if someone does not have a MSN account, like me?
  15. G

    C program to check whether a point lies inside a triangle

    Ok the question goes as: Take four co-ordinates and check whether the fourth coordinate lies inside the triangle. I first did it with the area concept, that is, find the area of the whole triangle, then find the area of the three trangles formed by the fourth coordinate. if the sum of the...
Back
Top