大约有 10,170 项符合查询结果(耗时:0.0377秒) [XML]
Why do we check up to the square root of a prime number to determine if it is prime?
To test whether a number is prime or not, why do we have to test whether it is divisible only up to the square root of that number?
...
How do I break a string over multiple lines?
In YAML, I have a string that's very long. I want to keep this within the 80-column (or so) view of my editor, so I'd like to break the string. What's the syntax for this?
...
Determine a string's encoding in C#
Is there any way to determine a string's encoding in C#?
9 Answers
9
...
O(nlogn) Algorithm - Find three evenly spaced ones within binary string
I had this question on an Algorithms test yesterday, and I can't figure out the answer. It is driving me absolutely crazy, because it was worth about 40 points. I figure that most of the class didn't solve it correctly, because I haven't come up with a solution in the past 24 hours.
...
What would cause an algorithm to have O(log log n) complexity?
This earlier question addresses some of the factors that might cause an algorithm to have O(log n) complexity.
2 Answers
...
Explode PHP string by new line
Simple, right? Well, this isn't working :-\
19 Answers
19
...
Moving average or running mean
Is there a SciPy function or NumPy function or module for Python that calculates the running mean of a 1D array given a specific window?
...
Best way to split string into lines
How do you split multi-line string into lines?
10 Answers
10
...
Remove all line breaks from a long string of text
Basically, I'm asking the user to input a string of text into the console, but the string is very long and includes many line breaks. How would I take the user's string and delete all line breaks to make it a single line of text. My method for acquiring the string is very simple.
...
How can I repeat a character in Bash?
...
32 Answers
32
Active
...
