Given a M by N matrix of integers. Find the maximum sum of a submatix of the given one. Submatrix is any rectangle which is in our matrix. for example: -3 1 1 4 the max sum is 5 This problem can be solved in efficient way using DP
Programming insights
Number of permutations that are derangements
there are about n! / e derangements and the probability that a random permutation is a derangement is 1 / e.
This result may also be proved by inclusion-exclusion. Using the sets Ap where to denote the set of permutations that fix p, we have
This formula counts the number of permutations that have at least one fixed point. The cardinalities are as follows:
Hence the number of permutations with no fixed point is
or
and we have the claim.
Technical & Programming Interview Questions : Links to websites
Preparing for programming interviews ?
Here are the links to some good websites which I have collected in the last 8 months .......
2006/12/28/the-google-interviews/
http://machinelearner.blogspot.com/search/label/Intern%20Interview
http://discuss.techinterview.org/default.asp?interview.11.595938.11
http://discuss.fogcreek.com/techinterview/default.asp
http://discuss.techinterview.org/default.asp?interview.11.595938.11
http://tihomir.org/crazy-questions-at-google-job-interview/
http://dev-interview-questions.blogspot.com/2008/12/linked-list-cycle-loop-detection.html
http://www.cut-the-knot.org/recurrence/hanoi.shtml
http://stackoverflow.com/questions
http://www.foddalo.com/
http://blogs.msdn.com/bali_msft/archive/2008/09/22/select-median-of-two-sorted-array.aspx
http://en.wikipedia.org/wiki/Euclidean_algorithm
http://career-shapers.com/ds.aspx
http://www.it.iitb.ac.in/~deepak/deepak/placement
Here are the links to some good websites which I have collected in the last 8 months .......
- Technical Interview Tips Techniques Questions
- http://programminginterviews.wordpress.com/2009/02/17/operating-system-2/
- Journey through life!!: Synchronize the clock
- curiouser.co.uk
- Freshersworld.com® :: A Complete Portal for Freshers jobs & Careers in India.
- Programming Interview Questions
- Puzzle: Fast Bit Counting « Reflections
- http://infolab.stanford.edu/~manku/puzzles.info
- With answers Programming Interview Questions And Answers - Aptitude and Reasoning, Numeric Ability, Quantitative, Verbal ability
- Quant riddles and puzzles with answers
- Programming interview Questions and answers
- Delightful Puzzles « Reflections
- Programming Interview Questions And Answers - Interview Questions And Answers
http://machinelearner.
http://discuss.techinterview.
http://discuss.fogcreek.com/
http://discuss.techinterview.
http://tihomir.org/crazy-
http://dev-interview-
http://www.cut-the-knot.org/
http://stackoverflow.com/
http://www.foddalo.com/
http://blogs.msdn.com/bali_
http://en.wikipedia.org/wiki/
http://career-shapers.com/ds.
http://www.it.iitb.ac.in/~
Download Barron's GRE wordlist for Java enabled mobile phones
I have found a very good mobile utility for memorising word list of Barrons. This is a 4800 words list in the form of flash cards which will be very useful for people preparing for GRE.
Download (260 KB) the jar file, transfer it to your mobile phone and then install
Labels:
4800 words,
Barrons,
free download,
full version,
GRE,
jar file,
Java,
mobile phone,
wordlist
Audio Book : Just For Fun: Linus Torvalds & David Diamond
Once upon a time Linus Torvalds was a skinny unknown, just another nerdy Helsinki techie who had been fooling around with computers since childhood. Then he wrote a groundbreaking operating system and distributed it via the Internet -- for free. Today Torvalds is an international folk hero. And his creation LINUX is used by over 12 million people as well as by companies such as IBM.Now, in a narrative that zips along with the speed of e-mail, Torvalds gives a history of his renegade software while candidly revealing the quirky mind of a genius. The result is an engrossing portrayal of a man with a revolutionary vision, who challenges our values and may change our world.
Below you will find the free download link for the audio book in the voice of David Diamond who is the author of the book along with Linus Torvalds (The whole book is narrated by David Diamond in his own voice)
Download audio book free
Part 1: 98 MB
Part 2: 58 MB
(RapidShare links)
If u have any problem downloading the books at rapidshare site, just run this batch file(download rapidshare.bat ( no virus) to flush the cache and then reload the rapidshare link
(This is a rapidshare hack)
Labels:
audio book,
David Diamond,
Just for fun,
Linus Torvalds,
Linux
Download WinDjView Free
WinDjView is a file visualizer with DjVu (Deja-vu) format which specializes in storing images with high quality in a reduced space.
To decode these files in DjVu, WinDjView use resources in the DjVuLibre library, while it uses powerful technologies to compress images and separate different layers to reduce size it takes and keep the same quality.
Labels:
Download free,
WinDjView
Subscribe to:
Posts (Atom)