HackerTrans
トップ新着トレンドコメント過去質問紹介求人

Thaliana

no profile record

コメント

Thaliana
·10 か月前·議論
The News Agents has almost entirely replaced TRIP for me. I still like some of their Leading interviews but TRIP itself I've gone right off.
Thaliana
·12 か月前·議論
I'd highly recomend you give reverse sear a go. It definitely works best with thick steaks but a nice low oven temp 120C (250F) and pull when the steak is 40C (120F), then into a ripping hot pan with oil in it gives a fantastic sear.

I'm not suggesting it's better than your method or anything but well worth trying imo!
Thaliana
·2 年前·議論
An easy way to convert lbs -> kg is divide by 2 and subtract 10%
Thaliana
·2 年前·議論
> why is it significant that we slice like a[i:i+4:i+4] rather than just a[i:i+4]?

Well I had never seen that "full slice" expression syntax before. It turns out that it's important because it controls the capacity of the new slice. The capacity of the new slice is now i+4 - i.

So by using the full slice expression you get a slice of length 4 and capacity 4. Without doing this the capacity would be equal to the capacity of the original slice.

I suppose that by controlling the capacity that you eliminate the bounds check.