原创 王源 彙編語言 課設2 8086-boot

代碼見https://github.com/SuCicada/8086-Boot 第二版 2019/5/31 23:06 見 class2i.asm 文件 1、偏移地址可以從0開始算了! 將要拷貝軟盤中的代碼放到新的data段中,

原创 [leetcode][DataBase] - 177. Nth Highest Salary with [MySQL]

problem # 184ms select min(aa.Salary) from (select distinct Salary from employee order by Salary

原创 leetcode - 12. Integer to Roman with Java

problem 方法一,一位一位判斷。 class Solution { public String intToRoman1(int num) { StringBuilder sb = new StringB

原创 8086彙編 在屏幕上顯現動態菱形圖案

在屏幕上顯現動態菱形圖案。 * * * * * * * * * *

原创 assmbly 8086彙編:判斷奇數偶數

如果ax中的數是奇數:bx爲0 否則bx爲1 ; judge which the number in ax is odd or even assume cs:code code segment mov ax,

原创 [leetcode][DataBase] - 175. Combine Two Tables with MySQL

題目 select FirstName, LastName, City, State from Person left join Address using (PersonId); or select Firs

原创 [leetcode][Algorithm] -13. Roman to Integer with [Java]

problem class Solution { public int romanToInt(String s) { int N = s.length(); int sum = 0;

原创 [leetcode][DataBase] - 176. Second Highest Salary with [MySQL]

problem select ifnull((select distinct Salary from Employee order by Salary desc limit 1,1), null) as SecondHighest

原创 如何在 ClassPathXmlApplicationContext 裏使用相對類路徑的 xml文件

參考https://blog.csdn.net/upxiaofeng/article/details/53332226 URL a = this.getClass().getResource(""); // 獲取ClassPat

原创 [leetcode][DataBase] - 178. Rank Scores with [MySQL]

problem select inn.Score,inn.Rank from ( select ss.Score,@row:=@row+1 as Rank from (select @row:=0) a,

原创 leetcode - 9. Palindrome Number with Java

題目 class Solution { public boolean isPalindrome(int x) { if(x<0){ return false; }

原创 UVA 12333 - Revenge of Fibonacci (斐波那契的復仇) by SuCicada

合適的思路 大數加法 字典樹 代碼 注意點 附錄 後日談 習題5-15 Fibonacci的復仇(Revenge of Fibonacci, ACM/ICPC Shanghai 2011, UVa12333) Fibo

原创 leetcode - 11. Container With Most Water with Java

problem import java.lang.reflect.Method; import java.util.*; class Solution { public int maxArea(int[] height)

原创 atom刪除文件: The following file couldn't be moved to trash (is gvfs-trash installed?)

參考這個 在使用加環境變量無果 環境 ubuntu 16 atom 1.4 執行以下命令 sudo mkdir -p /.Trash-1000/{expunged,files,info} sudo chown -R $USER

原创 論如何解決類似如 '''使用 openresty 庫 lua-resty-kafka 對接kafka 報錯 no resolver defined to resolve "xxx" ''' 的問題

始苦尋無果,終幸得其所 參考項目的issue https://github.com/doujiang24/lua-resty-kafka/issues/5 這個issue已經將問題說的很明白了 在我電腦上當時的表現就是lua從