Saturday, September 10, 2011

Startup comment

I will post a new algorithm problem regularly. I don't guarantee daily, but at least once a week. I will also try to post a possible hint, but that does not mean it will lead to optimal solution. As I mentioned, it will be just a hint. I welcome comments (as possible solutions) to the question/problem.
I understand that there are other sites that might be doing the same. But my intention of this blog post is to keep the people around the world provide valuable insights to others and share knowledge...in benefit to others. Who knows, together, we can take this post to new heights where it becomes really valuable and unique.
All ideas for improvements are welcome.
Let's help each other! :)

5 comments:

  1. Problem:
    How to generate a hash code for a string?

    ReplyDelete
  2. Here is the link I found that have some good examples of generating a hash function for a string:
    http://www.cse.yorku.ca/~oz/hash.html
    More examples/references are welcome!

    ReplyDelete
  3. Given an integer, find the next number that is a palindrome. For example, given the number is 3210, the result would be 3223.

    ReplyDelete
  4. Given a doubly linked list containing only three integers 1,2,3. Sort the list without exchanging the values.
    Eg- 1->3->2->1->2->3->2->1->1
    output: 1->1->1->1->2->2->2->3->3

    ReplyDelete
  5. Another problem that I have is Equal Sum partition problem. Here is the problem statement: Given an array of positive numbers, partition the list into two with each having equal sum (or average). I will post the solution as soon as I get one.

    ReplyDelete