大约有 47,000 项符合查询结果(耗时:0.0391秒) [XML]
Write a function that returns the longest palindrome in a given string
I thought of a solution but it runs in O(n^2) time
22 Answers
22
...
Why is require_once so bad to use?
Everything I read about better PHP coding practices keeps saying don't use require_once because of speed.
14 Answers
...
How to print matched regex pattern using awk?
Using awk , I need to find a word in a file that matches a regex pattern.
8 Answers
...
How to access array elements in a Django template?
I am getting an array arr passed to my Django template. I want to access individual elements of the array in the array (e.g. arr[0] , arr[1] ) etc. instead of looping through the whole array.
...
How do you generate dynamic (parameterized) unit tests in python?
I have some kind of test data and want to create a unit test for each item. My first idea was to do it like this:
25 Answer...
How I can I lazily read multiple JSON values from a file/stream in Python?
I'd like to read multiple JSON objects from a file/stream in Python, one at a time. Unfortunately json.load() just .read() s until end-of-file; there doesn't seem to be any way to use it to read a single object or to lazily iterate over the objects.
...
Array initializing in Scala
I'm new to Scala ,just started learning it today.I would like to know how to initialize an array in Scala.
6 Answers
...
How to dynamically create CSS class in JavaScript and apply?
I need to create a CSS stylesheet class dynamically in JavaScript and assign it to some HTML elements like - div, table, span, tr, etc and to some controls like asp:Textbox, Dropdownlist and datalist.
...
How do I convert a string to a double in Python?
I would like to know how to convert a string containing digits to a double.
3 Answers
...
Large Numbers in Java
How would I go about doing calculations with extremely large numbers in Java?
6 Answers
...
