大约有 10,170 项符合查询结果(耗时:0.0139秒) [XML]
Why is the time complexity of both DFS and BFS O( V + E )
...
8 Answers
8
Active
...
Functional programming - is immutability expensive? [closed]
The question is in two parts. The first is conceptual. The next looks at the same question more concretely in Scala.
9 Answ...
How to serve an image using nodejs
I have a logo that is residing at the public/images/logo.gif . Here is my nodejs code.
11 Answers
...
How can we match a^n b^n with Java regex?
One of the archetypal non- regular languages is:
3 Answers
3
...
Why aren't variable-length arrays part of the C++ standard?
I haven't used C very much in the last few years. When I read this question today I came across some C syntax which I wasn't familiar with.
...
How to replace a character by a newline in Vim
I'm trying to replace each , in the current file by a new line:
11 Answers
11
...
Avoid trailing zeroes in printf()
I keep stumbling on the format specifiers for the printf() family of functions. What I want is to be able to print a double (or float) with a maximum given number of digits after the decimal point. If I use:
...
Test if lists share any items in python
I want to check if any of the items in one list are present in another list. I can do it simply with the code below, but I suspect there might be a library function to do this. If not, is there a more pythonic method of achieving the same result.
...
Why does C++ rand() seem to generate only numbers of the same order of magnitude?
In a small application written in C/C++, I am facing a problem with the rand function and maybe the seed :
9 Answers
...
Interactive search/replace regex in Vim?
I know the regex for doing a global replace,
7 Answers
7
...
