Welcome Message

Hi, welcome to my website. This is a place where you can get all the questions, puzzles, algorithms asked in interviews and their solutions. Feel free to contact me if you have any queries / suggestions and please leave your valuable comments.. Thanks for visiting -Pragya.

October 31, 2010

ServletResponse : getWriter() and getOutputStream()

getWriter() : returns PrintWriter Object that is used for writing character text.

getOutputStream() : returns ServletOutputStream Object used for writing binary data in response.

October 28, 2010

Mean - Median - Mode

Mean - Median - Mode are three words which I often confuse.

Mean : Average 
  • Arithmetic Mean (AM) : (a+b+c+....+n)/n 
  •                                                               1/n
  • Geometric Mean (GM) : (a*b*c*.....*n)

  • Harmonic Mean (HM) 
     AM >= GM >= HM

Median : Middle Value
     If we have a set of values, then mean of those can be found by arranging those values in ascending/      descending order and the middle value will be median.

Mode : Most frequently occuring value. Mode may / may not be unique.