Redian新闻
>
想种薄荷 (转载)
avatar
想种薄荷 (转载)# Living
r*o
1
一个数字数组,给一个window,长度k,window从数组头开始往后滑动,每次滑动一
个,求每次窗口中的最大值。
3, 4, 5, 7, 3, 5, 2, 9
k = 3
print “5 7 7 7 5 9”
该题有什么优化解么? 楼主的解法是:
保存当前window的最大值,和 count;
每次比较出窗口int是否等于最大值,如果等于,count--;
进窗口int是否大于最大值,如果大于,替换最大值,count=1;
问题是:当count=0时,需要一个O(k)的扫描。确定当前窗口最大值。
有没有优化解呢?
avatar
a*g
2
The common-core math standards require that students learn the standard
algorithm for multi-digit adding and subtracting—you know, the process in
which you line the numbers up vertically to add or subtract and regroup as
needed—by the end of 4th grade.
But waiting until then to teach the algorithm is a big waste of time for
some students, writes Tom Loveless, a senior fellow at the Brookings
Institution.
Students begin learning to add and subtract in 1st grade under the common
standards. So teachers will conceivably spend several years having them do
so with alternative methods, such as drawings, which can be tedious and make
students hate math, says Loveless. "For many 4th graders, time spent
working on addition and subtraction will be wasted time. They already have a
firm understanding of addition and subtraction.," he writes. And that "will
shorten the amount of time available to teach other topics."
Understanding Concepts
As I've written before, one of the main differences between the Common Core
State Standards for mathematics and previous state standards is the focus on
conceptual understanding. Students still learn procedural skills—
algorithms and formulas—but they often learn them a bit later than before.
The idea is that students should have a solid grasp of underlying concepts
before they learn the faster "shortcuts."
Previously in Massachusetts, students were introduced to the algorithm for
multi-digit addition and subtraction in 2nd grade. In California, students
learned the algorithms for addition, subtraction, multiplication, and
division in 3rd grade.
Other experts have also argued that students should practice algorithms
earlier rather than rehashing their conceptual understanding for so long.
Barbara Oakley, an engineering professor at Oakland University in Rochester,
Mich., wrote last year: "Having students stop to continually check and
prove their understanding can actually impede their understanding, in the
same way that continually focusing on every aspect of a golf swing can
impede the development of the swing."
Teacher Leeway
Interestingly, one of the lead writers of the common-core math standards,
Jason Zimba, defends the way the standards are organized not by saying that
4th grade is the best time to learn the algorithm, but by saying that
teachers have the leeway to teach it sooner.
In a January blog post, as Loveless points out, Zimba wrote that the 4th
grade standard is a "culminating" standard, and that teachers can begin
introducing the algorithm as early as 1st grade. He even draws out a table
for how to do that and still be consistent with the common standards, which
he emphasizes are not as prescriptive as people think.
Loveless relates all of this to the history of the "math wars," which I won'
t go into here. But ultimately, this boils down to a discussion of whether
the standards themselves or local implementation are at fault when things go
wrong in classrooms. When a 3rd grader who fully comprehends subtraction
spends many hours and evenings drawing hashmarks to illustrate multi-digit
problems—which the writers would inevitably say they never intended—who
should take the blame? And is the solution to change the standards or to
alter teacher training and materials?
avatar
P*r
3
EB2 12年9 月的pd, 485 pending 1年多了, 公司刚刚被收购,明年一月正式成为新公
司员工。
正好几天前收到RFE 要 EVL, 心里纠结怎么办, 上来向大家询问一下。
是现在让manager用现在公司的名义出 EVL? 还是等1月份新公司让新律师或者还是
manager出?
前者简单易行,但是担心uscis收到并审理都已经到1月, 会不会认为信息有误。 后者
新公司律师拖拉出名,误了时间就惨了。 听一下大家的建议。
avatar
h*a
4
【 以下文字转载自 Seattle 讨论区 】
发信人: ninia (ninia), 信区: Seattle
标 题: 想种薄荷
发信站: BBS 未名空间站 (Tue Mar 26 17:00:55 2013, 美东)
现在是时候种薄荷吗?盆栽还是直接种园子里?
以前在国内的时候有次去旅游,在路边闻到特别好闻的清香,到处看,才发现有一株薄
荷在离我脚边不远的地方,就一株,却发出足以让我记忆这么久的香气。
去哪儿却忘记了。反正是和父母一起,傻呵呵的跟着而已。
avatar
c*6
6
你现在公司有负责你的律师吗?如果有的话,咨询一下律师的意见吧。
我也是485pending的时候,公司被收购的。我收到rfe 的时候,还在旧公司,律师按旧
公司回复了。但是等我的排期再次current 的时候,我已经是新公司职员了,我的case
也顺利批准了。当然,这只是我的个例,仅供你参考。
另外公司收购之后,有时也有裁员的风险。

【在 P*******r 的大作中提到】
: EB2 12年9 月的pd, 485 pending 1年多了, 公司刚刚被收购,明年一月正式成为新公
: 司员工。
: 正好几天前收到RFE 要 EVL, 心里纠结怎么办, 上来向大家询问一下。
: 是现在让manager用现在公司的名义出 EVL? 还是等1月份新公司让新律师或者还是
: manager出?
: 前者简单易行,但是担心uscis收到并审理都已经到1月, 会不会认为信息有误。 后者
: 新公司律师拖拉出名,误了时间就惨了。 听一下大家的建议。

avatar
a9
7
不知道你说的是不是我们家那种野薄荷
生命力极强,繁殖力也极强。

【在 h******a 的大作中提到】
: 【 以下文字转载自 Seattle 讨论区 】
: 发信人: ninia (ninia), 信区: Seattle
: 标 题: 想种薄荷
: 发信站: BBS 未名空间站 (Tue Mar 26 17:00:55 2013, 美东)
: 现在是时候种薄荷吗?盆栽还是直接种园子里?
: 以前在国内的时候有次去旅游,在路边闻到特别好闻的清香,到处看,才发现有一株薄
: 荷在离我脚边不远的地方,就一株,却发出足以让我记忆这么久的香气。
: 去哪儿却忘记了。反正是和父母一起,傻呵呵的跟着而已。

avatar
l*6
8
1. 2 max stack
2. use dequeue to store idx , pop element from front if out of window and
pop element from back if it is smaller than the most recent one. The front
element will always be the max
avatar
P*r
9
非常感谢, 现公司的律师已经被辞退,新公司在接手过程中,现在属于两不管。
你的律师当时提到被收购的情况吗? 同时也私信给你了。

case

【在 c**********6 的大作中提到】
: 你现在公司有负责你的律师吗?如果有的话,咨询一下律师的意见吧。
: 我也是485pending的时候,公司被收购的。我收到rfe 的时候,还在旧公司,律师按旧
: 公司回复了。但是等我的排期再次current 的时候,我已经是新公司职员了,我的case
: 也顺利批准了。当然,这只是我的个例,仅供你参考。
: 另外公司收购之后,有时也有裁员的风险。

avatar
n*a
10
呵呵,专门来家居版看看。。
不是野薄荷,就是从Lowe's啊那些地方可以买到的薄荷苗什么的。

【在 a9 的大作中提到】
: 不知道你说的是不是我们家那种野薄荷
: 生命力极强,繁殖力也极强。

avatar
h*o
11
deque
avatar
E*A
12
没见过更容易种的了,一棵下去第二年一大片,还有九层塔,做披萨酱特别香
avatar
w*s
13
上个星期刚有人问过:
http://www.mitbbs.com/article_t/JobHunting/32595583.html

【在 r**********o 的大作中提到】
: 一个数字数组,给一个window,长度k,window从数组头开始往后滑动,每次滑动一
: 个,求每次窗口中的最大值。
: 3, 4, 5, 7, 3, 5, 2, 9
: k = 3
: print “5 7 7 7 5 9”
: 该题有什么优化解么? 楼主的解法是:
: 保存当前window的最大值,和 count;
: 每次比较出窗口int是否等于最大值,如果等于,count--;
: 进窗口int是否大于最大值,如果大于,替换最大值,count=1;
: 问题是:当count=0时,需要一个O(k)的扫描。确定当前窗口最大值。

avatar
l*h
14
我以前的apt门前左右墙角下种的就是薄荷,每晚
都会自动浇水。特别容易生长。

【在 n***a 的大作中提到】
: 呵呵,专门来家居版看看。。
: 不是野薄荷,就是从Lowe's啊那些地方可以买到的薄荷苗什么的。

avatar
x*0
15
m
avatar
n*a
16
真的哦,那不会把草皮上的草都挤没了吧。。

【在 E*A 的大作中提到】
: 没见过更容易种的了,一棵下去第二年一大片,还有九层塔,做披萨酱特别香
avatar
E*A
17
我专门画了一大块地方种,不知道会不会挤兑草

【在 n***a 的大作中提到】
: 真的哦,那不会把草皮上的草都挤没了吧。。
avatar
n*a
18
那你怎么隔离薄荷和其他的植物呢?

【在 E*A 的大作中提到】
: 我专门画了一大块地方种,不知道会不会挤兑草
avatar
E*A
19
我无所谓啊,和九层塔种一个圈圈里

【在 n***a 的大作中提到】
: 那你怎么隔离薄荷和其他的植物呢?
avatar
n*a
20
用竹杆之类的圈起来就行了?
我现在纠结到底要种在盆里还是直接种院子里。。

【在 E*A 的大作中提到】
: 我无所谓啊,和九层塔种一个圈圈里
avatar
E*A
21
用砖头圈出来,倒几袋土,夏天浇点水,其他日子没管,前几天发现又发了一大片

【在 n***a 的大作中提到】
: 用竹杆之类的圈起来就行了?
: 我现在纠结到底要种在盆里还是直接种院子里。。

avatar
n*a
22
哦, 好的。
多谢多谢

【在 E*A 的大作中提到】
: 用砖头圈出来,倒几袋土,夏天浇点水,其他日子没管,前几天发现又发了一大片
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。