码迷,mamicode.com
首页 >  
搜索关键字:assume    ( 1858个结果
[LeetCode] Longest Palindromic Substring
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:其他好文   时间:2015-01-25 11:03:14    阅读次数:129
[LeetCode]35.Search Insert Position
【题目】 Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You may assume no duplicates in ...
分类:其他好文   时间:2015-01-24 15:54:49    阅读次数:135
leetcode 【 Majority Element 】python 实现
题目:Given an array of sizen, find the majority element. The majority element is the element that appears more than? n/2 ?times.You may assume that the ...
分类:编程语言   时间:2015-01-22 17:31:28    阅读次数:159
Longest Palindromic Substring
https://oj.leetcode.com/problems/longest-palindromic-substring/Given a stringS, find the longest palindromic substring inS. You may assume that the ma...
分类:其他好文   时间:2015-01-22 17:24:11    阅读次数:105
Algorithm One Day One -- 判断链表是否有环(上)
Is a loop ? Question descrip as follows : Assume that wehave a head pointer to a link-list. Also assumethat we know the list is single-linked. Can you come up an algorithm to checkwhether this link list includes a loop by using O(n) time and O(1) ...
分类:其他好文   时间:2015-01-22 13:28:16    阅读次数:229
[leetcode]Longest Palindromic Substring
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longes...
分类:其他好文   时间:2015-01-22 00:10:52    阅读次数:142
leetcode 【 Merge Sorted Array 】python 实现
题目:Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or eq...
分类:编程语言   时间:2015-01-21 23:53:45    阅读次数:175
汇编语言学习3 汇编写exe
1.汇编语言源程序中有两种指令,一种 汇编指令,一种伪指令。2.汇编指令有对应的机器指令,最终为CPU所执行3.伪指令没有对应的机器指令,由编译器执行的4.assume,segment,ends,end均伪指令第一步:编写汇编源代码新建文本 1.txt代码如下:assume cs:codesg ;将...
分类:编程语言   时间:2015-01-21 13:17:08    阅读次数:194
寒假汇编语言作业(6)
程序设计项目六在屏幕中间显示:“中华”两个字。参看demo0.png示例。提示:通过字模提取工具,可以提取字的显示信息。分析:跟lcd12864自定义图形差不多吧直接用字模提取软件参考代码: 1 assume cs:code 2 data segment 3 ; -- zhong -- 4 ...
分类:编程语言   时间:2015-01-20 20:23:38    阅读次数:346
LeetCode[Array]: Majority Element
Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times.  You may assume that the array is non-empty and the majority element alw...
分类:其他好文   时间:2015-01-20 18:07:43    阅读次数:188
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!