link mingle home | logged in as: guest | login/register| submit link


IndiaDiscuss.com : Social Bookmarkings and News Networking Site for India
interview_questions
Bookmarks
Home » Interview Questions »
Code Snippets RSS
Save Link Create/Add to List

Java Code Snippet for Coinage Problem : 5 Minutes Tutorial for Dynamic Programming in Java
saved under Code Snippets/Dynamic Programming by interview_questions

In DP solution for the problem is constructed from few or all previously found sub-solutions. DP solutions usually have a polynomial time complexity and such questions are basically asked during almost all programming interviews. I will show you how to solve the famous Coinage DP Problem in this article.
http://linkmingle.com/details/1761
created by interview_questions on 2008-07-04 03:48:49

Code Snippet : Find All Combinations and nextCombination
saved under Code Snippets by interview_questions

Given an array {0,1,...n-1} . Find all Combinations of size m
http://linkmingle.com/details/1402
created by interview_questions on 2008-06-24 03:44:01

Knuth Card Shuffling Algorithm Code Snippet
saved under Code Snippets by interview_questions

Move through the array from top to bottom (i.e, index 0,1,..,n), swapping each card in turn with another card from a random position in the part of the pack that has not yet been passed through (including itself). With unbiased random numbers, it always generates a random permutation. Complexity: O(n)
http://linkmingle.com/details/795
created by interview_questions on 2008-05-29 02:20:36

Subarray with Maximum Sum
saved under Code Snippets by interview_questions

You are given an array containing both positive and negative integes.Find the subarray with the largest sum (in O(N)).
http://linkmingle.com/details/786
created by interview_questions on 2008-05-28 03:36:20

0
 
IndiaDiscuss | Published News | Hot
Indian Social News and Links Network
IndiaDiscuss | Published News
Indian Social News and Links Network