IT討論區(82) IT狗對住新老細:肅立起敬頌讚祂!!表示尊敬跪拜祂!!

1001 回覆
2 Like 0 Dislike
2020-05-07 13:03:13
請問有無人係日本做緊野架
想請教下當初經咩途俓先apply 到日本當地工作
2020-05-07 13:07:41
應該可以visit一個vertex多過一次 唔係既佢出pseudo graph做咩
2020-05-07 13:13:01
唔係 因為cycle length最大係6 好似係

好似得四種構型 而且無論點 triple bond係無須考慮 所以係cap左edge數 所以係O(1)
2020-05-07 13:19:14
2020-05-07 13:26:39
四邊形構型總共係試3個就夠 因為4!/4/2 4係cycle可以任意由其中一個vertex開波 2係因為undirected
其他三個構型唔想諗short cut 好似除左undirected之外都無咩shortcut 反正都係constant
唔想晒時間諗有冇其他構型 反正應該provable無
2020-05-07 13:33:44
The author does not know what she is talking about. mmap is a system call in Linux.

Back to your question, open a terminal and type man mmap or read this:

http://man7.org/linux/man-pages/man2/mmap.2.html

To use mmap, the simplest way is to use the library function mmap(). You can call the function from your assembly code.

Here be dragons.

If you want to deal with system call, you can use the syscall() function in libc. You will need to figure out the actual mmap syscall to use. There are two mmap syscalls: mmap and mmap2 due to evolution of the Linux kernel ABI to handle big files on 32-bit systems. And the arguments for mmap syscalls may not be the same as the libc wrapper function. Luckily for x86_64, there is only one mmap syscall and it takes the same arguments as the libc API. You you can do something in C like:

fd = open(...);
fstat(fd, &buf);
result = syscall(__NR_mmap, NULL, buf.st_size, PROT_READ, MAP_PRIVATE, fd, 0);

If you really want to deal the x86 syscall instruction, it is quite easy to convert the call to syscall() above to direct use of the syscall instruction.

Have fun hacking.
2020-05-07 13:34:31
無興趣 肯肯定被負皮到仆街
手巴algo都唔係好好 自問達唔到student既程度

睇演算法筆記已經好夠做

會無分 因為達唔到題目要求
好人既tutor會比一分
2020-05-07 13:36:35
The author does not know what she is talking about. mmap is a system call in Linux.

唔是咁的 佢個意思係比較mmap read同 syscall read既性能
2020-05-07 13:39:48
I know that but her article title is misleading.
2020-05-07 14:22:31
個市真係咁差咩 3大cs開2萬都冇人請 有冇人可以講下個市點
2020-05-07 14:36:14
呢排send左大約5份。
有份4月頭send,月尾話shortlisted,但今日都未有回音。

有份4月中只係見左hr,佢地wfh,但今日都未有消息再見部門manager。

呢排見有份agent工有興趣,agent隔日有feedback,呢份睇下點。

有無interview先?有得見既話起碼有機。

利申:唔係做web app。
2020-05-07 14:36:50
公司
2020-05-07 14:57:31
數碼港
2020-05-07 16:02:39
科學園
大埔工業邨 << 近大美督
2020-05-07 16:08:31
冇啦啦有個agent 拿住我份old CV打來
直接揾我上去佢公司in
2020-05-07 16:10:26
我都有
2020-05-07 16:10:47
冇啦啦有個agent 拿住我份old CV打來
直接揾我上去佢公司in
我都有
2020-05-07 16:22:44
依家一個回音都冇 有都照去左先算
2020-05-07 16:23:57
ching
吹水台自選台熱 門最 新手機台時事台政事台World體育台娛樂台動漫台Apps台遊戲台影視台講故台健康台感情台家庭台潮流台美容台上班台財經台房屋台飲食台旅遊台學術台校園台汽車台音樂台創意台硬件台電器台攝影台玩具台寵物台軟件台活動台電訊台直播台站務台黑 洞