Skip to content

feat: add solutions to lc problem: No.0638 #3127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: java code
  • Loading branch information
yanglbme committed Jun 19, 2024
commit 046406b8736df2bc6f4d8c741e6d5289a8745a2c
3 changes: 2 additions & 1 deletion solution/0600-0699/0638.Shopping Offers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ class Solution {
private List<List<Integer>> special;
private Map<Integer, Integer> f = new HashMap<>();

public int shoppingOffers(List<Integer> price, List<List<Integer>> special, List<Integer> needs) {
public int shoppingOffers(
List<Integer> price, List<List<Integer>> special, List<Integer> needs) {
n = needs.size();
this.price = price;
this.special = special;
Expand Down
3 changes: 2 additions & 1 deletion solution/0600-0699/0638.Shopping Offers/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ class Solution {
private List<List<Integer>> special;
private Map<Integer, Integer> f = new HashMap<>();

public int shoppingOffers(List<Integer> price, List<List<Integer>> special, List<Integer> needs) {
public int shoppingOffers(
List<Integer> price, List<List<Integer>> special, List<Integer> needs) {
n = needs.size();
this.price = price;
this.special = special;
Expand Down
3 changes: 2 additions & 1 deletion solution/0600-0699/0638.Shopping Offers/Solution.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ class Solution {
private List<List<Integer>> special;
private Map<Integer, Integer> f = new HashMap<>();

public int shoppingOffers(List<Integer> price, List<List<Integer>> special, List<Integer> needs) {
public int shoppingOffers(
List<Integer> price, List<List<Integer>> special, List<Integer> needs) {
n = needs.size();
this.price = price;
this.special = special;
Expand Down
Loading