Home
Yanshi XU
Cancel

Sliding Window

Coming soon: English version of this article in progress 最近在做滑动窗口的题,在这里整理总结一下思路。 模板 # 最小滑窗模板:给定数组 nums,定义滑窗的左右边界 i, j,求满足某个条件的滑窗的最小长度。 while j < len(nums): # 判断[i, j]是否满足条件 while...

How Jensen Huang’s Nvidia Is Powering the A.I. Revolution

The company’s C.E.O. bet it all on a new kind of chip. Now that Nvidia is one of the biggest companies in the world, what will he do next? By Stephen Witt | November 27, 2023 “There’s a wa...

Will Japan rediscover its dynamism?

Rising prices and animal spirits give it a long-awaited opportunity Global investors are giddy about Japan again. Warren Buffett made his first visit to Tokyo in more than a decade this spring; ...

How the young should invest

Markets have dealt them a bad hand. They could be playing it better Young investors, as well as everyone starting to save, have no shortage of lessons to learn. The main ones are classics. Begin...

America may soon be in recession, according to a famous rule

But is it right? For financial markets the Holy Grail is a perfect leading indicator—a gauge that is both simple to monitor and consistently accurate in foretelling the future. In reality, such ...

Why American manufacturing is becoming less efficient

The unfortunate reversal of a long-standing trend Where are the robots? Advocates of industrial policy have long argued that manufacturing possesses special powers. Industry’s demands lead ...

The Chinese yuan is losing value, yet gaining ground

Low interest rates have a paradoxical effect Guangdong, where it all began Nov 9th 2023 | HONG KONG China owes a lot to foreign investment. Long before Foxconn started making iPhones for...

The world economy is defying gravity. That cannot last

Threats abound, including higher-for-longer interest rates Even as wars rage and the geopolitical climate darkens, the world economy has been an irrepressible source of cheer. Only a year ago ev...

Canadians are starting to sour on migration

So far, it has not led to a populist right-wing surge An aphorism about Canada is that it has too much geography and not enough history. Immigration has long been seen as the solution to both pr...

Welcome to the age of the hermit consumer

The world economy is witnessing a $600bn-a-year shift in behaviour Oct 22nd 2023 | SAN FRANCISCO In some ways COVID-19 was a blip. After soaring in 2020, unemployment across the rich world qu...