正找实习,ms在版上没看到有这个,希望有用[attach]3694[/attach]
求字符串最大公共子串, 要求连续,非序列
找出带环单链表的环起始节点比如 : 1,2,3,4,5,6,3,4,5,6,3.....3就是答案这个题我个人认为没啥意思,太取巧了
You need to organize a football tournament. There are n teams given. You need to prepare a schedule for the matches so that each team plays with every other ...
对于正数数组A[n], 找出A = A[x]+A[y]的A的最大值。时间复杂度O(nlogn), 空间复杂度O(1)
假设有一颗二叉树,已知这棵树的节点上不均匀的分布了若干石头,石头数跟这棵二叉树的节点数相同,石头只可以在子节点和父节点之间进行搬运,每次只能搬运一颗石头。请问如 ...
给你一个32位的number,把它按位逆序 : 1101001 ==> 1001011
估计很多研究过的人都知道,不过也有很多不清楚的。求字符串的最大公共子序列(非子串)。比如两个字符串:abcdefg 和 acbedff 的最大公共子序列是:abef求出子序 ...
Given array A and B, write a function to find the smallest window in A that covers all numbers in B
字符串和字符串之间的转变可以通过插入,修改,删除字符来完成。插入,修改或删除了一个字符就是编辑了一步。比如cat->cut->put->pult, cat通过三步转换成了pult. 现在给你 ...
在一个字符串中找到第一个只出现一次的字符。如输入abaccdeff,则输出b
就是找出无向/有向图内的最长无环路径,简便起见路径无权值
给一颗普通的二叉树,找出这棵树最大BST子结构的大小(子结构懂不,不是子树是子结构!!!!!!!!!!!)
两个单项链表彼此相交,求他们第一个交节点
两个大小相同的排好序的数组,A和B,如何找出两个数组的中数
N个鸡蛋分到M个篮子里(N>M),不能有空篮子,对于任意不大于于N的数,保证有几个篮子的鸡蛋数和等于此数,编程实现输入N,M两个数,输出所有分鸡蛋的方法
1 2 2 3 4 5 4 5 6 7 8 4 9 右边的二叉树 ...
二维平面上给出一个多边形,按点的顺时针顺序表示,多边形可以是凸多边形也可以是凹多边形。给出一个点,判断这个点是否在这个多边形内部
//Write an algorithm to find the number //of six digit numbers where the sum of the first three digits is equal to the sum of the last three digits.
//You are given a String number containing the digits of a//phone number (the number of digits, n, can be any positive integer) . To help you memorize//the ...