导航

摘要: 稀疏矩阵是一种非零元少,而且分布没有规律的矩阵,在实际应用中经常遇到,因而需要对这种数据结构进行代码上实现 阅读全文

posted @ 2015-09-28 18:53 CSU蛋李 阅读(1077) 评论(0) 推荐(0) 编辑

摘要: 有兴趣的同学可以扩展函数内容,实现更多的运算,而不仅仅是整型数据的四则运算 阅读全文

posted @ 2015-09-15 22:28 CSU蛋李 阅读(2626) 评论(6) 推荐(0) 编辑

2017年2月26日

摘要: Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when one of 阅读全文

posted @ 2017-02-26 19:06 CSU蛋李 阅读(130) 评论(0) 推荐(0) 编辑

2017年1月9日

摘要: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng 阅读全文

posted @ 2017-01-09 00:03 CSU蛋李 阅读(111) 评论(0) 推荐(0) 编辑

2017年1月8日

摘要: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai 阅读全文

posted @ 2017-01-08 23:16 CSU蛋李 阅读(140) 评论(0) 推荐(0) 编辑

2016年10月9日

摘要: 4克鲁斯卡尔算法—集合运算应用 上图表述了生成树的算法过程 (选最短边,不构成回路) 只要有交集就合并 “原图”的数据对象可以使用邻接表来表达: IntgData[7][7] “边长排序图”的数据可以用线性表保存,数据结构: 算法描术: 算法过程,本质上是集合操作,集合的初始状态是空集,然后: 1) 阅读全文

posted @ 2016-10-09 19:55 CSU蛋李 阅读(248) 评论(0) 推荐(0) 编辑

2016年10月1日

摘要: 397. Integer Replacement QuestionEditorial Solution My Submissions 397. Integer Replacement QuestionEditorial Solution My Submissions QuestionEditoria 阅读全文

posted @ 2016-10-01 20:16 CSU蛋李 阅读(196) 评论(0) 推荐(0) 编辑

摘要: Given an array of integers A and let n to be its length. Assume Bk to be an array obtained by rotating the array A k positions clock-wise, we define a 阅读全文

posted @ 2016-10-01 19:25 CSU蛋李 阅读(155) 评论(0) 推荐(0) 编辑

2016年9月21日

摘要: Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at 阅读全文

posted @ 2016-09-21 01:47 CSU蛋李 阅读(138) 评论(0) 推荐(0) 编辑

摘要: Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: Note: You may assume the 阅读全文

posted @ 2016-09-21 01:35 CSU蛋李 阅读(333) 评论(0) 推荐(0) 编辑

摘要: Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the rans 阅读全文

posted @ 2016-09-21 01:14 CSU蛋李 阅读(131) 评论(0) 推荐(0) 编辑

摘要: We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess wron 阅读全文

posted @ 2016-09-21 00:58 CSU蛋李 阅读(150) 评论(0) 推荐(0) 编辑