摘要:
"Oh." He let it drop. I looked away awkwardly. 哦,他让它走了。我笨拙的看向别处。 “哦。”他不再纠缠于这个问题。我笨拙地移开视线。 Thankfully, Mr. Banner started class at that moment. 谢天谢地,ba 阅读全文
摘要:
"My name is Edward Cullen," he continued. "I didn't have a chance to introduce myself last week. You must be Bella Swan." 我的名字是Edward Cullen他说道,我上周没有机 阅读全文
摘要:
Mike kept up a string of complaints on the way to building four. mike去教学楼的路上一直嘀咕抱怨着。 Once inside the classroom, I saw with relief that my table was st 阅读全文
摘要:
Mike interrupted us then — he was planning an epic battle of the blizzard in the parking lot after school and wanted us to join. mike打断了我们,他准备了一个史诗级的战 阅读全文
摘要:
I dropped my head, letting my hair fall to conceal my face. 我低下了我的头,让我的头发垂下来隐藏我的脸。 I was sure,though, in the instant our eyes met, that he didn't look 阅读全文
摘要:
I kept my head down and glanced up under my lashes. 我一直保持低着头并且在睫毛之下瞟了一眼。 None of them were looking this way. I lifted my head a little. 他们没有人看这个方向。我转了 阅读全文
摘要:
Jessica pulled on my arm. Jessica拉了一下我的手臂。 "Hello? Bella? What do you want?"I looked down; my ears were hot. I had no reason to feel self-conscious,I 阅读全文
摘要:
获取栈的最小值 定义栈的数据结构,要求添加一个min函数,能够得到栈的最小元素。要求函数min、push以及pop的时间复杂度都是O(1)。 思考过程 对于push和pop操作来说,都很简单,无论是数组实现栈,还是链表实现栈都很容易。但是唯独min函数不好做。 首先对于栈这个数据结构来说,我们只能获 阅读全文
摘要:
He bent over and began scraping together a pile of the white mush. 他弯下腰,开始团起一个白色的雪球。 "I'll see you at lunch, okay?" I kept walking as I spoke. "Once p 阅读全文
摘要:
首先,对于链表来说,我们不能像数组一样直接访问,所以我们想到要求倒数第K个节点首先要知道最后一个节点。 然后从最后一个节点往前数K个。 最后得到想要的值。 但是这是不对的,为什么呢?因为题目给出的是单向链表,只能从前往后找。 所以我们需要换一种思路。 定两个指针。 都从链表的头开始走,一个先走一个后 阅读全文