Ch-MANASA19 / Ch-MANASA19/Java
Maximum Sum of Non-Adjacent Elements
オープン
- 主要言語
- Java
- スター
- 1
- フォーク
- 7
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
📋 Problem Description
Given an array of positive integers, find the maximum sum of elements such that no two selected elements are adjacent in the array.
You can only choose elements that are not next to each other. The goal is to maximize the total sum of chosen numbers.
Example 1
Input: nums = [3, 2, 7, 10]
Output: 13
Explanation: Choose elements 3 and 10 → sum = 13.
I WOUD LIKE TO WORK ON THIS
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず、この基本的なプログラムが属する Java ソースファイルを探します。issue にはファイルもテストも指定されていません。隣接しない正の整数について説明されている最大合計の動作を実装し、13 が生成されるはずの、提示された [3, 2, 7, 10] の例で検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- backend
- issue の種類
- 機能追加
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100