原创 階乘之和

import java.util.Scanner; public class JieCheng { public static void main(String[] args) { Scanner scan = new Scanne

原创 迴文數

public class Test{ public static void main(String[] args){ boolean b = isHuiWenShu(15651); } //判斷一個數是否是迴文數 priva

原创 約瑟夫問題

import java.util.*; /* 單向鏈表 */ class Child{ public int num;//編號 public Child nextChild;//下一個小孩 public Child(int num

原创 字符串轉數字

//字符串轉數字 public static void strToInt(String str){ String a = "23423"; char[] arr = a.toCharArray(); int len = arr

原创 快速排序

public class QuikSort {     public static void main(String[] args){     int arr[] = {23,34,3,435,45,12,809,232,45,2};  

原创 maven規範:ssh框架整合

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocat

原创 靜態循環隊列c程序演示

/* 1、隊列:一端進,另一端出;隊列由兩個參數決定,front(頭),rear(尾); 頭指針指向頭一個元素,尾指針指向指向最後一個元素的下一存儲單元;若數組長度爲n,當元素個數爲n-1時就認爲隊列已滿。r指向最後一個空的元素空間。

原创 c模擬鏈表操作,筆記

#include<stdio.h> #include<malloc.h> #include<stdlib.h> //動態棧,由鏈表實現 ,上面節點指向下面一個節點  //結構體:節點(表示一個元素)  typedef struct Node

原创 maven規範:ssm框架整合

<!-- 父工程(pom工程),定義jar包的版本 ,其他maven工程都繼承該工程,其他工程的pom文件依賴的jar不再定義版本信息--> <project xmlns="http://maven.apache.org/POM/4.0.0

原创 約瑟夫問題

import java.util.*; /* 單向鏈表 */ class Child{ public int num;//編號 public Child nextChild;//下一個小孩 public Child(int num

原创 c鏈表模擬筆記

//鏈表操作 #include <stdio.h> #include <malloc.h> #include <stdlib.h> //定義一個結構體包含數據域和指針域,指針域存放下一個節點的地址 typedef struct Node{

原创 判斷一個字符串是否另一字符串的子串

/** 判斷一個字符串是否是另一個字符串的子串 */ class Test{ public static void main(String[] args){ boolean isSub = isSubString("asd213s

原创 fn = fn-1 +fn-2

/** fn = fn-1+fn-2; f1 = 1; f2 = 1 f3 =f1+f2 = 2 f4 = f2+f2 = 3 下一個數等於現在這個數加上一個數 */ public class Test{ public static vo

原创 階乘之和

import java.util.Scanner; public class JieCheng { public static void main(String[] args) { Scanner scan = new Scanne

原创 字符串轉數字

//字符串轉數字 public static void strToInt(String str){ String a = "23423"; char[] arr = a.toCharArray(); int len = arr