Show newer

Here's a freebie!

This problem was asked by Google.

Given a list of integers S and a target number k, write a function that returns a subset of S that adds up to k. If such a subset cannot be made, then return null.

Integers can appear more than once in the list. You may assume all numbers in the list are positive.

For example, given S = [12, 1, 61, 5, 9, 2] and k = 24, return [12, 9, 2, 1] since it sums up to 24.

@ramparmar

One that existed prior to the Europeans landing? No not really though sometimes tribes would align and create what we would call nations. But they didnt have a word that meant "Native American" though there were words for "Human". You have to remember prior to europeaners the Native Americans probably thought all humans looked like them.

@inditoot @Gargron

@inditoot

The ancestors didnt know that they were unique in the world in that sense. So they almost exclusively referred to themselves by the name of their tribe.

@ramparmar @Gargron

@ramparmar

Depends who you ask. Some say Native American, others Indian, some use their tribe more as an identifier. I find most of us arent particularly picky about what you call us as long as it is intended with respect.

@inditoot @Gargron

@inditoot

Yea I realized that a few moments after you said it. Not for me but still cool, wish you guys luck. Now I feel like watching some bollywood :)

@Gargron

@inditoot

I'm Native American, got excited for a moment you were talking about me and was going to join the instance :)

@Gargron

@pschwede We dont have any specific rules for rate of posting to the public timeline. Mostly just that it needs to be a manual process and non-spammy (which revolves more around who you tag and why/how, as well as the content, but not frequency).

However if you want to reduce your "noise" but post for your own use or for your followers who might search or browse your timeline, then unlisted or friends only might be more relevant (depending on how public you want it to be).

Not a problem from my end though, seems a useful thing to share.

@pschwede Are these posts automated or manual? Keep in mind automated posts must be unlisted.

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit support.apple.com/kb/HT208050.

@Absinthe Oh I already speculated a solution (and a few other tweaks). Just too bust to try it out. In the middle of writing a specification and trying to learn bikeshed at the same time

Show older
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.