原创 一個字符串

時間限制:C/C++語言 2000MS;其他語言 4000MS 內存限制:C/C++語言 10240KB;其他語言 534528KB 題目描述: 一個字符串,含有字母數字和特殊符號等,按照以下要求寫一個轉換函數 1)只保留

原创 org.eclipse.gef源碼下載地址

https://github.com/Overruler/org.eclipse.gef 搜索結果列表 https://github.com/search?utf8=✓&q=org.eclipse.gef&type=Reposi

原创 office2013安裝Matytype

1.下載Matytype6.9並安裝,下載地址:http://www.mathtype.cn/xiazai.html 2.打開office2013,提示“‘VBE6EXT.OLB’不能被加載”、“未知的錯誤(50001)”以及“

原创 206. Reverse Linked List

Reverse a singly linked list. 解法一:迭代法(循環結構)Language-Java Run Time-0ms 解題思路:在對鏈表進行反轉的時候,需要更新每一個node的“next”值,但是,在更新

原创 231. Power of Two

Given an integer, write a function to determine if it is a power of two. 解法一:Language - Java Run Time - 2ms 解題思路:

原创 405. Convert a Number to Hexadecimal

Given an integer, write an algorithm to convert it to hexadecimal. For negative integer, two’s complement method is

原创 13. Roman to Integer

Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 解題思路:

原创 415. Add Strings

Given two non-negative numbers num1 and num2 represented as string, return the sum of num1 and num2. Note: 1.The le

原创 202. Happy Number

Write an algorithm to determine if a number is “happy”. A happy number is a number defined by the following process

原创 412. Fizz Buzz

Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three it should

原创 SWT中顏色獲取

//三種顏色獲取方式 final Color white = new Color(display, 255, 255, 255); final Color sysBlack = Display.getCurrent().g

原创 Java中用dom4j解析XML信息連接Embedded derby數據庫

package com.jdbc; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import jav

原创 迭代與遞歸

遞歸與迭代都是基於控制結構: 迭代用重複結構 遞歸用選擇結構 遞歸與迭代都涉及重複: 迭代顯式使用重複結構 遞歸通過重複函數調用實現重複 遞歸與迭代都涉及終止測試: 迭代在循環條件失敗時終止 遞歸在遇到基本情況時終止 使用

原创 455. Assign Cookies

Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most o

原创 約瑟夫環

題目: 0,1,…,n-1這n個數字排成一個圓圈,從數字0開始每次從這個圓圈裏刪除第m個數字。求出這個圓圈裏剩下的最後一個數字。 解題思路: 遞推公式: f(n,m)={0[f(n−1,m)+m]%nn=1n>1 java實現: publ