练习一:补全程序 t1.asm,完成在屏幕上输出内存单元中的十进制两位数: 第一步:补全代码(如下): ; 在屏幕上输出内存单元中的十进制两位数 assume cs:code, ds:data data segment db 12 db ?,? ; 前一个字节用于保存商,后一个字节用于保存余数 da ...
分类:
其他好文 时间:
2018-12-08 13:26:13
阅读次数:
163
1. 补全程序 t1.asm,完成在屏幕上输出内存单元中的十进制两位数: t; 在屏幕上输出内存单元中的十进制两位数assume cs:code, ds:datadata segment db 12 db 0,0 ; 前一个字节用于保存商,后一个字节用于保存余数data endscode segme ...
分类:
其他好文 时间:
2018-12-06 22:50:18
阅读次数:
259
You have a bucket with 3 red balls and 3 green balls. Assume that once you draw a ball out of the bucket, you don't replace it. What is the probabilit ...
分类:
其他好文 时间:
2018-12-04 20:02:50
阅读次数:
174
Given a string, find the first non repeating character in it and return it’s index. If it doesn’t exist, return 1. Examples: Note: You may assume the ...
分类:
其他好文 时间:
2018-12-03 23:01:53
阅读次数:
165
Given a string s and a string t, check if s is subsequence of t. You may assume that there is only lower case English letters in both s and t. t is po ...
分类:
其他好文 时间:
2018-12-03 22:57:07
阅读次数:
222
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex ...
分类:
其他好文 时间:
2018-12-03 14:02:11
阅读次数:
150
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 ...
分类:
其他好文 时间:
2018-12-03 00:55:01
阅读次数:
156
任务1. 编译以下程序,连接 assume cs:code, ds:data, ss:stackdata segment dw 0123h, 0456h, 0789h, 0abch, 0defh, 0fedh, 0cbah, 0987hdata endsstack segment dw 0, 0, ...
分类:
其他好文 时间:
2018-12-02 21:11:54
阅读次数:
221
Given two sparse matrices A and B, return the result of AB. You may assume that A's column number is equal to B's row number. Example: Input: A = [ [ ...
分类:
其他好文 时间:
2018-12-02 10:32:42
阅读次数:
172
Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a g ...
分类:
其他好文 时间:
2018-12-01 18:22:13
阅读次数:
110