自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 资源 (4)
  • 收藏
  • 关注

原创 迅雷笔试之-纸牌游戏有牛无牛

今日迅雷笔试题一:给定5张牌(除大小王),J/Q/K代表10,A代表1,其他数字还是对应数字。5张牌中有三张加起来是10的倍数就叫有牛,任意三张加起来都不等于10就叫无牛。有牛的情况下,剩余两张加起来的和的个位数为牛数,比如4+7则牛数为1。输入要求:五张牌以逗号分隔输入;输出要求:无牛和输入错误的情况输出“none”,有牛的情况下输出牛数。#include<iostream>#include<m

2016-09-20 09:55:26 573

原创 路灯最小发光距离

题目描述 V先生有一天工作到很晚,回家的时候要穿过一条长l的笔直的街道,这条街道上有n个路灯。假设这条街起点为0,终点为l,第i个路灯坐标为ai。路灯发光能力以正数d来衡量,其中d表示路灯能够照亮的街道上的点与路灯的最远距离,所有路灯发光能力相同。为了让V先生看清回家的路,路灯必须照亮整条街道,又为了节省电力希望找到最小的d是多少?输入 输入两行数据,第一行是两个整数:路灯数目n (1≤n≤10

2016-09-17 16:26:25 721

原创 二进制中1的个数

面试官的手机被他调皮的儿子小明用一个数字作为密码锁上了。 小明只记得这个数字的十进制范围是l~r,且这个数的二进制表示中恰有m个1,却不记得确切的数字了。 面试官可急坏了。这才有了小赛一个将功赎过的机会。 他想要让小赛算出,他最坏情况下,要试多少次密码才能确保打开手机呢? 请输出这个次数。 输出 : 输出一行,包含一个整数,表示面试官最坏情况下,要试多少次密码才能确保打开手机。 如果小

2016-09-16 21:12:47 386

原创 第n天股票价格

经过严密的计算,小赛买了一支股票,他知道从他买股票的那天开始,股票会有以下变化:第一天不变,以后涨一天,跌一天,涨两天,跌一天,涨三天,跌一天…依此类推。 为方便计算,假设每次涨和跌皆为1,股票初始单价也为1,请计算买股票的第n天每股股票值多少钱?#include<iostream>using namespace std;int main(){ int n; while (ci

2016-09-16 19:59:40 2036

原创 删除字符串末尾所有空格

删除字符串末尾的所有空格。注意使用 char[ ] 是数组,用栈存储,可以修改其中元素。而 char* ,string 是字符串常量,在静态存储区,不可修改。另外 strlen 是函数,只能处理 char* 数据,返回的的元素个数不包含结束符 NULL(‘\0’).#include<iostream>using namespace std;char* rtrim(char* str){

2016-09-16 15:49:31 3907

原创 腾讯-找出两个数组中少掉的一个元素

16年腾讯秋招软开第一道编程题(去掉了繁琐的输入要求)。题目大意是给定两个数组,第一个有 n 个元素,第二个有 n-1 个元素,两个数组区别除了少一个元素其他一样。找出少掉的这个元素。主要是注意 find 函数和vector 的 erase 函数。#include<iostream>#include<vector>using namespace std;int main(){ int

2016-09-08 09:03:34 787

原创 Leetcode 7. Reverse Integer

Example1: x = 123, return 321 Example2: x = -123, return -321class Solution {public: int reverse(int x) { string s=to_string(x); for(int i=0,j=s.size()-1;i<j;++i,--j){

2016-09-02 12:33:04 221

原创 Leetcode 371. Sum of Two Integers

Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -.Example: Given a = 1 and b = 2, return 3.用二进制的异或、与运算代替加减class Solution {public: int getSum(int a, in

2016-09-02 12:10:34 223

原创 Leetcode 389. Find the Difference

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 a random position.Find the letter that was added in

2016-09-02 11:24:55 215

原创 Leetcode 1. Two Sum

Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution.Example:Given nums = [2, 7, 11, 1

2016-09-01 12:52:24 240

原创 Leetcode 58. Length of Last Word

Given a string s consists of upper/lower-case alphabets and empty space characters ’ ‘, return the length of last word in the string.If the last word does not exist, return 0.Note: A word is defined as

2016-09-01 11:39:10 228

原创 Leetcode 19. Remove Nth Node From End of List

Given a linked list, remove the nth node from the end of list and return its head.For example,Given linked list: 1->2->3->4->5, and n = 2.After removing the second node from the end, the linked list be

2016-09-01 10:57:29 213

原创 Leetcode 257. Binary Tree Paths

Given a binary tree, return all root-to-leaf paths.For example, given the following binary tree: 1 / \2 3 \ 5All root-to-leaf paths are: [“1->2->5”, “1->3”]用深度优先搜索+递归处理/** * Definition f

2016-09-01 10:21:04 216

原创 Leetcode 234. Palindrome Linked List

Given a singly linked list, determine if it is a palindrome. Follow up: Could you do it in O(n) time and O(1) space? 题目是求单链表是否是回文。根据在平台上测试结果知:12->34->12是回文,而不是说 12->343 ->21是回文,这个概念要搞清楚。解题思路很简单,用两个节

2016-09-01 00:20:57 272

CNN模型简单介绍(LeNet,AlexNet,VGG,GoogLeNet,ResNet,GAN,R-CNN)

CNN模型简单介绍,按照提出时间依次介绍LeNet,AlexNet,VGG,GoogLeNet,ResNet,GAN,R-CNN。十几页的ppt,主要介绍各个模型的核心思想、贡献,希望能为大家提供一条清晰的CNN发展脉络。具体的算法实现等需要阅读文章代码。相关文章会作为另一个资源提供免费打包下载。

2017-01-16

CNN模型简单介绍(LeNet,AlexNet,VGG,GoogLeNet,ResNet,GAN,R-CNN)

CNN模型简单介绍,按照提出时间依次介绍LeNet,AlexNet,VGG,GoogLeNet,ResNet,GAN,R-CNN。十几页的ppt,主要介绍各个模型的核心思想、贡献,希望能为大家提供一条清晰的CNN发展脉络。具体的算法实现等需要阅读文章代码。相关文章会作为另一个资源提供免费打包下载。

2017-01-16

针对窄带和多信道系统的CMOS射频发射器芯片CC1070及其应用

cc1070对于学习射频电路初级阶段的学友是款不错的学习芯片

2012-12-23

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除