首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
踢丘比特一脚
西安邮电大学
2018届
C++工程师
初学算法的工科生
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(8)
赛马
0
#include <cstdio> #include <iostream> using namespace std; int main() { int n; double sum = 0; cin...
发表于 2017-03-22 10:40:31
包含min函数的栈
1
class Solution { private: vector<int> st; vector<int> st_min; public: int min(int a, int b){ return (a > b) ? b : a...
发表于 2017-02-12 12:00:47
识别有效的IP地址和掩码并进行分类统计
8
# -*- coding: utf-8 -*- """ HUAWEI Operating Examination Problem : Catagorize IP & Mask Author : Arclabs001 Email : chenzheng17@yah...
发表于 2017-02-01 21:42:54
字符串最后一个单词的长度
0
int main(){ string A; getline(cin, A); int len = A.length(); int ans = 0; while(A[len-1]!=' ' && len){ len--; ...
发表于 2016-03-25 16:06:54
数字识别
0
有点坑,没有换行,无法导入到R。不过这种多分类问题应该并不难,有监督学习的算法应该都可以
发表于 2016-03-19 14:09:34
二进制中1的个数
0
public class Solution { public int NumberOf1(int n) { int count = 0; while(n!=0) { if((n&1) != 0) ...
发表于 2015-10-15 09:37:11
在何种状态下可以为路由器改名?
0
system-view下吧。。
发表于 2015-09-16 23:04:31
设计函数,输入为一个字符串,里边包含中文、英文、数字等字符,编码为GBK。用常用语言(c/c++/php/java)编写函数,实现功能为:按顺序提取输入文本中的中文字符,形成新的文本串返回调用者。
1
string extractStr(string src, int type) { bool extractChinese, extractDigit, extractEnglish; string ans; switch(type) { case ...
发表于 2015-08-26 14:11:43
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题