Dynamic Programming Interview Questions

No. 03 - Maximum Sum of All Sub-arrays
A sub-array has one number of some continuous numbers. Given an integer array with positive numbers and negative numbers, get the maximum sum of all sub-arrays. Time complexity should be O(n).
For example, in the array {1, -2, 3, 10, -4, 7, 2, -5}, its sub-array {3, 10, -4, 7, 2} has the maximum sum 18.

Given an unsorted array, find the max length of subsequence in which the numbers are in incremental order.

For example: If the input array is {7, 2, 3, 1, 5, 8, 9, 6}, a subsequence with the most numbers in incremental order is {2, 3, 5, 8, 9} and the expected output is 5.

Implement a function which gets the edit distance of two input strings. There are three types of edit operations: insertion, deletion and substitution. Edit distance is the minimal number of edit operations to modify a string from one to the other.

Please implement a function which gets the minimal number of coins, whose value is v1, v2, …, vn, to make change for an amount of money with value t. Any coin with value vi may duplicate for any times to make change.
For example, the minimal number of coins to make change for 15 out of a set of coins with value 1, 3, 9, 10 is 3. We can choose two coins with value 3 and a coin with value 9. The number of coins for other choices should be greater than 3.

There are n houses built in a line, each of which contains some value in it. A thief is going to steal the maximal value in these houses, but he cannot steal in two adjacent houses because the owner of a stolen house will tell his two neighbors on the left and right side. What is the maximal stolen value?

No. 49 - Longest Substring without Duplication
Given a string, please get the length of the longest substring which does not have duplicated characters. Supposing all characters in the string are in the range from ‘a’ to ‘z’.

No. 52 - Maximal Product when Cutting Rope
Given a rope with length n, how to cut the rope into m parts with length n[0], n[1], ...,n[m-1], in order to get the maximal product of n[0]*n[1]* ... *n[m-1]? We have to cut once at least. Additionally, the length of the whole length of the rope, as well as the length of each part, are in integer value.

A board has n*m cells, and there is a gift with some value (value is greater than 0) in every cell. You can get gifts starting from the top-left cell, and move right or down in each step, and finally reach the cell at the bottom-right cell. What’s the maximal value of gifts you can get from the board?

46 comments:

  1. Check this link also they are also having some amazing interview questions
    c# interview questions @ http://skillgun.com

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Hello Harry,

    These are some very good list of dynamic problems that one might encounter during interview.

    We have a startup which helps the developers to find the job they are most suited for. Our goal is to help candidate skip the phone screening process by solving coding challenges through our platform.

    Would love to hear your thoughts on what we do.

    Thanks for taking a look!
    http://www.edrepublic.com

    ReplyDelete
  4. Center for Career Advice. Provides a positive Career Help for Career builder and encouraging website for anyone to gather the necessary tools for landing a dream job. Articles, interview help, and feedback provided for free.

    ReplyDelete

  5. After coming across blogs about programming, I get motivated to get what the details in the blog entails. This blog is very useful for the readers who want to develop their careers in coding. The illustrations and the examples on the codes which the blogger has provided will assist many people. PhD Dissertation Lit Review Paraphrasing Help

    ReplyDelete
  6. Thank you for explaining digital marketing interview question and answers in detail. Now I have a much better idea about the digital marketing.hunt your dream digital marketing jobs in hyderabad .

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete

  8. It seems you are so busy in last month. The detail you shared about your work and it is really impressive that's why i am waiting for your post because i get the new ideas over here and you really write so well.

    Selenium training in Chennai
    Selenium training in Bangalore
    Selenium training in Pune
    Selenium Online training
    Selenium training in bangalore

    ReplyDelete
  9. Truly a very good article on how to handle the future technology. After reading your post,thanks for taking the time to discuss this, I feel happy about and I love learning more about this topic.
    - Mumbai Web, Crocus Web

    ReplyDelete
  10. Nice article.


    For Python training in Bangalore, visit:
    Python training in bangalore

    ReplyDelete
  11. It has been great for me to read such great information about datascience with python.datascience with python training in bangalore

    ReplyDelete
  12. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.DataScience with Python Training in Bangalore


    ReplyDelete
  13. Linking is very useful thing.you have really helped lots of people who visit blog and provide them use full information.Automation Anywhere Training in Bangalore

    ReplyDelete
  14. Being new to the blogging world I feel like there is still so much to learn. Your tips helped to clarify a few things for me as well as giving.uipath training in bangalore

    ReplyDelete
  15. Really it was an awesome article,very interesting to read.You have provided an nice article,Thanks for sharing.blue prism training in bangalore

    ReplyDelete
  16. Really very nice blog information for this one and more technical skills are improve,i like that kind of post.dot net training in bangalore

    ReplyDelete
  17. Thanks for this wonderful post. The information in this article is very helpful to me. Thanks a lot for sharing. Keep blogging.

    Become an Expert In DBA Training in Bangalore! The most trusted and trending Programming Language. Learn from experienced Trainers and get the knowledge to crack a coding interview, @Bangalore Training Academy Located in BTM Layout.

    ReplyDelete
  18. I am happy for sharing on this blog its awesome blog I really impressed. thanks for sharing. Great efforts.

    Looking for Salesforce CRM Training in Bangalore, learn from eTechno Soft Solutions Salesforce CRM Training on online training and classroom training. Join today!

    ReplyDelete
  19. such a great word which you use in your article and article is amazing knowledge. thank you for sharing it.

    Become an Expert In Python Training in Bangalore ! The most trusted and trending Programming Language. Learn from experienced Trainers and get the knowledge to crack a coding interview, @Softgen Infotech Located in BTM Layout.

    ReplyDelete
  20. APTRON Gurgaon's Data Science course agenda has been meticulously designed with R Programming, Python , Machine Learning, Forecasting and Tableau addressing the complete Data life cycle.
    For More Info: Data Science Training in Gurgaon

    ReplyDelete
  21. i have been following this website blog for the past month. i really found this website was helped me a lot and every thing which was shared here was so informative and useful. again once i appreciate their effort they are making and keep going on.

    Digital Marketing Consultant

    ReplyDelete
  22. Nice post! Thanks for sharing this information. Looking for help with your chapter 4 data analysis and findings? Get online qualitative and quantitative data analysis services from the leading Research Projects Writing Company at an affordable cost. Our experts are available 24/7.

    ReplyDelete

  23. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. ExcelR Business Analytics Course Any way I’ll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info.

    ReplyDelete
  24. i read this blog,Thanks for sharing this information.

    Machine learning course in pune

    ReplyDelete
  25. I am really thankful to you for interesting blog,Keep sharing such type of blog.

    Spoken English Classes in Amravati

    ReplyDelete
  26. Nice Post!! Keep Sharing article like this.

    Regards:

    Software Testing Classes In Pune

    ReplyDelete
  27. Nice blog, I really appreciate the hard efforts you would have taken while creating this informational blog. Rubix Market Research

    ReplyDelete
  28. I recently came across your article and have been reading along. I want to express my admiration of your writing skill and ability to make readers read from the beginning to the end.
    Software Testing Course in Pune

    ReplyDelete
  29. https://www.sharmaacademy.com/mppsc-notes.php
    Sharma Academy is Central Indias largest provider of Mppsc Notes and Mppsc Study Material. You will get updated MPPSC Notes as per the latest syllabus of state level psc exam

    ReplyDelete
  30. I love such articles that share the useful information that helps the reader and gives them something return.
    Website Designing Canada

    ReplyDelete
  31. Interested in working as a software tester? Continue reading to learn how a software testing education may help you launch a career in software testing. Software testing is a crucial stage since it allows a developer to check for flaws and problems before releasing the application into a critical environment. Manual or automated technologies are used to put software components through their paces during software testing. Developers compare the components to the real requirements to look for gaps, gaps, or missing requirements.

    Most programmes produce mistakes and faults during the testing process. While certain faults can be found, countless others go undetected. A quality assurance check is an imperative requirement for dealing with these undetected mistakes. for info visit: Software Testing training in Pune

    ReplyDelete
  32. The en.savefrom.net is a media file download platform. It is a very popular and helpful service for users to download the media files such as music, videos, and photos. en.savefrom.net remove

    ReplyDelete