- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 [leetcode] 720. Longest Word in Dictionary
Given a list of strings words representing an English Dictionary, find the longest word in words that can be built one character at a time by other words in words. If there is more than one possible
2018-01-02 17:27:18
223
原创 使用python读取.txt文件并保存到Excel中
txt文件中使用json格式保存数据,使用Excel中的Workbook函数可以实现行中单元格的值输入worksheet.cell(r=i, c=j).value = file_cintent[str(i)][m]student.txt:{ "1":["张三",150,120,100], "2":["李四",90,99,95], "3":["王五",60,66,68]
2017-10-13 14:47:47
9564
2
原创 [leetcode] 78. Subsets
题目链接:https://leetcode.com/problems/subsets/Given a set of distinct integers, nums, return all possible subsets.Note: The solution set must not contain duplicate subsets.For example,
2017-08-12 00:14:41
164
原创 [leetcode] 49. Group Anagrams
题目地址:https://leetcode.com/problems/group-anagrams/Given an array of strings, group anagrams together.For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return:[ [
2017-08-11 16:10:47
163
原创 [leetcode] 45.Jump Game ii
题目链接: https://leetcode.com/problems/jump-game-ii/Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents yo
2017-08-11 15:46:09
153
原创 排序算法
排序算法#include<iostream>using namespace std;void swap(T *a, T *b){ T tmp; tmp = *a; *a = *b; *b = tmp;}1、简单选择排序void SelectSort(T A[], int n){ int min; for (int i = 0; i < n-
2016-08-08 12:54:28
234
原创 一个数是否2的N次方及求两个数的平均值
2的N次方的数转为二进制都是1带N-1个0的形式,例如 1、10、100、1000.……则可以进行 x& (x-1) 运算,若结果为0,则x是2的N次方。
2016-07-28 14:52:56
430
eclipse添加spket供js自动提示补全.rar
2019-05-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人