#voice-chat-text-0

1 messages · Page 382 of 1

barren kettle
#

I have some schoolmates collegemates living in Australia

barren kettle
#

Where do u live @whole bear

barren kettle
#

Mumbai ?

whole bear
barren kettle
#

Punjab

barren kettle
#

🏃‍♂️

whole bear
#

How do you manage your expenses Opal?

#

Oh

#

No

#

@somber heath I heard that Linux is robust and efficient.
But when I use linux GNOME to copy and paste a big file it takes hours and no progress.

But when I did with the command line it copied within 3 sec.

I wonder why?

#

Actually I was copying an Iso file of size 5.8 GB

#

And the same file got copied in instant, when I used terminal

#

Actually I used cp

somber heath
#

@autumn lake 👋

autumn lake
#

hi! just realized that i cant speak in the channel 😅

whole bear
autumn lake
#

may i hop in?

whole bear
autumn lake
whole bear
#

Why?

#

@somber heath How was your day so far?

#

Simple is not easy

#

By the way do you use linux?

#

I have a system with 500GB storage.
I want to dual boot , is 500 GB enough?

#

Great

#

I mean thats all I got

#

I want boot using ubuntu

#

SSD

#

16GB

#

Ram

#

And I have dedicated GPU as well

vocal basin
#

2GB nowadays seems to be default

#

for swap

#

it's just so you have time to notice OOM before the system dies

#

"balanced"

#

why is it even using swap at all

somber heath
#

@fading sparrow 👋

fading sparrow
#

hello

whole bear
#

hello

vocal basin
#

it might see cache as more valuable for quick access

fading sparrow
#

what is a flag i wanted to know as a beginner

whole bear
#

@fading sparrow I suppose you can speak

fading sparrow
#

yes

#

i was finding the chat

#

it stores values

#

like int

#

str

whole bear
#

variable is container?

fading sparrow
#

so we can assign variables to the size of an memory value to a data type ?

vocal basin
#

(there's also a flag in CTF sense)

fading sparrow
#

can i ask another real life analogy

#

for flag

#

ooooo super

#

ok i get it

#

very good explanation

somber heath
#
run = True
while run:
    'Maybe change run to False, maybe not.'
    ...
print('Done.')```
whole bear
#

Opal is good at teaching

fading sparrow
#

its still hard to relate

#

or like a bookmark? tag?

somber heath
#

@silk drift 👋

naive basalt
#

bookmark yeah

fading sparrow
#

how to solve ?

somber heath
#

!e py print(True and False)

wise cargoBOT
somber heath
#

!e py print(False and False)

wise cargoBOT
somber heath
#

!e py print(True and True)

wise cargoBOT
fading sparrow
#

lsb ?

#

least significant bit

somber heath
#

!e py print(True or True)

wise cargoBOT
somber heath
#

!e py print(False or True)

wise cargoBOT
fading sparrow
#

101 and 110 = 100

somber heath
#

!e py print(False or False)

wise cargoBOT
fading sparrow
#

ok ok

silk drift
#

Hey guys, Do you mind me asking,, Is python anything like pine script or visual basic?

somber heath
#

!e py print(not True) print(not False)

wise cargoBOT
fading sparrow
#

BODMAS

#

kinda

somber heath
fading sparrow
#

yes i have done that while converting an expression from infix to postfix

#

my solution is wrong

#

0110

#

hehe

whole bear
#

@fading sparrow Prior to python what language do you use?

fading sparrow
#

nope im a student

#

woah

#

it works?

#

NAND ?

#

I cant get u?

somber heath
#

Not and. One or the other or neither, but not both.

fading sparrow
#

NOR?

somber heath
#

Not or. Neither. Is that right?

#

I think it's right.

naive basalt
#

yes

fading sparrow
#

exactly

#

i was thinking of that

#

im too slow to say

naive basalt
#

if there's an N it's just not (operator)

somber heath
#

XNOR, eXclusive NOR, both or neither, yes?

#

But not one or the other

fading sparrow
#

1001

#

so if its 10 -> 1

silk drift
#

Trying to think of a joke involving spock, a telephone and logical operators. 🤔

lilac lantern
#

howdy morning everyone

whole bear
#

@terse rose sorry mate, I left VC all of the sudden when you joined.
I was busy at that time

#

I gotta go you both enjoy your time

terse rose
#

Np

hard island
rugged root
#

I'll probably be on in an hour or so

#

Getting prepped for more holiday deliveries

#

I would not survive without ginger pills

#

My stomach is a mess

timid marten
#

!voice @thin fossil

wise cargoBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

thin fossil
#

breh

rugged root
thin fossil
#

cant verify

rugged root
#

It has some nice quality of life tweaks

#

Yeah you don't meet the message requirements

#

Just hang out, have a regular convo and you'll hit that easily

fading sparrow
#

good

#

new and want to learn python

#

just trying my best

#

what do you do when you feel disoreiented

#

nah

#

ur human :>

#

"__ wow__"

#

i agree with u

#

but

#

yeeeaa

frozen echo
#

what is going on here ??

fading sparrow
#

professional

frozen echo
#

project ?? which one

fading sparrow
#

portfolio

cloud pond
#

looking for a telegram bots developer, simple task

frozen echo
#

you can share it .. maybe i can help you with it

timid marten
cloud pond
#

@lusty arrow ru available boss

fading sparrow
#

jetpacks???

#

oh like an eagle

#

yeessss

#

oh no

#

wow

#

i was thinking of making a robot too

#

which is very distant

#

exoskeleton

#

i had this idea once

#

a gundam

#

but the more i think of relay modules, embedded code

#

everyhting hits me hard

#

o-o

frozen echo
#

gone ?

fading sparrow
#

yup

frozen echo
#

so what you upto ?

fading sparrow
#

im trying to learn python basics

#

nothing is getting into my head

frozen echo
#

why .. don't you follow any tutorial

fading sparrow
#

no it's a state that whether you say something apart from coding too i can't comprehend

#

maybe i need sleep or rest or exercise or something

frozen echo
#

oo.. are working on something ..lately

#

?

fading sparrow
#

i wanted to but i cannot cross the lvl 1

#

the basics algorithms

frozen echo
#

algorithms .. are you studenting the dsa ?

fading sparrow
#

yes

frozen echo
#

ok.. i am also trying to study it .. but i use the C++ for it

fading sparrow
#

oh my

#

u soome

#

aren't u into a wrong channel

frozen echo
#

no ..no ..

fading sparrow
#

it's for python

vocal basin
#

voice chats are offtopic

frozen echo
#

i am know where i am

fading sparrow
frozen echo
#

offtopic.. ?? what is the topic ?

fading sparrow
#

follow up

#

what are we getting anyways

frozen echo
#

i am trying to learn python for my .. new project ..

fading sparrow
#

that python-discussion section may help

#

may help"

crude edge
#

my pc red light is blinking and automatic turn off and on

fading sparrow
#

o maybe ur ram is disconnected

fading sparrow
crude edge
#

but i do that and same

frozen echo
crude edge
#

yes i think

frozen echo
#

i saw it .. yesterday in my college lab

#

master is come ..

#

😅

near drift
#

mob

frozen echo
#

yes master ..

#

when you come here

near drift
#

now

#

we gotta exorst some spirits

frozen echo
#

.. again master .. why don't you handle this time

near drift
#

how are you gonna learn let's handle em

frozen echo
#

ok .. i sense some spirit here?

near drift
#

where's dimple

crude edge
#

seee your back

frozen echo
#

he is with my brother

near drift
#

where's ritsu

frozen echo
near drift
#

mob follow my principles

frozen echo
#

hello @tulip dove

tulip dove
vocal basin
fading sparrow
#

c++ = oops

desert vector
#

riveting conversation

tulip dove
#

Lol

#

Python is cooler than C++

near drift
#

its easy

fading sparrow
#

its goddam cold

near drift
#

c++ is cold

desert vector
#

wait a minute
REIGEN ARATAKA, THE GREATEST PSYCHIC MEDIUM OF THE 21ST CENTURY????
LET'S GOOOOOOO

frozen echo
fading sparrow
#

how about english

near drift
tulip dove
vocal basin
#

just use both ¯_(ツ)_/¯

frozen echo
near drift
desert vector
tulip dove
vocal basin
#

you're the one writing it
allegedly

desert vector
#

allegedly

vocal basin
#

just C

desert vector
#

python is commonly implemented in C

#

but there are plenty of other python interpreters written in other languages

near drift
#

its best language for general purpose and ml stuff

desert vector
#

or attempts at it, at least

tulip dove
#

Yah but I'll choose python

frozen echo
#

ok ok .. it time for me to go sleep

vocal basin
tulip dove
near drift
#

mob meet me at 5' tomorrow

desert vector
tulip dove
#

What time is it at your country?

near drift
#

bye mob

frozen echo
tulip dove
#

Ok

vocal basin
#

brb

tulip dove
#

Brb

vocal basin
#

I guess

#

I don't participate in AoC

#

(I'm reading through the FAQ on that matter)

upper basin
#

0.006656125999143114

#

I want it to be under 0.0015.

#

Ideally 0.0009.

vocal basin
#

better DM than share here

vocal basin
grand dew
#

guys can u help me on this coding part

vocal basin
wind raptor
vocal basin
#

@lethal shell we are discussing some code in DMs (though not very actively)

#

@lethal shell Q#

#

?

#

maybe google just wants another thing that they technically don't yet have a monopoly on

#

yahoo search attempted to compete

#

I think duckduckgo still uses that as a backend

#

that and Bing

#

afaik it's a wrapper around two other search engines

#

(ddg)

#

not an entirely independent search engine

full scaffold
#

Hi

#

i have an error in flask

#

if you can help me

vocal basin
#

using Google to find Bing: just works

#

using Bing to find Google:

#

(that big search bar in the middle is obiously not Google)

#

they also used to do that for Google Chrome

upper basin
#

Imagine a sign next to it "Suit yourself.".

vocal basin
#

and IBM is just attempting to have anything relevant

upper basin
#

Google will not be able to compete with IBM, Quantinuum, nor Amazon.

vocal basin
upper basin
#

IBM has Qiskit, Aer, and their own line of hardware. You can't find a single package that doesn't use qiskit or Aer.

#

They are the dependency. Plus, they're oxidizing their codebase to be written fully in rust, so their package is gonna be even faster with 2.0.

vocal basin
#

(when was the Annapurna acquisition by Amazon? I forgot)

#

2016, quite recent

upper basin
#

IBM has the software market. Quantinuum started exploring more novel ideas to reform them into SaaS, and IBM countered by introducing qiskit-addons.

vocal basin
upper basin
#

Google is still trying to fix bugs in their library for the very basic stuff. They won't be able to keep up at the current state.

#

Besides, if we're talking about newcomers, Nvidia will likely be the one. They're the first team to incorporate MLIR architecture into circuit compilation.

#

As in circuit to hardware instruction, not high level operation to circuit.

#

IBM had a massive head start as well. Google is still getting their bearings.

#

By 2030, we'll likely see some proper results from each side. Qiskit-addons seems promising. Quantinuum's fault tolerant hardware seems promising. They're also working on a rust-based compiler, so that'll be interesting.

#

Nvidia will also become a lead for classical simulation I imagine by then.

vocal basin
#

I've just realised what Zig's equivalent of "Rewrite it in Rust" would acronymise as and I don't like it

vocal basin
#

RIIR -> RIIZ

upper basin
#

Hah.

vocal basin
#

@lethal shell yes (allegedly)

#

I've left the academia quite a while ago

#

small startup

upper basin
vocal basin
#

there's a total of 1 unfinished paper and 0 publications

upper basin
#

I have this one paper I've been working on on and off for a good two years now.

#

Stuck on this one equation for more than a year.

#

Have to derive this normalization equation for this general propagator, and it's rather hard when there are no similar works since 1940s.

#

They won't know where to begin.

#

I took sth that was physical, and extrapolated it to be mechanical. With that, I traded the ability to experiment and derive normalization adhoc with generality.

#

Which means now I need to derive the normalization from scratch for each system. To make it worthwhile, it needs to be consistent, and that is why it's so difficult.

#

I'll have to get back to it once I finish my current research.

vocal basin
#

better in what sense?

upper basin
#

It wasn't really revolutionary or anything (at least compared to my current research) but it's a really fun one.

#

Company will own your research.

#

But you get paid.

vocal basin
#

depends on the contract

upper basin
#

You are being paid to make an IP for them.

#

You get credited.

#

You just can't say you own it, or use it unless they permit it.

#

You are hired to make IPs for them, that's the job. If you want more freedom, more control, then you'd have to get a job as a researcher at a university or research center, and essentially farm papers.

#

You're getting paid.

#

Money buys most things.

#

You can always do independent research.

#

As long as the you don't violate the NDA (and non-compete if you signed such a clause) you're fine to do independent research.

#

Write a paper, and put it on arXiv. Done.

#

He hires smart people to make IP for him.

#

He pays them more, so they are inclined to work for him.

#

He knows when to get into a field, so in that sense he's smart from what I can tell. He's not technical, but he's a good businessman.

vocal basin
#

idk if anything of what I do qualifies as research

upper basin
vocal basin
#

ig in programming that separation doesn't make as much sense

#

blurrier lines

#

since it's fundamentally mostly research anyway

#

so maybe the qualification lines are shifter somewhat

upper basin
vocal basin
#

@soft axle Sun (was)

upper basin
#

I mean, you program sth to implement it, right? If that thing is trying to solve a problem that's not solved thus far, or improving a solution beyond what's available now, then it's research. Research is essentially a condition

if novel(paper) and valid(paper):
    return True
vocal basin
upper basin
#

It has to be correct, and it should be novel, otherwise it's a review article.

vocal basin
#

"be successful or be honest" is a thoroughly false dichotomy

upper basin
#

Being the best is not feasible. Being valuable is.

#

"In the pursuit to do great, we failed to do good." Common mistake ambitious people make.

#

It's temporary.

#

Others will build upon your work, and now they're best.

#

You can't be the best unless no one contributes to your work and you are the only person leading the work. Infeasible.

#

Look at community projects vs solo or corporate projects. Brilliance is about experience and perspective and passion. You may have two of the three, but you need others for the last one.

#

Ambition is not tied to narcissism. Ambition is just the lack of belief in limits. Can be good. Can be destructive. There's many good stories about this, like Icarus.

#

Ambition is a good driver, but only when kept in check. It's like a stud. Let go of the leash and you'll fall on your arse.

#

Thinking how to lamda this up for lazy evaluation.

    dag = {a: {b for b in val if b in ordering[a]} for a in val}
#

Is there a builtin for lazy dicts? Seems like a useful tool.

vocal basin
#

only for all-entries-same-default

#

!d collections.defaultdict

wise cargoBOT
#

class collections.defaultdict(default_factory=None, /[, ...])```
Return a new dictionary\-like object. [`defaultdict`](https://docs.python.org/3/library/collections.html#collections.defaultdict) is a subclass of the built\-in [`dict`](https://docs.python.org/3/library/stdtypes.html#dict) class. It overrides one method and adds one writable instance variable. The remaining functionality is the same as for the [`dict`](https://docs.python.org/3/library/stdtypes.html#dict) class and is not documented here.

The first argument provides the initial value for the [`default_factory`](https://docs.python.org/3/library/collections.html#collections.defaultdict.default_factory) attribute; it defaults to `None`. All remaining arguments are treated the same as if they were passed to the [`dict`](https://docs.python.org/3/library/stdtypes.html#dict) constructor, including keyword arguments.

[`defaultdict`](https://docs.python.org/3/library/collections.html#collections.defaultdict) objects support the following method in addition to the standard [`dict`](https://docs.python.org/3/library/stdtypes.html#dict) operations:
upper basin
#

Using defaultdict currently.

#

It doesn't do lazy evaluation though, right?

#

Desperation is more powerful.

#

Ambition is about want. Desperation is about need.

#

Look at legendary figures who reached great heights from nothing.

#

It's that it's beneath him.

#

He's being fancy.

#

He's ascended beyond our plane of existence.

vocal basin
#

metaphysics time

upper basin
#

We measure quantum states, he reads them as a lullaby.

#

The great objective of living beings is to protect life. Genocide goes against that. You need to introduce a necessary evil to violate the objective in the short-term to satisfy it in the long-term.

vocal basin
#

@lethal shell "well, that just geopolitics"

#

(it's a belief system not a science)

upper basin
#

"My lie is more believable than yours."

vocal basin
upper basin
#

Current call graph.

#

Have to minimize fixer.

vocal basin
#

classic situation

upper basin
#
dag = {a: lambda {b for b in val if b in ordering[a]} for a in val}
vocal basin
#

what type is ordering[a]?

#

list?

#

set(ordering[a])

upper basin
#

May its wheel spin for you. @terse rose

vocal basin
#
class Lazy:
    def __init__(self, f, *args, **kwargs):
        self.__f = f
        self.__args = args
        self.__kwargs = kwargs

    @property
    def value(self):
        if self.__f:
            self.__value = self.__f(*self.__args, **self.__kwargs)
            self.__f = None
            del self.__args
            del self.__kwargs
        return self.__value
#

!e

class Lazy:
    def __init__(self, f, *args, **kwargs):
        self.__f = f
        self.__args = args
        self.__kwargs = kwargs

    @property
    def value(self):
        if self.__f:
            self.__value = self.__f(*self.__args, **self.__kwargs)
            self.__f = None
            del self.__args
            del self.__kwargs
        return self.__value

x = Lazy(set, [1, 2, 3])
print(x.value)
wise cargoBOT
vocal basin
#

I might be back in 1~2 hours or maybe tomorrow

tulip gyro
tulip gyro
timid marten
tulip gyro
last wigeon
#
String[] strings = new String[1];
Object[] objects = strings;
objects[0] = new Integer(1);
#

this compiles

wise cargoBOT
#

:white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | True
002 | True
003 | False
last wigeon
#

@tulip gyro

#
def doThing(lst: list[str | int]) -> None:
  lst.append(69420)

names: list[str] = ['bob', 'wendy', 'digger']
doThing(names)
print(names)
inland beacon
#

@opaque depot hello!

#

im tryna figure out

#

how to stream in here

#

im coding rn

opaque depot
#

<@&831776746206265384> we want streaming! we want streaming! we want it now!

inland beacon
#

oh

#

you need permission from the mods to stream?

#

ah

#

oops

#

not good

#

hope hes okay

#

music + coding is a great combo

#

lmao

#

oo

#

thats cool

#

he left

#

straight away :/

#

your back!

#

thanks!

#

wish the moderator would join :(

#

so i can stream

#

hello @last wigeon

#

how are you?

#

i dont know how to do it 😭

#

im that slow

#

have you guys heard of that guy ma lin?

#

thats not me

#

no

#

thats an olympic medalist

#

who quit and turned to coding

#

tryna get a FAANG job

#

i just wanna stream

#

ples

#

moderators

#

leet code acc made

#

time to try the first problem

#

"two sum"

last wigeon
#

Let p = [p_1, ..., p_n] be a permutation of [1, ..., n]
For all 1 <= k <= n we say p is k-good iff there exists a subarray of p which is a permutation of [1, ..., k]
Return a boolean array of length n where position k is true iff p is k-good

array = [1, 3, 2]
output [true, false, true]

@opaque depot

inland beacon
#

@somber heath is that perchance you?

#

awh

last wigeon
#
inland beacon
#

Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. oom

#

my brain is stumped

#

mhm

#

nah i dont understand much

#

could i do a double for loop?

#
class Solution(object):
    def twoSum(self, nums, target):
        """
        :type nums: List[int]
        :type target: int
        :rtype: List[int]
        """

        for first_num_pos, first_num in enumerate(nums):
            for second_num_pos, second_num in enumerate(nums):
                if first_num + second_num == target:
                    return [first_num_pos, second_num_pos] 
#

ugh would that work?

last wigeon
#

Cat is a subtype of Animal
but is list[Cat] a subtype of list[Animal]?

inland beacon
#

oom

#

a box full of animals is cute

inland beacon
#

oop

#

Follow-up: Can you come up with an algorithm that is less than O(n2) time complexity? no

#

hello @hybrid zenith

#

yeah ik

#

but i have no idea

#

no

#

i dont wanna speak

#

well i fucked up

#

im disapointing

#

i failed the first easy question

#

🤦‍♂️

hybrid zenith
#

@last wigeon

last wigeon
#
def doThing(lst: list[str | int]) -> None:
  lst.append(69420)

names: list[str] = ['bob', 'wendy', 'digger']
doThing(names)
print(names)

###############

def doThing(lst: list[Animal]) -> None:
  lst.append(Animal())

cats: list[Cat] = [Cat(), Cat(), Cat()]
doThing(cats)
print(cats)
inland beacon
#

me!

inland beacon
#

data structures like what?

somber heath
#

!e ```py
class Animal:
pass

class Cat(Animal):
pass

cat = Cat()
result = isinstance(cat, Animal)
print(result)```

wise cargoBOT
inland beacon
#

i need dictionaries for that?

inland beacon
#

!e

class Solution(object):
    def twoSum(self, nums, target):
        """
        :type nums: List[int]
        :type target: int
        :rtype: List[int]
        """

        for first_num_pos, first_num in enumerate(nums):
            for second_num_pos, second_num in enumerate(nums):
                if first_num + second_num == target:
                    return [first_num_pos, second_num_pos]
test = Solution()
print(test.twoSum([3,2,4], 6))
wise cargoBOT
inland beacon
#

fuck

#

shouldnt it be the second iteration for first_num

#

then the 3rd for second_num?

#

@hybrid zenith repeat?

#

couldnt here you

#

!e

class Solution(object):
    def twoSum(self, nums, target):
        """
        :type nums: List[int]
        :type target: int
        :rtype: List[int]
        """

        for first_num_pos, first_num in enumerate(nums):
            for second_num_pos, second_num in enumerate(nums):
                if first_num + second_num == target and second_num is not first_num:
                    return [first_num_pos, second_num_pos]
test = Solution()
print(test.twoSum([3,2,4], 6))
wise cargoBOT
inland beacon
#

what

#

wait

#

thats true

#

😭

#

ohhhh

#

never mind

digital lynx
#

can someone help me with my python code please?

inland beacon
#

!e

class Solution(object):
    def twoSum(self, nums, target):
        """
        :type nums: List[int]
        :type target: int
        :rtype: List[int]
        """

        for first_num_pos, first_num in enumerate(nums):
            for second_num_pos, second_num in enumerate(nums):
                if first_num + second_num == target and second_num is not first_num:
                    return [first_num_pos, second_num_pos]
test = Solution()
print(test.twoSum([3,2,4], 6))
wise cargoBOT
inland beacon
#

YES

#

THANK GOD

#

MY BRAIN WORKED

somber heath
#

@digital lynx 👋

digital lynx
#

hello 🙂

#

im having trouble with ocr detecting grey text

#

so I made a test class that replaces grey pixels with black pixels

inland beacon
#

class Solution(object):
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""

    for first_num_pos, first_num in enumerate(nums):
        for second_num_pos, second_num in enumerate(nums):
            if first_num + second_num == target and second_num is not first_num:
                return [first_num_pos, second_num_pos]

test = Solution()
print(test.twoSum([3,3], 6))

#

!e

class Solution(object):
    def twoSum(self, nums, target):
        """
        :type nums: List[int]
        :type target: int
        :rtype: List[int]
        """

        for first_num_pos, first_num in enumerate(nums):
            for second_num_pos, second_num in enumerate(nums):
                if first_num + second_num == target and first_num_pos is not second_num_pos:
                    return [first_num_pos, second_num_pos]
test = Solution()
print(test.twoSum([3,3], 6))
wise cargoBOT
inland beacon
#

what

#

oh

#

nvm

digital lynx
#

yeah I already did replace the grey with black, but im having trouble implementing the logic into my api

inland beacon
#

!e

class Solution(object):
    def twoSum(self, nums, target):
        """
        :type nums: List[int]
        :type target: int
        :rtype: List[int]
        """

        for first_num_pos, first_num in enumerate(nums):
            for second_num_pos, second_num in enumerate(nums):
                if first_num + second_num == target and first_num_pos is not second_num_pos:
                    return [first_num_pos, second_num_pos]
test = Solution()
print(test.twoSum([3,3], 6))
wise cargoBOT
inland beacon
#

awesome

digital lynx
#

do you mind checking where im going wrong?

inland beacon
#

first leet code question done

#

im now a leet code user 🔥

#

my mic is right next to my keyboard, sorry

#

yes?

#

YES

#

@somber heath

#

oh

#

?

#

hehe

#

but

#

otherwise my mic sounds horrible

#

krisp on

#

better?

#

yay!

#
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a single digit. Add the two numbers and return the sum as a linked list.

You may assume the two numbers do not contain any leading zero, except the number 0 itself.
#

oo

#

my brain

#

🤯

#

i dont even understand what its asking me to do

#

thats enough leet code for today

#

tommorows problem

#

im nervese to talk in here

#

since im likely youngest in here

#

13

#

oop

#

@somber heath its leet code question 2

#

Example 2:

Input: l1 = [0], l2 = [0]
Output: [0]
Example 3:

Input: l1 = [9,9,9,9,9,9,9], l2 = [9,9,9,9]
Output: [8,9,9,9,0,0,0,1]

#

heres the preset code i have been given:

# Definition for singly-linked list.
# class ListNode(object):
#     def __init__(self, val=0, next=None):
#         self.val = val
#         self.next = next
class Solution(object):
    def addTwoNumbers(self, l1, l2):
        """
        :type l1: Optional[ListNode]
        :type l2: Optional[ListNode]
        :rtype: Optional[ListNode]
        """
        
#

ooo

#

so does it just take away l2 from l1

#

so for example 3:
l1 = 9999999

#

ohhh

#

add them?

#

oh

#

rip

#

heres the preset code i have been given:

class Solution(object):
    def addTwoNumbers(self, l1, l2):
        """
        :type l1: Optional[ListNode]
        :type l2: Optional[ListNode]
        :rtype: Optional[ListNode]
        """
        
        l1_string = ""
        l2_string = ""
        
        for num in l1:
            l1_string += num
        for num in l2:
            l2_string += num
        
        output = int(l1_string) - int(l1_string)
        output_list = []
        
        for i in str(output):
            output_list.append(i)

        return output_list
#

could that work?

#

?

#

concatinate

somber heath
#

!e py 'abc' + 123

wise cargoBOT
# somber heath !e ```py 'abc' + 123```

:x: Your 3.12 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     'abc' + 123
004 |     ~~~~~~^~~~~
005 | TypeError: can only concatenate str (not "int") to str
inland beacon
#

lets do a test

#

on my code

#

!e

class Solution(object):
    def addTwoNumbers(self, l1, l2):
        """
        :type l1: Optional[ListNode]
        :type l2: Optional[ListNode]
        :rtype: Optional[ListNode]
        """
        
        l1_string = ""
        l2_string = ""
        
        for num in str(l1):
            l1_string += num
        for num in str(l2):
            l2_string += num
        
        output = int(l1_string) - int(l1_string)
        output_list = []
        
        for i in str(output):
            output_list.append(i)

        return output_list

test = Solution()
print(test.addTwoNumbers([9,9,9,9,9,9,9], [9,9,9,9]))
noble solstice
wise cargoBOT
# inland beacon !e ```py class Solution(object): def addTwoNumbers(self, l1, l2): ""...

:x: Your 3.12 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 26, in <module>
003 |     print(test.addTwoNumbers([9,9,9,9,9,9,9], [9,9,9,9]))
004 |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
005 |   File "/home/main.py", line 13, in addTwoNumbers
006 |     l1_string += num
007 | TypeError: can only concatenate str (not "int") to str
inland beacon
#

what is concatenating?

#

!e

class Solution(object):
    def addTwoNumbers(self, l1, l2):
        """
        :type l1: Optional[ListNode]
        :type l2: Optional[ListNode]
        :rtype: Optional[ListNode]
        """
        
        l1_string = ""
        l2_string = ""
        
        for num in str(l1):
            l1_string += num
        for num in str(l2):
            l2_string += num
        
        output_list = []
        
        for i in str(output):
            output_list.append(i)

        return output_list

test = Solution()
print(test.addTwoNumbers([9,9,9,9,9,9,9], [9,9,9,9]))
wise cargoBOT
# inland beacon !e ```py class Solution(object): def addTwoNumbers(self, l1, l2): ""...

:x: Your 3.12 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 26, in <module>
003 |     print(test.addTwoNumbers([9,9,9,9,9,9,9], [9,9,9,9]))
004 |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
005 |   File "/home/main.py", line 17, in addTwoNumbers
006 |     output = int(l1_string) - int(l1_string)
007 |              ^^^^^^^^^^^^^^
008 | ValueError: invalid literal for int() with base 10: '[9, 9, 9, 9, 9, 9, 9]'
inland beacon
#

mmm

#

!e

class Solution(object):
    def addTwoNumbers(self, l1, l2):
        """
        :type l1: Optional[ListNode]
        :type l2: Optional[ListNode]
        :rtype: Optional[ListNode]
        """
        
        l1_string = ""
        l2_string = ""
        
        for str(num) in l1:
            l1_string += num
        for str(num) in l2:
            l2_string += num
        
        output_list = []
        
        for i in str(output):
            output_list.append(i)

        return output_list

test = Solution()
print(test.addTwoNumbers([9,9,9,9,9,9,9], [9,9,9,9]))
wise cargoBOT
# inland beacon !e ```py class Solution(object): def addTwoNumbers(self, l1, l2): ""...

:x: Your 3.12 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 25, in <module>
003 |     print(test.addTwoNumbers([9,9,9,9,9,9,9], [9,9,9,9]))
004 |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
005 |   File "/home/main.py", line 19, in addTwoNumbers
006 |     for i in str(output):
007 |                  ^^^^^^
008 | NameError: name 'output' is not defined
inland beacon
#

fuck

#

mhm

#

wait ik

#

maybe

#

should that work?

#

oh

somber heath
#

@lime lava 👋

inland beacon
#

!e

class Solution(object):
    def addTwoNumbers(self, l1, l2):
        """
        :type l1: Optional[ListNode]
        :type l2: Optional[ListNode]
        :rtype: Optional[ListNode]
        """
        
        l1_string = ""
        l2_string = ""
        
        for str(num) in l1:
            l1_string += num
        for str(num) in l2:
            l2_string += num
        
        output = int(l1_string) - int(l2_string)
        output_list = []
        
        for i in str(output):
            output_list.append(i)

        return output_list

test = Solution()
print(test.addTwoNumbers([9,9,9,9,9,9,9], [9,9,9,9]))
wise cargoBOT
inland beacon
#

mmmmm

#

what

#

bye

#

!e

class Solution(object):
    def addTwoNumbers(self, l1, l2):
        """
        :type l1: Optional[ListNode]
        :type l2: Optional[ListNode]
        :rtype: Optional[ListNode]
        """

        l1_string = ""
        l2_string = ""

        for num in l1:
            l1_string += str(num)
        for num in l2:
            l2_string += str(num)

        output = int(l1_string) - int(l2_string)
        output_list = []

        for i in str(output):
            output_list.append(i)

        return output_list


test = Solution()
print(test.addTwoNumbers([9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9]))
wise cargoBOT
somber heath
#

@young solstice 👋

young solstice
#

I’m muted by default

somber heath
#

!voice

wise cargoBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

young solstice
#

(╯°□°)╯︵ ┻━┻

#

why would this bot lemme speak

#

😾

#

You guys into cricket?

#

Gotta spam 50 msgs b4 I could speak

#

LMAO

#

Cheeky bottie 🤖

#

42

#

41

#

40

#

Thirty

#

Nine

#

Thiry

#

Eight

#

3️⃣7️⃣

#

Not long

#

36

#

35

#

ffs

#

Pls carry on

#

It says this

#

@somber heath suppose you’re the admin?

#

Just out of sheer curiosity

tulip dove
#

You have to engage in conversation

young solstice
#

Indeed

tulip dove
#

Chat with others

young solstice
#

Fosho

#

Alright don’t bother

tulip dove
#

Don't u know python

young solstice
#

Yes nitty gritty

#

Learning

#

Grasping

tulip dove
#

OK talk to others about it

young solstice
#

Automation

young solstice
tulip dove
#

Ask for help

#

And u will be permitted

young solstice
#

Ahan cool @somber heath

young solstice
#

50 and I’m my voice spawns in vc

#

💀

#

Anyway what’s your expertise Mr. Opal?

#

Mind me asking

#

Ouhh fuck around & find out

#

Cool rool

#

What’s suffocating?

#

You atm

#

What’s the crux?

#

What does it demand

#

Spill

#

Relationships?

#

Monetarily

#

Alright I hope you get over it

#

🔜

somber heath
young solstice
#

I love cheering ppl up

#

It’s the depth

#

Been there, done that

tulip dove
#

We have to help u chat

young solstice
#

You’re double score I assume?

#

20+20

#

You’re 40?

#

Midlife crisis?

#

Guess mine

#

Based on chat

tulip dove
young solstice
#

Prior one

#

Hitting 24 Jan 1

young solstice
#

Well anyway

#

How’s the weather?

tulip dove
#

Very sunny

young solstice
#

It’s misty here

#

Misty diffused sunlight

#

It’s 60°F where I’m

#

🆒

#

15-16°C

#

Warm Indeed

autumn lake
#

hi my net died ._.

young solstice
#

Do the math

#

F=9/5C + 32

#

That’s the conversion

#

Plug in the values

#

You get the numbers

#

High time

young solstice
#

😂

autumn lake
young solstice
#

Woah Kangaroo lands

#

Sheer boxers

#

🦘🥊

#

They’re stout studs

#

Indeed

young solstice
#

Yeah yeah 👍

#

Australia playing 2day?

#

Test match

#

Shall we stream?

#

Ouhhhh

#

And wb Spiders

#

How’d we access that?

#

Understood roger

#

🫡

#

Cool stuff

tulip dove
#

Hey having fun chatting

#

Remember 50 chats

young solstice
#

Yeah having fun big time

young solstice
#

Plot twist

#

😂😂😂😂😂😂😂

tulip dove
#

Why

#

It will work

young solstice
#

Gotta hit the general chat fothat

tulip dove
#

OK do it

young solstice
#

And what’s seasonal fruit Opal?

#

And wb brandy?

#

You snort or stuff?

tulip dove
#

I'll meet u there

young solstice
#

🆒

tulip dove
#

How old are u

young solstice
#

24

tulip dove
#

Oh

young solstice
#

Wht about you?

tulip dove
#

I'm younger

#

Way younger

young solstice
tulip dove
#

Couldn't u tell by my voice

young solstice
#

makes sense @somber heath

#

So comprehensive

young solstice
#

💀

#

Gen Z dude

#

Kiddo*

#

But cool

tulip dove
young solstice
#

I wouldn’t nxt time kiddo

autumn lake
#

eyo i also found out where the discord mic settings are (my "joined discord" date is to the letter)
hopefully my mic sounds better now

young solstice
#

Hilarious @somber heath

#

Berserk enough lore

#

Danggg

#

🤣

#

Tell more lores

#

We’re having lullaby time

#

Chilled ran down the coccyx spine bone

#

😮‍💨

#

💨

#

Wb LSDs?

#

Lythergic Acid Diethylamide

#

Decembers known for that

autumn lake
#

if its not too much of an ask, may you send the title of the series? ive been planning to set up watchparties with family

somber heath
#

Fringe

autumn lake
#

thanks! really needed the spelling 😄

#

brb. i gotta restart my laptop

young solstice
#

Yeah I’m here Opal

#

Sure I’mma do it asap

#

What’s the last series you’ve watched

#

On Netflix

#

Movie 🎦

#

🍿

#

Black Mirror?

#

🆒

#

Predicting what?

#

Tech dystopia?

#

Yeah yeah’ sound

#

You folks hopp on vc often?

#

How frequently

autumn lake
#

oh!!! thats really nice IMO

young solstice
#

Exactly spot on

#

Your voice just fit for voice over artistry

#

Mr. @somber heath

autumn lake
#

all i could comment is "bonkers"

#

ah, yes, the "we need to defend against the unknown enemy" and the "we need to exert more control over those we deem have less agency than us"

young solstice
#

Alright I’mma dipp folks

#

Great listening to you

somber heath
#

@civic hare 👋

civic hare
#

Oh, thanks

somber heath
#

!voice

wise cargoBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

autumn lake
#

erm, sorry if its an obvious steer away from what you were talking about

...whatre your hobbies? 😅

civic hare
#

I am not yet ready to qualify

#

Less than 50 messages XD

#

I have no mouth but I must chat)

autumn lake
#

pigeons are silly 🙂

#

got any siblings? the talk of animals reminded me of my youngest brother. he loves cats. any cat. mostly house cats.

civic hare
near drift
#

Hello @somber heath

abstract inlet
#

..

autumn lake
#

too bad asthma runs in the family

#

so no house pet for him

#

ah, bird flu. always has an outbreak season here in where i live

young solstice
#

Let’s spam kitties

civic hare
#

Weren't they the main distributor of the bird flu?

young solstice
civic hare
#

I've meant the pigeons

autumn lake
civic hare
#

Is your accent Aussie or British? I can't tell

autumn lake
#

birds do have migration patterns, making tropical countries have their own bird seasons

civic hare
#

Probably India then

young solstice
civic hare
#

Wow, Ukrainian colors are really subtle behind that flower

#

This is what I hear from Aussies: Yos, moite, ore yo foine?

#

Like, so much "o"

#

Christ, I can't understand shit

#

Ima just glad you don't hear my awful slavic accent

#

Goddamn who barbeques shrimp

#

Imagine eating small shrimpies when you can eat decent sized cancer

#

Like it's just such a pain to clean

timid marten
autumn lake
#

whoopla my net ded again

timid marten
autumn lake
#

byebye for now

timid marten
#

XD

autumn lake
#

i really like silly words

civic hare
#

XD

civic hare
#

Okay ima be going too, but thanks for your monologue anyways XD
Ciao

timid marten
#

@somber heath This thingy is not going anytime soon. I might be on later tonight but your expositions are always hilarious. Thanks for the smiles man wheeze

somber heath
#

!e print(2006 - 1988)

wise cargoBOT
somber heath
#

18 years in the airport.

#

Mehran Karimi Nasseri (Persian: مهران کریمی ناصری, pronounced [mehˈrɒn kæriˈmi nɒseˈri]; 1945 – 12 November 2022), also known as Sir, Alfred Mehran, was an Iranian refugee who lived in the departure lounge of Terminal 1 in Charles de Gaulle Airport from 26 August 1988 until July 2006, when he was hospitalized. His autobiography was published as ...

somber heath
#

@grand crescent @pseudo thunder 👋

grand crescent
#

hello!

#

i cant talk because i join on this server today😅

#

I have a question 😅

somber heath
grand crescent
#

actually im new in python and im creating a small mod for game world of tanks for bigger project and i need a little bit of help because my code doesn't work like i want to

#

yea

#

and my question is can you help me do you have time ?

#

oww not much code

#

thats all

#

this have to be wrote in python 2.7

#

yea i hate this too

#

i cannot give you my screen 😿

somber heath
#

!d io

wise cargoBOT
#
io

Source code: Lib/io.py

grand crescent
#

that is for damage panel ,that should read damage from gamei think😅

#

i need values from this icons

grand crescent
# grand crescent

and i with my friend find i think variables for that which is that

peak depot
#

same

grand crescent
#

i have only that

#

yeaa it is

quartz beacon
timid marten
quartz beacon
timid marten
#

🐟

grand crescent
#

no this is not illegal

#

i can explain what i want to do with my friend ,the world of tanks is game which allows creating mods, in files world of tanks is special folder for mods but i understand if this violate server rules im sorry i don't know this 🙏

#

for explain my project i want to get values for damage panel for this icons which i send earlier save that into txt file ,read values from txt in arduino and synchronize this with bulb in real life

south loom
#

!resources

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

grand crescent
#

Yea i was looking for tutorials but every tutorial is from russia which i dont understand 😅

#

ok anyway thanks for everythink and have a beautiful day!❤️

versed heath
somber heath
#

@tawdry grotto 👋

south loom
noble solstice
#

Hlo Guys!!

versed heath
#

hi

noble solstice
#

anyone want to solve fun problem

versed heath
noble solstice
noble solstice
noble solstice
# versed heath what problem
an airline employs two counters one for first class and other for coach class passenger The service time at both counters have been found to be exponential with mean 3 min the coach class passengers arrive at rate of 18 per hr and the upper class passgenrs arrive 15per hour is there any advantage in keeping exclusivity of service in the counters? mean no of customers in the system anf mean waiting time all in steady state```
noble solstice
noble solstice
tulip dove
#

Hey guys

whole bear
#

How about Pi?

#

pi =

3.1415926535 8979323846 2643383279 5028841971 6939937510
5820974944 5923078164 0628620899 8628034825 3421170679
8214808651 3282306647 0938446095 5058223172 5359408128
4811174502 8410270193 8521105559 6446229489 5493038196
4428810975 6659334461 2847564823 3786783165 2712019091
4564856692 3460348610 4543266482 1339360726 0249141273
7245870066 0631558817 4881520920 9628292540 9171536436
7892590360 0113305305 4882046652 1384146951 9415116094
3305727036 5759591953 0921861173 8193261179 3105118548
0744623799 6274956735 1885752724 8912279381 8301194912
...

wind raptor
whole bear
wind raptor
#

No no, not at all

whole bear
#

Why not?

wind raptor
#

Just we should have built more housing before bringing in so many people. Pricing is crazy here because they didn't plan it out properly

whole bear
#

Quick solution is limiting Immigrants

wind raptor
#

I think that is what they are doing now.

whole bear
#

But it will cost government in taxes and economy as well

#

Almost 30%

wind raptor
#

I just wish they would have planned it a bit better. I'm all about immigration, but they should have ramped it up a bit more slowly so that they could gauge how it would affect things a bit better.

whole bear
#

Suppose there are 4 or more option and one of option is closed, the other 3 or more are open.
Same goes with these immigrants, as these immigrants are like walking gold, they bring wealth, knowledge and more. So these immigrants will immigrate to other nation, not Canada and its miss opportunity

#

@neon shore

#

bro

#

@neon shore

#

bro

neon shore
#

yo

whole bear
#

I can't speak but i need help

neon shore
#

about what?

whole bear
#

vs code

#

I want to run my python code without debugger

#

i don't know the shortcut

#

'i have to click the button run"

#

oh

#

When i started coding i was using pycharm

#

it was complicated at starting

#

so i shifted to vs code

#

alr thanks

#

have a good day guys

tulip dove
#

Hey AP52

willow light
gentle flint
#

A jerrycan or jerrican (also styled jerry can or jerri can) is a fuel container made from pressed steel (and more recently, high density polyethylene). It was designed in Germany in the 1930s for military use to hold 20 litres (4.4 imp gal; 5.3 US gal) of fuel, and saw widespread use by both Germany and the Allies during the Second World War.
Th...

rugged root
#

I will actually be on soon. But you'll have to deal with Vanlock

#

And by that I mean the crappy van bluetooth

#

Sorry in advance

glad sandal
#

2-XL (2-XL Robot, 2XL Robot, 2-XL Toy) is an educational toy robot that was marketed from 1978–1981 by the Mego Corporation, and from 1992–1995 by Tiger Electronics. 2-XL was the first "smart-toy" in that it exhibited rudimentary intelligence, memory, gameplay, and responsiveness. 2-XL was infused with a "personality" that kept kids focused and ...

pseudo thunder
#

oh I saw a whole documentation on what Coco melon does to kids

#

sorry I am new to the server I cant talk

#

will it be OK if I ask an optimization question?

tulip dove
pseudo thunder
#

few days ago

tulip dove
#

3 days ago

pseudo thunder
#

I have a string with a date in it in a foreign language and I am converting it in to the number of the month like this: def get_month_number(date_fallen): for i in monthes: if i in date_fallen: month_num = monthes.index(i) + 1 print(month_num)

#

monthes is a list with the month names in the foreign language

tulip dove
#

Ok

pseudo thunder
#

can anyone think of optimization for this I have a feeling looping over all monthes every time is slow

tulip dove
#

Oh

gentle flint
tulip dove
gentle flint
#

yeah the neighbours decorated their tree

crystal fox
gentle flint
#

parking garage where all the ramps collapsed without warning in the middle of the night

lethal shell
crystal fox
lethal shell
gentle flint
tawdry grotto
#

Hi

lethal shell
gentle flint
#

@crystal fox

crystal fox
lethal shell
#

Title:Ai Cat Kidnep Sad Story #viral #cuteanimal #catlover #cutecat #cat #youtubeshorts #poorcat #cuteanimal #cutepet #funny #youtubevideo #youtubeshort #viralshorts #viralshort #cats #trendingshorts #trending #trendingvideo #shots #short #shorts CAT,AI CAT,ai cat,video,yt shorts,ai cat videos,cat shorts,cat cute,cute cat,cte animals,ai images,a...

▶ Play video
crystal fox
frozen owl
#

goated

#

but not goat cheese

peak depot
gentle flint
#

A hay barrack (haybarrack) is an open structure with a movable roof for storing loose hay on a farm. Hay barracks were widespread in northern Europe in medieval times, also found in the Alps and North America, but are rare today. Early usage of this term was noted as being peculiar to New York state. Hay barracks were used in much of Europe and ...

peak depot
gentle flint
#

for more or less hay

peak depot
#

Don't try this at home! We are using remote location that is cleared of all people and did this during start of winter when everything is wet all around so no risk of anybody getting hurt or starting forest fire. Fireworks are ignited with remote ingnitor from safe location by profesionals.

In this explosive video, we take fireworks to the nex...

▶ Play video
crystal fox
#

told you i'd do it

gentle flint
#

thanks

frozen owl
#

brb

solar jewel
#

meow meoww meowww, now i just sufffer - Billie Eilish prob

gentle flint
short owl
#

discord on mobile --------- oooooooooooooooo

gentle flint
short owl
#

hmm lots of cooking accesories @crystal fox

vocal basin
#

@gentle flint
- how many seconds are between two stable Rust releases?
- 10!

dull sluice
#

Did this inspire a puzzle or was this made by the solution?

gentle flint
vocal basin
#

6 weeks, yes

#

2020 part 6 soon

#

<2months

short owl
#

pizza in a clay oven , fired by wood very different flavor @gentle flint

#

ancient code , no can code in so they keep it ?

vocal basin
#

"
-- what would you do differently?
-- preferably not Fortan
"

short owl
#

me ?

gentle flint
#

this is why it causes sadness

vocal basin
gentle flint
#

they are both ancient

#

but the language is more ancient

#

and the code still gets developed

short owl
#

I asked the duck , why use FORTRAN , for high performance computing

vocal basin
#

2023 is truly the year of big legacy-adjacent languages getting updates

#

Fortran, COBOL, Java LTS, C, C++

short owl
#

using AI to improve it - OR - is that a sad joke

vocal basin
#

wouldn't be surprised if C++29 gets in-language NPU support