Комментарии:
Shut up😂😂😂😂😂
Ответитьuse map xd
Ответитьthis is hilarious
ОтветитьHands down best explanation of time dilation on the internet.
ОтветитьFor those who dont understand why C was written faster than python:
Actually it was a bot (programmed by the language of the vid's moment) that coded those files, and how we all know that C is faster than python, the C code was done faster.
underrated vid
C is bullshit.
ОтветитьI love ❤ that you only appear to write C code while listening to Heavy Metal 😂
ОтветитьMan i just wanted to learn how to make pizza like chica does
ОтветитьLets modify the technical task: write the same thing, but it should take less than 10ms to execute
ОтветитьMaybe it could be a good idea to compare a running time also for larger arrays (with approx. 10000 numbers). In my experience, python is perfect for his ability to fast development; But the C language is perfect for fast execution (usually it is running time of C approx. 8 times shorter than python ) with solid development time. Lets imagine, that you need to covert video (some movie) and this conversion takes 10 hours by C code.. Are you really able to wait 80-100 hours to conversion of video with python code ? It is extremely wasting of time and electric energy.
ОтветитьNo wonder C is a popular language. Not only it makes you type faster, but it also plays doom music!
ОтветитьThe length of the array containing the intersection can't be bigger than the smallest array.
Ответитьf = lambda a, b: list(set(a) & set(b))
Ответитьset(a).intersect(set(b)). There half a second.
ОтветитьBrutal difference betveen PY and C like code length
Ответитьall you had to do was
print(*({8, 3, 1, 5}.intersection({5, 3, 4, 6, 9})))
in python
which has clearer, simpler, shorter code that is more efficient for larger sets, with no weird memory leaks.
kids: using python
doom guy: typical C enjoyer
the music in C is worth it
ОтветитьI've never heard the crappy music when I write code. Geesh
ОтветитьWe all know that python is a very nice C/C++ application.
Ответитьwhy is the c video part played back faster? (nobody types that fast, without errors, even with tab completion)
ОтветитьC - takes 1 sec to run the code
python - takes 1000000000000000000000000000000 centuries to run the code
who cares pythons easy to write, right?
btw python is kinda like a library in c so tehnically they are both c one is just easier to write and wastes more time.
I Learn Cython
ОтветитьJust like Jython. Jython is a Python Programming Language Compiled in Java. It's Also a Python Programming Language Family
ОтветитьCython is a Python Programming Language Compiled in C. Cython is Just a Python Programming Language Family
ОтветитьI'll be a Cython Programmer Someday
ОтветитьThe fact is you’ve typed so much in C that your speed has become Godspeed. On the other hand python programmers need typing master pro.
ОтветитьopenAI Python in 9 seconds:
def intersection(arr1, arr2):
# Find the intersection of the two lists
result = list(set(arr1) & set(arr2))
return result
arr1 = [3, 7, 1, 9, 2]
arr2 = [4, 1, 9, 5]
result = intersection(arr1, arr2)
print(result) # Output: [1, 9]
Wow I never heard that you type 2x faster in C
ОтветитьGenerally curious what are the applications of finding the intersection of two unsorted arrays to begin with
ОтветитьOk so C is faster I guess
Ответить😁 Nice joke... I really appreciate the fact that you type 10 times faster in C than in Python 😂😆
ОтветитьAll languages are equal, i don't see syntax
Ответить“All languages are equal” some are just less equal than others! 😂
ОтветитьSpeedran in programming , it's interesting 🤔
ОтветитьC++
using namespace std::ranges;
auto intersect(range auto&& a, range auto&& b, auto out) {
std::unordered_set s1(begin(a), end(a));
std::ranges::copy_if(b, out, [&](auto& v) { return s1.contains(v); });
return out;
}
int main() {
std::vector a{1, 2, 3, 4, 5};
std::vector b{3, 16, 2, 1, 0, -5};
intersect(a, b, std::ostream_iterator<int>(std::cout));
}
Definatley not sped up (sorry for the spooling mistake)
ОтветитьPython version:
a = [8, 3, 1, 5, ]
b = [5, 3, 4, 6, 9, ]
c = list(set(a) & set(b))
print(*c)
Well, you could have used set in python. Much simpler answer
ОтветитьPython Single : 1.0s
Python Thread : 1.0s 🤔
C Single :1.0s
C Thread : 0.5s 😎
set(a) & set(b)
ОтветитьWrite python libraries in C, and then use Python for higher level tasks.
ОтветитьEven using vi, 😩😩
ОтветитьI am extremely new to C, can someone explain how the int arr in the intarr structure can be used as an array if it's not defined as an array?
ОтветитьLord Almighty
ОтветитьJavascript console.log(a.filter(arr=>b.includes(arr)))
Ответитьdreams music. This video is a masterpiece
ОтветитьLe gusta hacerlo ver complicado
Ответить