2018年4月21日

摘要: 【题目描述】 Given n and k, return the k-th permutation sequence. Notice:n will be between 1 and 9 inclusive. 给定n和k,求123..n组成的排列中的第k个排列。 【注】1 ≤ n ≤ 9 【题目链接】 阅读全文
posted @ 2018-04-21 08:41 bokeyyy 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 【题目描述】 Given two array of integers(the first array is array A, the second array is array B), now we are going to find a element in array A which is A[ 阅读全文
posted @ 2018-04-21 08:40 bokeyyy 阅读(87) 评论(0) 推荐(0) 编辑

2018年4月20日

摘要: 【题目描述】 Given a string, find the length of the longest substring without repeating characters. 给定一个字符串,请找出其中无重复字符的最长子字符串。 【题目链接】 www.lintcode.com/en/pr 阅读全文
posted @ 2018-04-20 23:46 bokeyyy 阅读(98) 评论(0) 推荐(0) 编辑

2018年4月19日

摘要: 【题目描述】 Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate(i, ai).n vertical lines are drawn such that the two 阅读全文
posted @ 2018-04-19 23:32 bokeyyy 阅读(95) 评论(0) 推荐(0) 编辑

2018年4月18日

摘要: 【题目描述】 Given an integer n, generate a square matrix filled with elements from 1 to n^2 in spiral order. 给你一个数n生成一个包含1-n^2的螺旋形矩阵 【题目链接】 www.lintcode.co 阅读全文
posted @ 2018-04-18 23:37 bokeyyy 阅读(453) 评论(0) 推荐(0) 编辑

2018年4月15日

摘要: 【题目描述】 Write a program to find the node at which the intersection of two singly linked lists begins. Notice: If the two linked lists have no intersect 阅读全文
posted @ 2018-04-15 23:08 bokeyyy 阅读(72) 评论(0) 推荐(0) 编辑

2018年4月13日

摘要: 【题目描述】 Construct minimum number by reordering a given non-negative integer array. Arrange them such that they form the minimum number. Notice:The resu 阅读全文
posted @ 2018-04-13 23:15 bokeyyy 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 【题目描述】 For the given binary tree, return a deep copy of it. 深度复制一个二叉树,给定一个二叉树,返回一个他的克隆品。 【题目链接】 www.lintcode.com/en/problem/clone-binary-tree/ 【题目解析】 阅读全文
posted @ 2018-04-13 23:14 bokeyyy 阅读(154) 评论(0) 推荐(0) 编辑

2018年4月11日

摘要: 【题目描述】 Given a matrix of mxn elements (m rows,n columns), return all elements of the matrix in spiral order. 给定一个包含mxn个要素的矩阵,(m行,n列),按照螺旋顺序,返回该矩阵中的所有要 阅读全文
posted @ 2018-04-11 21:35 bokeyyy 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 【题目描述】 Partition an integers array into odd number first and even number second. 分割一个整数数组,使得奇数在前偶数在后。 【题目链接】 www.lintcode.com/en/problem/partition-arr 阅读全文
posted @ 2018-04-11 21:33 bokeyyy 阅读(129) 评论(0) 推荐(0) 编辑

导航