Data Structure By DS

I found it difficult to find many data structures puzzles, questions and problem in 100s of websites, so thought of writing and consolidating in a single place. This would help me to refer it any time and others can also if they like it. I have contributed as well as referred code from various websites where other has contributed.

Thursday, June 27, 2019

Maximum Loot Problem

Maximum Loot Problem

More details about the problem are mentioned at:

https://practice.geeksforgeeks.org/problems/stickler-theif/0

Input:
5 5 10 100 10 5

Output:
110
Input:
1 2 3

Output:
4


Posted by Deepak Singhvi at 8:09 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Comments (Atom)

About Me

My photo
Deepak Singhvi
View my complete profile

Blog Archive

  • ►  2023 (2)
    • ►  June (2)
  • ▼  2019 (6)
    • ▼  June (1)
      • Maximum Loot Problem
    • ►  May (2)
    • ►  April (3)
  • ►  2016 (2)
    • ►  July (2)
  • ►  2015 (23)
    • ►  February (2)
    • ►  January (21)

Search This Blog

Simple theme. Powered by Blogger.