problem 231-power-of-two 参考 1. Leetcode_231-power-of-two; 完 ...
分类:
其他好文 时间:
2018-12-29 15:13:27
阅读次数:
153
void*空类型指针,就好像暂时还没有确定类型,任何类型都可以赋给它。但是具体操作时一定要确定类型(如下,比较时先转Node) cmp返回一定是int,有-1,0,1三种,如果是1则第一个数要放在第二个数后面,形参为const void* qsort(数组名,数组长度,每个元素的size,比较函数) ...
分类:
其他好文 时间:
2018-12-29 00:14:16
阅读次数:
240
一、问题描述 We are given two arrays A and B of words. Each word is a string of lowercase letters. Now, say that word b is a subset of word a if every lette ...
分类:
其他好文 时间:
2018-12-28 15:28:05
阅读次数:
230
Given two integers n and k, you need to construct a list which contains n different positive integers ranging from 1 to n and obeys the following requ ...
分类:
其他好文 时间:
2018-12-28 15:21:42
阅读次数:
188
题意:给出一个数字n和k,使得k个数字加起来的和等于n。k个数字必须是2的幂次,比如1,2,4,8. 解法:首先排除k大于n的情况,这样即使全选1也不能满足。 比赛时候想得做法是,先把2的幂次打表,然后尽量塞最大的进去。 1.如果塞着塞着n等于0,必定有解。 1.k不等于0,那只需要把大于1的数字拆 ...
分类:
其他好文 时间:
2018-12-28 15:20:50
阅读次数:
161
There are two ways to generate output using Spring MVC: You can use the RESTful @ResponseBody approach and HTTP message converters, typically to retur ...
分类:
编程语言 时间:
2018-12-27 15:21:35
阅读次数:
154
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. For example, two is written as II in Roman numeral, just two one's ...
分类:
其他好文 时间:
2018-12-27 13:24:40
阅读次数:
159
Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: begin to in ...
分类:
其他好文 时间:
2018-12-27 10:28:09
阅读次数:
139
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikipedia ...
分类:
编程语言 时间:
2018-12-26 20:24:22
阅读次数:
132
使用kubeadm安装Kubernetes 1.12 https://blog.frognew.com/2018/10/kubeadm-install-kubernetes-1.12.html 测试环境,aws us daas ,test0001,test00002 two Centos7.5 ...
分类:
Web程序 时间:
2018-12-26 15:45:16
阅读次数:
191