题目:Given a string s, partition s such that every substring of the partition is a palindrome. Return the minimum cuts needed for a palindrome partitioning of s. For example, given s = "aab",Return 1 since the palindrome partitioning ["aa&quo
//动态规划查找两个字符串最大子串 public static string lcs(string word1, string word2) { int max = 0; int index = 0; int[,] nums = new int[word1.Length + 1,word2.Length+1]; for (int i = 0; i <= word1.L
今天在做项目的时候发现一个奇怪的问题 File file = new File("d:\\a.txt"); BufferedReader br = new BufferedReader(new FileReader(file)); String text = ""; while ((text = br.readLine()) != null) { String[] s = text.split("|"); for (int i = 0; i &l
T-SQL切割字符串方法小结,只有表值函数那个是自己的思想,其它都是来源于网络的思想,请大家不要笑话,嘻嘻~网上大牛太多,这点东西虽然上不了台面,但是也算是自己的一个学习吧,能够对一个人有用也行.再不济也可以作为自己的参考笔记. 一.拼接动态SQL方法: 1. 把逗号替换为 ') insert into temptab values(' 讲逗号间的值截出来存入表变量,但是这种有些局限性 ),) WITH ENCRYPTION,EXECUTE AS OWNER AS BEGIN ) SELECT