- 博客(22)
- 资源 (7)
- 问答 (2)
- 收藏
- 关注
原创 搭建自制可上网操作系统环境2-bochsgdb
如果在bochsrc文件中末尾添加gdbstub: enabled=1, port=1234, text_base=0, data_base=0, bss_base=0。然后可以看到vscode debug窗口有反应即可,由于现在还不能进入32位c语言代码(目前还是实模式)当中,所以暂时不能调试,等到进入保护模式便可以尝试一下了。遇到这个报错Curses library not found: tried curses, ncurses, termlib and pdcurses.随便下载到一个目录下面。
2024-03-12 07:07:11 785
原创 搭建自制可上网操作系统环境
将ata0-master: type=none 这一行改成ata0-master: type=disk, path="myos.img", mode=flat。将display_library: x 这一行改成display_library: x, options="gui_debug"不推荐archilinix,centos ,需要源码安装,会浪费很多时间。连上之后打开对应目录,那么就在这里开发即可,如果出现连接不上可以执行。bochs -q 出现输入框就输入c,可以看到首字母就是H了。
2023-12-30 01:24:37 380
原创 spring源码分析环境的搭建和demo
1.spring源码分析环境的搭建和demo1.1下载源码环境搭建:sts/eclipse + jdk1.7 + windows + gradle将 https://github.com/spring-projects/spring-framework/tree/3.2.x下载下来1.2运行import-into-eclipse.bat可能会遇到的问题1.2.1 ...
2019-09-16 00:41:25 869
原创 Edit Distance 算法实现及其设计原理
题目:Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2.You have the following 3 operations permitted on a word:Insert a character Delete a ...
2019-01-02 23:38:59 586
原创 eclipse 导入项目中文乱码
一,设置编码格式1.preferences->workspace->text file encoding->选择utf-82.preferences->content type->text 自己手动写入utf-8一般来说就可以了二,还是不行怎么办,先备份一份工程(一定要备份),运行这份代码即可。import java.io.BufferedRea...
2018-09-27 10:40:15 906
原创 Sudoku Solver
Write a program to solve a Sudoku puzzle by filling the empty cells.A sudoku solution must satisfy all of the following rules:Each of the digits 1-9 must occur exactly once in each row. Each of t...
2018-08-02 16:55:39 243
原创 Search in Rotated Sorted Array
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.(i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]).You are given a target value to search. If found ...
2018-07-30 14:25:28 142
原创 Longest Valid Parentheses
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.Example 1:Input: "(()"Output: 2Explanation: The longest valid...
2018-07-30 11:10:51 137
原创 Divide Two Integers
Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator.Return the quotient after dividing dividend by divisor.The integer division should ...
2018-06-12 08:16:33 107
原创 Merge k Sorted Lists
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.Example:Input:[ 1->4->5, 1->3->4, 2->6]Output: 1->1->2->3->4->4...
2018-06-11 00:10:09 101
原创 Generate Parentheses的解法
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution set is:[ "((()))", "(()())", "(())()", "()(())", "...
2018-04-01 20:53:47 206
原创 ZigZag Conversion
这题就很简单了,4分钟搞定The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P
2017-12-26 15:26:04 103
原创 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.Example:Input: "babad"Output: "bab"Note: "aba" is also a valid answer.
2017-12-26 13:34:22 105
原创 Median of Two Sorted Arrays
There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).Example 1:nums1 = [1,
2017-12-25 15:53:31 138
原创 从n个数中选择m个数来 Java实现(顺序不固定)
public static List collect = new ArrayList(); public static void permutation(int[] a, int begin0, int begin, int mid1, int mid2, int end, int selectNum) { int[] temp = new int[selectNum]; Syste
2017-05-05 21:57:18 2797
原创 欧几里得最大公约数两种算法
递归:int f(int m, int n) { return n == 0 ? m : f(n, m % n);}非递归:int f(int m, int n) { int r = n; do { n = r; r = m % n; m = n; } while (r > 0); return n;}
2016-07-16 07:44:10 347
原创 必须声明元素类型 "typeAliases"
遇到这个错误,我自己百度的时候没有。找了一会,发现 不应该放在实体bean.xml中,而是放在总配置文件中SqlMapConfig.xml
2015-11-28 20:35:05 5823
原创 驱动编程问题
今天利用vs2013和wdk8.1初始进行编程时出现:错误 1 error -2: "Inf2Cat, signability test failed." Double click to see the tool output.E:\论文\MyDriver1\MyDriver1 Package\Win8Debug\inf2catOutput.log1 1 MyDriver1 P
2015-07-01 17:20:12 414
原创 汇编学习1
显示字符的方法1. 利用bios中断 DOS显示字符串的功能调用为:MOV Dx,字符串的偏移地址MOV AH.9INT 21H DOS显示字符的功能调用为:MOV AH.2MOV DL,字符ASCII码INT 21H(1)dsegsegmentmess db'hello',13,10,'$'dseg ends cseg
2015-05-10 20:21:12 334
这个为什么不显示字符串,求大神解答
2015-10-05
TA创建的收藏夹 TA关注的收藏夹
TA关注的人