大约有 10,151 项符合查询结果(耗时:0.0219秒) [XML]
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
...
Fast permutation -> number -> permutation mapping algorithms
I have n elements. For the sake of an example, let's say, 7 elements, 1234567. I know there are 7! = 5040 permutations possible of these 7 elements.
...
Maximum number of characters using keystrokes A, Ctrl+A, Ctrl+C and Ctrl+V
This is an interview question from google. I am not able to solve it by myself. Can somebody shed some light?
14 Answers
...