首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
JackieLee
重庆大学
2017届
Java工程师
一个正在努力想要变成老鸟的菜鸟。。。
关注
私信
加入黑名单
举报TA
TA的博客
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(19)
字符串替换
0
class StringFormat { public: string formatString(string A, int n, vector<char> arg, int m) { // write code here vector<ch...
发表于 2016-09-01 17:24:22
查找输入整数二进制中1的个数
1
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.has...
发表于 2016-08-26 10:53:43
参数解析
20
import java.util.Scanner; /** * Created by lxb on 16/8/3. */ public class Main { public static void main(String[] args) { Scanner sc = n...
发表于 2016-08-24 01:09:07
取近似值
0
#include<iostream> using namespace std; int main() { float f; cin>>f; cout<<((f-(int)f)>=0.5?(int)f+1:(int)f); r...
发表于 2016-08-16 21:09:51
字符串分隔
0
#include <stdio.h> #include <string.h> #include <malloc.h> char ** splitStr(char str[][100],int memNum){ char **a = (char **)...
发表于 2016-08-14 13:23:32
计算某字符出现次数
0
#include <stdio.h> #include <string.h> #define MAX 10000 int main() { char str[MAX]; char c; int count = 0; gets(str); ...
发表于 2016-08-13 18:10:36
关于IP报文头的TTL字段,以下说法正确的有哪些?
4
ttl(time to live),表示的是数据报在网络中可通过的路由器的最大值。该字段占8bit,最大值为255。 路由器处理数据包时,会将ttl减一,然后再判断是否转发。 路由器如何处理ttl为1或0 的包。 一种说法是先减一然后再判断,而另一种说法是先判断,然后再减一,而这两种是有区别...
发表于 2016-05-15 00:11:26
懂二进制
23
int countBitDiff(int m, int n) { int len = 32; int difNum = 0; while(len) { int m_low = m&1; //取m最后一位,下同 int n_low = n&1; if((m_low...
发表于 2016-04-28 20:32:49
相邻最大差值
1
int findMaxDivision(vector<int> A, int n) { // write code here int arry[65535]; memset(arry,-1,65535); int maxnum = 0; for(int i...
发表于 2016-04-28 20:15:12
首页
上一页
1
2
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题