Write a one-pass algorithm with o (1) extra space to determine, if your path crosses itself, or not.
编写一个一趟遍历算法,并且只使用o(1)的额外空间来确定路径是否自相交。
Taking the one-pass clustering algorithm as the basic algorithm for grouping data, the issue of clustering ensemble is investigated.
以一趟聚类算法作为划分数据的基本算法,讨论聚类融合问题。
It came to pass that one evening he said to the king: "You think you have twelve huntsmen?"
一天晚上,他对国王说:“你以为你雇了十二个猎人吗?”
But for a country that tightly cites patriotism as one of its core values, the U.S. is taking a pass on what might be the most patriotic struggle of all.
但对于一个强调将爱国主义作为其核心价值观之一的国家来说,美国却忽视了一场可能最能体现爱国主义的斗争。
The plane made one pass, dipped its wings, then circled back.
飞机掠过去,垂下机翼,然后盘旋而回。
For one, the sheer number of hours we pass watching TV dwarfs the time we spend on anything else.
首先,我们花在看电视上的时间让我们花在其他事情上的时间相形见绌。
So, these kites were incredibly valuable to a objects-treasured community that one generation would pass to the next.
因此,这些风筝对于珍惜物品并将其代代相传的社区非常有价值。
That is really one of the major ways to pass on an illness.
这确实是传播疾病的主要方式之一。
After that, the student had to pass the paper to the next one.
之后,那个学生不得不把纸传递给下一个人。
"An average person, "Roach explains, "will, during the peak flatulence period, pass anywhere from one to almost three cups of flatus per hour."
“一个普通人,”罗奇解释道,“在肠胃最胀气的时候,每个小时会放出1到3杯的的屁。
One day, when Laozi was traveling through the Hangu Pass in Henan from the east, a purple mist suddenly appeared in the air.
一天,当老子正从东边经过河南的函谷关时,一缕紫色的薄雾突然出现在空中。
One source of error is refraction, the bending of light beams as they pass through air layers of different temperature and pressure.
误差的一个来源是折射,即光束通过不同温度和压力的空气层时发生的弯曲现象。
One day, when he finished delivering the letters and was ready to return, he happened to pass by a flower shop.
一天,当他送完信准备回去时,碰巧经过一家花店。
Most people with only one copy of the gene—"carriers"—survive and pass the gene to offspring.
大多数只有一个基因拷贝的人——“携带者”——能够存活下来并将基因传给后代。
One search pass can produce a summary of the searchable features of documents, and subsequent searches will never need to read those documents again.
一次搜索传递能生成文档可搜索特性的摘要,后继搜索就不必再次阅读这些文档。
One ski pass costs 100 rubles (3 dollars). Bikers are offered seven Tours for 500 rubles (17 dollars) which is more than enough for a day.
一张滑雪通行证的费用为100卢布(约合3美元)。自行车供应七个小时,花费500卢布(约合17美元),对一天来说是绰绰有余。
Remember also that each iteration through the loop wastes time, so rather than working through the same loop a number of times, try to perform all the actions in one pass through the loop.
还要记住的是,在循环中,每次反复都是在浪费时间,因此不要多次使用相同的循环,而是要尽量在一个循环中执行所有的操作。
One does not need to pass entrance exams to join this technical school in one of the Russian towns.
不需要通过入学考试就可以进入任何一个俄罗斯城镇的技术学校。
Take one down, pass it around, 99 bottles of biofuel on the wall!
喝下一瓶,过一会儿,就有99瓶生物燃料了。
To do these three things it must read your program top to bottom in one pass, looking for your SQL delimiters.
为了完成这三件事,它会将程序从头到尾读一遍,查找SQL分隔符。
An evolution represents one pass through all four phases of the lifecycle.
一次演进表示通过生命周期的所有四个阶段一次。
Each one you pass gives you another certification.
每通过一门考试都会使您获得另一个认证。
The metaclass will create the class (as a new style one) and will pass it to the class initializer procedure.
元类将创建此类(作为一个新式类)并将其传递给类初始化器过程。
Just before they pass one of the park's restrooms, they can see the man who is yelling.
他们刚走到公园的一处厕所前,就看到一个男子在那里大呼小叫。
Capillaries are only wide enough to allow red blood cells to pass through one at a time.
毛细血管的宽度只能一次通过一个红细胞。
It is true that by now Beijing's public transport is the cheapest. She should also have got a Beijing's "One Card Pass".
的确,北京的公共交通是目前最便宜的,她应该也办了张北京交通一卡通。
Vertex Lit path generally renders each object in one pass, with lighting from all lights calculated at object vertices.
顶点照明渲染路径通常在一个通道中渲染物体,所有光源的照明都是在物体的顶点上进行计算的。
For example, I often see the claim that XQuery's ability to query multiple, disparate sources in one pass gives it a distinct advantage over XSLT.
比如,我常常听说XQuery能够一次查询多个不同的源文件,因此要比xslt优越得多。
For example, I often see the claim that XQuery's ability to query multiple, disparate sources in one pass gives it a distinct advantage over XSLT.
比如,我常常听说XQuery能够一次查询多个不同的源文件,因此要比xslt优越得多。
应用推荐