hyt502
码龄13年
关注
提问 私信
  • 博客:17,880
    17,880
    总访问量
  • 30
    原创
  • 695,213
    排名
  • 1
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:上海市
  • 加入CSDN时间: 2012-03-28
博客简介:

hyt502的专栏

博客描述:
放点代码,到时候别整丢了
查看详细资料
  • 原力等级
    当前等级
    0
    当前总分
    0
    当月
    0
个人成就
  • 获得1次点赞
  • 内容获得0次评论
  • 获得1次收藏
创作历程
  • 6篇
    2016年
  • 24篇
    2015年
成就勋章
TA的专栏
  • PAT
    26篇
  • LintCode
    3篇
  • web service
    1篇
  • Axis2
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

Axis2传输级异步使用方式

百度“Axis”,“异步”的时候多会返回Axis2 web service异步调用相关的结果,可异步调用并不能解决我的问题,我需要的是传输级的异步。但是我在实际应用中遇到了这样的情况:需要调用一个web service,但web service的运行时间非常的长,可能需要好几个小时甚至几天才能跑完返回结果。如果使用传统的调用方法,无论是同步调用还是异步调用都是无法得到结果的。因为无论是同步调用
原创
发布博客 2016.12.01 ·
618 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

LintCode : 最接近零的子数组和 Subarray Sum Closest

题目链接:http://www.lintcode.com/en/problem/subarray-sum-closest/Given an integer array, find a subarray with sum closest to zero. Return the indexes of the first number and last number.Ex
原创
发布博客 2016.04.26 ·
648 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

PAT : 1050. 螺旋矩阵(25)

本题要求将给定的N个正整数按非递增的顺序,填入“螺旋矩阵”。所谓“螺旋矩阵”,是指从左上角第1个格子开始,按顺时针螺旋方向填充。要求矩阵的规模为m行n列,满足条件:m*n等于N;m>=n;且m-n取所有可能值中的最小值。输入格式:输入在第1行中给出一个正整数N,第2行给出N个待填充的正整数。所有数字不超过104,相邻数字以空格分隔。输出格式:输出螺旋矩阵。每行n个数
原创
发布博客 2016.03.01 ·
660 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

PAT : 1049. 数列的片段和(20)

给定一个正数数列,我们可以从中截取任意的连续的几个数,称为片段。例如,给定数列{0.1, 0.2, 0.3, 0.4},我们有(0.1) (0.1, 0.2) (0.1, 0.2, 0.3) (0.1, 0.2, 0.3, 0.4) (0.2) (0.2, 0.3) (0.2, 0.3, 0.4) (0.3) (0.3, 0.4) (0.4) 这10个片段。给定正整数数列,求出全部片段包含
原创
发布博客 2016.03.01 ·
1290 阅读 ·
0 点赞 ·
0 评论 ·
2 收藏

PAT : 1048. 数字加密(20)

本题要求实现一种数字加密方法。首先固定一个加密用正整数A,对任一正整数B,将其每1位数字与A的对应位置上的数字进行以下运算:对奇数位,对应位的数字相加后对13取余——这里用J代表10、Q代表11、K代表12;对偶数位,用B的数字减去A的数字,若结果为负数,则再加10。这里令个位为第1位。输入格式:输入在一行中依次给出A和B,均为不超过100位的正整数,其间以空格分隔。输出格
原创
发布博客 2016.03.01 ·
590 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

PAT : 1045. 快速排序(25)

著名的快速排序算法里有一个经典的划分过程:我们通常采用某种方法取一个元素作为主元,通过交换,把比主元小的元素放到它的左边,比主元大的元素放到它的右边。 给定划分后的N个互不相同的正整数的排列,请问有多少个元素可能是划分前选取的主元?例如给定N = 5, 排列是1、3、2、4、5。则:1的左边没有元素,右边的元素都比它大,所以它可能是主元;尽管3的左边元素都比它小,但
原创
发布博客 2016.02.29 ·
462 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

LintCode : 第一个丢失的正整数 First Missing Positive

题目链接:http://www.lintcode.com/en/problem/first-missing-positive/Given an unsorted integer array, find the first missing positive integer.ExampleGiven [1,2,0] return 3, and [3,4,-1,1
原创
发布博客 2015.06.13 ·
453 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

LintCode : 最长回文子字符串 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, and there exists one unique longest palindromic substring.根据题意,找到给定字符串中最长的回文
原创
发布博客 2015.04.26 ·
902 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

PAT : 05-树7. File Transfer (25)

We have a network of computers and a list of bi-directional connections. Each of these connections allows a file transfer from one computer to another. Is it possible to send a file from any computer
原创
发布博客 2015.04.08 ·
474 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

PAT : 05-树6. Path in a Heap (25)

Insert a sequence of given numbers into an initially empty min-heap H. Then for any given index i, you are supposed to print the path from H[i] to the root.Input Specification:Each input file
原创
发布博客 2015.04.07 ·
395 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

PAT : 04-树5. Complete Binary Search Tree (30)

A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys less than the node's key.The righ
原创
发布博客 2015.04.07 ·
293 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

PAT : 04-树4. Search in a Binary Search Tree (25)

To search a key in a binary search tree, we start from the root and move all the way down, choosing branches according to the comparison results of the keys. The searching path corresponds to a sequen
原创
发布博客 2015.04.06 ·
316 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

PAT : 04-树3. Root of AVL Tree (25)

An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any time they differ by more than one, rebalancing is
原创
发布博客 2015.04.05 ·
450 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

PAT : 03-树2. Tree Traversals Again (25)

An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with the keys numbered from 1 to 6) is traversed, the stac
原创
发布博客 2015.04.03 ·
298 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

PAT : 03-树1. List Leaves (25)

Given a tree, you are supposed to list all the leaves in the order of top down, and left to right.Input Specification:Each input file contains one test case. For each case, the first line give
原创
发布博客 2015.04.02 ·
418 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

PAT : 01-复杂度2. Maximum Subsequence Sum (25)

Given a sequence of K integers { N1, N2, ..., NK }. A continuous subsequence is defined to be { Ni, Ni+1, ..., Nj } where 1 Maximum Subsequence is the continuous subsequence which has the largest su
原创
发布博客 2015.04.02 ·
329 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

PAT : 1037. 在霍格沃茨找零钱(20)

如果你是哈利·波特迷,你会知道魔法世界有它自己的货币系统 —— 就如海格告诉哈利的:“十七个银西可(Sickle)兑一个加隆(Galleon),二十九个纳特(Knut)兑一个西可,很容易。”现在,给定哈利应付的价钱P和他实付的钱A,你的任务是写一个程序来计算他应该被找的零钱。输入格式:输入在1行中分别给出P和A,格式为“Galleon.Sickle.Knut”,其间用1个空格分隔。
原创
发布博客 2015.04.01 ·
815 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

PAT : 1035. 插入与归并(25)

根据维基百科的定义:插入排序是迭代算法,逐一获得输入数据,逐步产生有序的输出序列。每步迭代中,算法从输入序列中取出一元素,将之插入有序序列中正确的位置。如此迭代直到全部元素有序。归并排序进行如下迭代操作:首先将原始序列看成N个只包含1个元素的有序子序列,然后每次迭代归并两个相邻的有序子序列,直到最后只剩下1个有序的序列。现给定原始序列和由某排序算法产生的中间序列,请你判断该
原创
发布博客 2015.03.31 ·
1156 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

PAT : 1034. 有理数四则运算(20)

本题要求编写程序,计算2个有理数的和、差、积、商。输入格式:输入在一行中按照“a1/b1 a2/b2”的格式给出两个分数形式的有理数,其中分子和分母全是整型范围内的整数,负号只可能出现在分子前,分母不为0。输出格式:分别在4行中按照“有理数1 运算符 有理数2 = 结果”的格式顺序输出2个有理数的和、差、积、商。注意输出的每个有理数必须是该有理数的最简形式“k a/
原创
发布博客 2015.03.25 ·
1159 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

PAT : 1030. 完美数列(25)

给定一个正整数数列,和正整数p,设这个数列中的最大值是M,最小值是m,如果M 现在给定参数p和一些正整数,请你从中选择尽可能多的数构成一个完美数列。输入格式:输入第一行给出两个正整数N和p,其中N(5)是输入的正整数的个数,p(9)是给定的参数。第二行给出N个正整数,每个数不超过109。输出格式:在一行中输出最多可以选择多少个数可以用它们组成一个完美数列。
原创
发布博客 2015.03.25 ·
304 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多