![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
文章平均质量分 69
ZHANGTAOZAQaq
这个作者很懒,什么都没留下…
展开
-
面试算法
先把这些给转载过来为以后的面试做准备还有就是和大家分享下Problem 1: Is it a loop ? (判断链表是否有环?)Assume that wehave a head pointer to a link-list. Also assumethat we know the list is single-linked. Can you come up an algorithm转载 2013-12-16 22:58:50 · 545 阅读 · 0 评论 -
编写一个函数将一个十六进制数的字符串参数转换成整数返回
package com.zt.basic;/** * * 把一个16进制的string转化为十进制的整数 * */public class JinZhiDeo { public static void main(String[] args ){ String str="12a"; // System.out.println(str.charAt(0)); // S原创 2014-05-20 19:50:41 · 3406 阅读 · 0 评论 -
数组的子数组之和的最大值和下标的开始与结束
题目描述:给一个一维数组求其zish原创 2014-05-28 20:17:19 · 1554 阅读 · 0 评论 -
判断单链表是否有环
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?原创 2014-06-01 00:02:36 · 516 阅读 · 0 评论 -
Linked List Cycle II
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow up:Can you solve it without using extra space?在一个单链表中找到you原创 2014-06-01 14:09:05 · 499 阅读 · 0 评论 -
全排列
全排列以递归的方式实现,现在xia原创 2014-06-20 21:53:02 · 573 阅读 · 0 评论 -
红白蓝三色小球排列成有序的红白蓝三色的同颜色在一起的小球组
问题描述:我们将乱序的红白蓝三色小球排列成有序的红白蓝三色的同颜色在一起的小球组。这个问题之所以叫荷兰国旗,是因为我们可以将红白蓝三色小球想象成条状物,有序排列后正好组成荷兰国旗。如下图所示: 这个问题,类似快排中partition过程。不过,要用三个指针,一前begin,一中current,一后end,俩俩交换。1、current遍历,整个数组序列,cu转载 2014-06-21 13:07:43 · 3548 阅读 · 0 评论 -
Reorder List LeetCode
LeetCode :Reorder List原创 2014-08-10 12:38:53 · 365 阅读 · 0 评论