Avicenna

joined 1 month ago
[โ€“] Avicenna@programming.dev 3 points 3 weeks ago

I suspect parrots may be more sensible than that

[โ€“] Avicenna@programming.dev 3 points 3 weeks ago
import numpy as np

def parse_input(file_path):

  with file_path.open("r") as fp:
    banks = map(str.strip, fp.readlines())

  return map(lambda x: list(map(int, list(x))), banks)

def max_jolt(bank, length):

  if length==1:
    return max(bank)

  amax = np.argmax(bank[:-(length-1)])

  return 10**(length-1)*bank[amax] + max_jolt(bank[amax+1:], length-1)

def solve_problem(file_name, length):

  banks = parse_input(Path(cwd, file_name))
  sumj = 0

  for bank in banks:
    sumj += max_jolt(bank, length)

  return sumj
[โ€“] Avicenna@programming.dev 14 points 3 weeks ago

"I am deeply deeply sorry"

[โ€“] Avicenna@programming.dev 11 points 3 weeks ago

ahh the good old "it is for your own good"

[โ€“] Avicenna@programming.dev 1 points 3 weeks ago

The question is more the following: can we trust them to use the information available to them honestly or are they more likely to distort or hide facts if it aligns more with their interests. If the latter is a common situation, then that is not an insane take.

[โ€“] Avicenna@programming.dev 1 points 3 weeks ago

The problem is that most people don't trust them to actually inform goverments with their well-informed opinion but with their interests in mind. And if that is a reasonable point of view, then whether or not they have a well-informed opinion becomes irrelevant.

[โ€“] Avicenna@programming.dev 15 points 4 weeks ago

Lets put an AI button in the middle of the screen

[โ€“] Avicenna@programming.dev 4 points 4 weeks ago

chatty cats are the absolute best

[โ€“] Avicenna@programming.dev 1 points 4 weeks ago* (last edited 4 weeks ago)

I used sync for a while then once it became sort of dead tried a couple others and settled with boost. The most important factor is that it is the only Lemmy app (that I could find) that orders saved posts according to the time you saved them and not when it was created.

ps: After looking at some of the comments here I checked a couple others and jerboa also does the same

[โ€“] Avicenna@programming.dev 48 points 4 weeks ago

"Infosys co-founder suggested slavery could be brought back with updated terms and conditions"

This is how this news should be titled

[โ€“] Avicenna@programming.dev 6 points 4 weeks ago

the common denominator is money

[โ€“] Avicenna@programming.dev 6 points 4 weeks ago (1 children)

One needs to read terms and conditions. Where in Tirana?

view more: โ€น prev next โ€บ