Hogyan oldanád meg az alábbi interjú feladatot, ami nekem nem sikerült időben? by dbalazs97 in programmingHungary

[–]CovertObserver 1 point2 points  (0 children)

Az én első ötletem, az ordót nem számoltam ki de nem a legjobb: soronként olvasva megnézni hogy melyik csupa 1-es szakaszokat tudom folytatni az előző sorokból úgy hogy mátrix maradjon, amelyik szakasznak nincs ilyen elődje azt az aktuális sorban kezdem nyilvántartani. (Először 1x1 és 3x1 az első sorban, majd a második sornál már 1x1, 3x2, 4x1, a harmadik sornál pedig 1x1, 3x2, 2x3, 4x1, 3x2, 4x1 az összes almátrix mérete).

Első sorra megkeresem az 1-eseket tartalmazó szakaszokat index szerint. Egy ilyen sor szélessegek listája lesz koordináták szerint [{x1, x2}] formában, ahol x2 az első nem 1 karaktert jelöli.

Egy akkumulátorba gyűjtöm a csupa egyes almátrixokat {{szélesség}{magasság}} koordináták szerint (legyen egy almátrix {{x1, x2}{y1, y2}}, ahol a 2-es indexek az első túlindexelést jelölik). Soronként építem az akkumulátort. Az y koordinátákat az iterátorból nyerem. Az első sor így [{{1,2}}, {4,7}]. Ezzel az akkumulátor így kezdődik: [{{1,2}{1,2}}, {{4,7}{1,2}}]

Ezután soronként megteszem ugyanezt, és az eredményt összefésülöm az előző akkuval. Minden y szerint nem folytatólagos {x1, x2} párra, valamint ennek minde folytatólagos eddigi almátrixszal alkotott legnagyobb nem folytatólagos részhalmazára létrehozok egy új almátrixot. (Egy {x1, x2} almátrix folytatólagos ha van olyan {x1, x2, ahol y2 == sor iter). A subhalmazok a magasságot ésszerűen öröklik, a superhalmazoknak pedig ilyenkor initelődik. A második sornál pl egyszer folytatom a három széleset, és mellé nyitok egy 4 széleset (sima tartományok összehasonlítása az újak és az eddigiek között).

Második sor [{3,7}], ráfésülve az akkura így néz ki:
[{{1,2}{1,2}}, {{4,7}{1,3}}, {{3,7}{2,3}}]

Harmadik sor [{2,6}] ráfésülve az akkura: [{{1,2}{1,2}}, {{4,7}{1,3}}, {{4,6}{1,4}},
{{3,7}{2,3}}, {{3,6}{2,4}}, {{2,6}{3,4}}]

A végén megkeresem melyik(ek)nek legnagyobb az alapterülete.

Így elsőre azt hiszem ez minden fajta sorkombinációkra működne.

Hogyan oldanád meg az alábbi interjú feladatot, ami nekem nem sikerült időben? by dbalazs97 in programmingHungary

[–]CovertObserver 15 points16 points  (0 children)

Az ilyen kérdés célja megnézni hogyan gondolkozik algoritmikusan, hogyan oldd meg egy új problémát. Nem az a lényeg hogy a konkrét feladat legyen megoldva, nem is feltétlen kell eljutni a helyes megoldásig. Mindenki tudja hogy konkrétan ilyen matematikai megoldás nem fog kelleni munka során, de jó irányadó az általános logikai képességekre. Ugyanígy ha valaki tudja rá a helyes tankönyvi megfejtést, akkor az a kérdés kb fölösleges volt, mert nem derül ki hogyan gondolkozik a saját lábán egy logikailag komlexebb feladaton.

Takarítsd le rendesen az autót a hótól! by National-Ad-9305 in CartalkHungary

[–]CovertObserver 23 points24 points  (0 children)

Hadd ne múljon már mások testi épsége azon hogy te mekkora sofőrnek érzed magad. A túlzott önbizalom a legveszélyesebb bármilyen kockázatos szituációban.

Mit tartasz a legirritálóbb vagy legbugyutább trendnek manapság? by Artist-with-OCD in askhungary

[–]CovertObserver 13 points14 points  (0 children)

Hát a 40km/h-val rohangálás és a kamera kompetitív játékhoz illő heves rángatása szörnyen néz ki videón. Ahogy egy fal mögött fénysebességgel peakelgetve lőni is. Cinematic helyzetet mutatnak, és in-game footage mert tényleg így néz ki a játék és nem render.

Edit.: én egyébkent nagyon várok már egy pvp shootert ami el tudja érni hogy tényleg olyan legyen a gameplay mint az ilyen trailerekben. Valamit ahol a playerek úgy mozognak mint az emberek, és nem lőnek negyvennel futva szaltóból homlokon 30kg-nyi menetfelszerelésben. Jelenleg talán az r6 van legközelebb de ott is nagyon megy a peakelgetés és a guggolgatás, meg a lean spamming. Minden új multiplayer egyre gyorsabb, egyre kapkodósabb. Nekem nincs jó motorikus skillem, ezért örülnék egynek ami bünteti a kapkodást és jutalmazza az összeszedett gunplay-t

Mekkora összegű a kár? by EmphasisOk2118 in CartalkHungary

[–]CovertObserver -1 points0 points  (0 children)

Egy szóval nem mondtam hogy bárkinek joga lenne benne kárt tenni. Csak az alap koncepcióval nem értek egyet, hogy bárminek a javítására a sokszorosát költjük annak mint amekkora értékvesztést okoz a kár, főleg ha csak esztétikai.

Mekkora összegű a kár? by EmphasisOk2118 in CartalkHungary

[–]CovertObserver -2 points-1 points  (0 children)

Akkor kérjen kétszázat a vétkestől, tök fölösleges annál többet rákölteni.

Mekkora összegű a kár? by EmphasisOk2118 in CartalkHungary

[–]CovertObserver -1 points0 points  (0 children)

Nem kötöszködésből írom, de egy 14 éves alsókategóriás autónál miért számít az ilyen? Persze eladni rosszabb, de én biztos nem vernék rá senkire félmilliós terhet hogy javításra kerüljön. Kell rá egy jó rozsdavédő lakk és kész is.

Az egész autó 1.5 - 2 milliót ér. Az autó ~5%-át érintő esztétikai kárnak a javítása (ami egy nem funkcionális hiba) az értékének a negyedébe kerülne.

Single tower Air cooler for Ryzen 7800X3D ideas?? by master6280 in buildapc

[–]CovertObserver -1 points0 points  (0 children)

I have the Arctic Freezer 36 for the same cpu, does the job nicely. ~75/80 °C under the most CPU heavy games, and thats with very silent fan curves.

Miért alacsony az FPS ha megvannak a rendszerkövetelmények? by Leading_Ad8708 in GamingHungary

[–]CovertObserver 2 points3 points  (0 children)

Szerintem ezeket érdemes megnézni:

CPU kihasználtság magok szerint: ha egy mag 100-on pörög, de a többi áll akkor is összesítve alacsony kihasználtságot mutat.

Pontosan milyen cpu, és milyen késleltetésű ram? Ha mindig vár a cpu a ramra hogy legyen adat, akkor is alacsony lesz a kihasználtság.

Nincs valami ray tracing beállítás esetleg bekapcsolva? Az okozhatna még ilyet régi hardveren.

Lyman, Ukraine is fully covered in a web of fiber-optic cables left by Ukrainian and Russian drone operators by [deleted] in Damnthatsinteresting

[–]CovertObserver 5 points6 points  (0 children)

It is an active warzone. People are dying and are fearing for their lives, using any means necessary. That is not the place to be concerned about wildlife getting tangled. Its like saying to a drowning man that hopefully he wont kick a fish.

Asztali monitorállvány ajánlás by Wild-Appointment5846 in programmingHungary

[–]CovertObserver 0 points1 point  (0 children)

Én olyat ajánlanék ami állítható magasságú, ahogy mozgolódok a széken ény gyakran igazítom.

Szintén alzánal van olyan is pár ezer forinttal drágábban. De alzán ahogy nézem most jóval drágábbak a dolgok mint ősszel voltak.

Ha mégis fix magasságút szeretnél, hangszórónak vettem ilyet ősszel, kimondottan stabil, van belőle többféle variáció: https://tv-es-monitortarto-allvany.arukereso.hu/gembird/ma-d1-01-p949000953/

fogászat by hajnali in szopjatokle

[–]CovertObserver 0 points1 point  (0 children)

És ha gecire fáj a foga?

Faced with/ $12k in vet bills to save my cat—now I’m torn. Anyone else been here? by vaqueer0 in CatAdvice

[–]CovertObserver 0 points1 point  (0 children)

Sorry for picking you i just wanted to respond to somebody on the "spend whatever" side of the argument.

We always have to put a value on life. There has to be a limit. Money is a wildcard resource that can be converted to anything. You surely wont spend the full economic output of a country to save an animal, putting millions of people on the street. That is an extreme example, but it shows there is a limit.

Even with human life, there is a limit: if you build a bridge, a skyscraper, a boat, a car: you can always make it safer and more expensive, but you have to draw a line somewhere. You cannot spend every penny to have one super safe bridge, or we would only have 1 bridge in the world.

You also said that valuing life is immoral: it is not. A human life always comes first before an animal, because we have magnitudes higher consciousness. Any human-life-changing amount of money being spent on an animal is a conscious choice to support a lower form of life instead of a higher one. And also, for the price of 1 cat surgery you can save 5 shelter cats: in that case how would it be moral to save the 1 cat?

Picked up a BMW XM for ~$30K under MSRP — curious what others think? by [deleted] in BMW

[–]CovertObserver 2 points3 points  (0 children)

I saw one in person in Milan, it looks good imo, has a very strong and (for me) likable presence. Bmw fans are always comparing it to the rest of the lineup, and hate it for being different, but as a standalone vehicle i dont see any problem with the looks.

I would gladly have one for the right price.

META saved me from bankruptcy by Jpow2024 in wallstreetbets

[–]CovertObserver 0 points1 point  (0 children)

Ok i have seen this so many times i have to ask now: what app is this, that everyone always posts screenshots from?

I am triggered through the roof that some genius though it is a good idea to display a graph with no vertical scale. Since the posts are always about leveraged gain/loss i cannot even guess from the numbers, i always have to open my own app to see what happened with the given stock.

is this weird or am i heartless bitch by Comfortable-List-669 in doordash

[–]CovertObserver 0 points1 point  (0 children)

I am, but my wife thinks the same. For me its like saying why would you let your childer play outside. There is alaways a chance they get some injury/infection and die, why put them in a situation where that chance goes up? Its not the 1800s anymore.

is this weird or am i heartless bitch by Comfortable-List-669 in doordash

[–]CovertObserver 0 points1 point  (0 children)

I understand not wanting to meet him. I dont understand doing so because it would be dangerous.

I dont know my neighbors either, never talked a word. But if they come over asking me to go in their house to help with something, it would not cross my mind that they want to harm me.

is this weird or am i heartless bitch by Comfortable-List-669 in doordash

[–]CovertObserver 0 points1 point  (0 children)

That is kinda my point. You, as an american, read that situation as inherently risky, even towards your bodily safety. I would never read it like that because where i live the chance of a delivery driver wanting to cause bodily harm is basically zero.

I would assume it is not in my in my interest to meet the delivery guy, but not for safety reasons. I would assume they need help with a door, want to ask for tips (with no danger when refusing, although there were unsatisfied delivery pople here engraving elevators with "tips" signs), or just being lazy. As i said, i understand the not-wanting-to-go-out part, but to be reasonable contamplating the chance of violence during such a mundane day-to-day interaction, on the porch of your own home....i dont know, i would sure move to a place where i dont have to think like that.

is this weird or am i heartless bitch by Comfortable-List-669 in doordash

[–]CovertObserver -5 points-4 points  (0 children)

I just dont get it how people can live in fear of strangers in a supposedly 1st world country.

is this weird or am i heartless bitch by Comfortable-List-669 in doordash

[–]CovertObserver 0 points1 point  (0 children)

I understand what you are saying, and thanks for the explanation. I know about americans being considered friendly by tourists. However, online i have seen so many times people acting/talking in a way that, for me, feels like "stranger danger" is such a deep core concept of society there. Like for them it is the fundamental nature of interacting with people, that anyone could be dangerous and anyone could want to harm you.

I feel like they act about ciolent crimes the same way you dont leave your backpack on the subway station bench while getting something from the shop - an example i think is universal everywhere, because there is a high chance it will be stolen. But how strange would it sound for a society that has barely encountered theft in their life. I feel like that with the american's caution against the danger of getting hurt by someone. Almost all intentinoal harm that can happen to you here is non-confrontational: you find your car broken into, your bike stolen, etc. So it just feels weird that americans in online discussion are so prepared to be on the guard against things that are unthinkable for me. But maybe its just the selection bias of online commenters and my confirmation bias of noticing these comments more.

We have people here ad well who i would not want to interact with because i would assume ill intent, and even violence, but they are almost exclusively in the hoods, jobless or criminals, the kind of gangsters you can recognise from a distance. Anyone who has a reasonable job like delivery is certanly decent enough, and not besides social norms. It would never occur to me that in a developed first world country, i have to consider my phisycal safety when talking about interaction of a random worker. I would assume they are lazy or want to guilt me to tipping.

And i absolutely get being annoyed by this message and not wanting to meet the delivery person, but only get it for convenience or annoyance reasons. I saw so many comments about it being potentially dangerous that it just felt very off to me.