answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
FinnZ [79.3K]
2 years ago
10

HackerCards is a trendy new card game. Each type of HackerCard has a distinct ID number greater than or equal to 1, and the cost

of each HackerCard equals its ID number. For example, HackerCard 1 costs 1, HackerCard 5 costs 5, and so on. #!/bin/python3 10 11 # Complete the hackerCards function below. 12 def hackerCards (collection, d): 13 14 > if _name == '__main__':. Leanne already has a collection started. For her birthday, Mike wants to buy her as many cards as he can given his budget. He wants to buy one each of some cards she doesn't already have. If he has to make one choice among several, he will always choose the lowest cost option. Determine which cards he will buy For example, Leanne's collection = [2, 4, 5] and Mike has d = 7 to spend. He can purchase a maximum of 2 cards, the 1 and the 3 to add to her collection. Two other options he has are 1 and 6 (costs more) or 7(fewer cards, costs more). Function Description Complete the function hackerCards in the editor below. The function must return an array of integer ID's of the cards Mike will purchase in ascending order. hackerCards has the following parameter(s): collection(collection [O)....collection(n-1)]: an array of integer ID numbers of cards in Leanne's collection d: an integer that denotes Mike's budget Constraints ⢠1sns 105 ⢠1s collection[i] $ 109, where Osi
Computers and Technology
1 answer:
joja [24]2 years ago
5 0

Answer:

I don't know if this is right output is {1,3}

Explanation:

You might be interested in
Targeting encourages drivers to scan far ahead and _____________. A. focus their visual attention on the next point on the road
Colt1911 [192]
<span>A. focus their visual attention on the next point on the road.  A driver must have a target, it can be the car in front, a building pr a structure on the road.  Targeting enables the driver to look further ahead on the road and thus be ready for any obstacle on the road.</span>
3 0
2 years ago
Read 2 more answers
A student made a model of isostasy by placing a block of wood in a beaker of water. What does the wooden block represent in the
Komok [63]
I am almost positive the answer is B, Earth's crust. I know it cannot be A or C because isostasy has nothing to do with sea level or glaciers, and Earth's mantle is inside.
7 0
2 years ago
Read 2 more answers
Let S be the set of all strings from A* in which there is no b before an a. For example, the strings λ, aa, bbb, and aabbbb all
alexdok [17]

Answer:

Check the explanation

Explanation:

A recurvsive defintion for A^{*} which contains all possible strings over the alphabet A=\{a,b\}is \lambda\in A^*(contains the null strings) and A^{*}=\{uv:u\in A^*,v\in A\}

A recurvsive defintion for A^{+} which contains all possible strings over the alphabet A=\{a,b\} is a,b\in A^+ (contains the strings of lengths 1) and A^{+}=\{uv:u\in A^+,v\in A\}

c) \lambda \in S and

w\in S\Rightarrow wb \in S

bw\in S\Rightarrow baw \in S and awb\in S

is the required recursive definition for S

For example,a\in S and from w\in S\Rightarrow wa\in S\text{ we get }aa\in S also

Again, as ab\in Sand from wb\in S\Rightarrow wab \in S we get aab\in S

And as aab\in S, from wb\in S\Rightarrow wab \in S and awb\in S we have aaab\in S

3 0
2 years ago
HELP ME ON THIS PLEASE ILL GIVE BRAINLY!!!! If U GET IT RIGHT !!!
kherson [118]

Answer:

Opportunity cost doesn't only occur when you spend money. For example, if I can eat one snack at a party and I like both cake and cookies, I have to choose one over the other. This is an example of opportunity cost without spending money.

3 0
1 year ago
Write a query to show the price reduced by 10% for all products that are tables or entertainment centers with a standard price g
IceJOKER [234]

Answer:

Below is the required code:

Explanation:

SELECT Product_Finish AS "Desk Finish",

avg(Standard_Price) AS "Average Price"

FROM Product_T

WHERE "Average Price">200

ORDER BY "Average Price" DESC;

8 0
2 years ago
Other questions:
  • Color of seagrass beds on navigational charts? Please quickly
    12·1 answer
  • Identifying Characters
    11·2 answers
  • #You may modify the lines of code above, but don't move them! #When you Submit your code, we'll change these lines to #assign di
    6·1 answer
  • A large software development company employs 100 computer programmers. Of them, 45 areproficient in Java, 30 in C, 20 in Python,
    9·1 answer
  • Type the correct answer in the box. Spell all words correctly.
    9·1 answer
  • Seneca has just applied conditional formatting and realizes that she has made a mistake. Which action should she take to fix the
    12·2 answers
  • I am doing keyboarding keyboarding is very boring and yeah
    12·2 answers
  • Write a static generic method PairUtil.minmax that computes the minimum and maximum elements of an array of type T and returns a
    7·1 answer
  • Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integer
    11·1 answer
  • Select the described workplace culture from the drop-down menu.
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!