首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
奶茶三分糖+冰
广州中医药大学
2019届
Java工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(14)
后缀表达式求值
0
import java.util.Stack; /* * 与其他人没啥差别吧,主要是多了一些异常处理 */ public class Solution { public int evalRPN(String[] tokens) { if (tokens == null || ...
发表于 2019-01-31 11:34:33
数组中的逆序对
1
public class Solution { public int InversePairs(int [] array) { if (array.length == 0 || array == null) { return 0; } ...
发表于 2019-01-08 12:02:24
左旋转字符串
0
public class Solution { public String LeftRotateString(String str,int n) { if (str == null || str.length() == 0) { return &quo...
发表于 2019-01-04 18:57:52
第一个只出现一次的字符
0
import java.util.List; import java.util.ArrayList; public class Solution { public int FirstNotRepeatingChar(String str) { if (str.length()...
发表于 2019-01-02 22:28:27
丑数
0
public class Solution { public int GetUglyNumber_Solution(int index) { if (index < 7) { return index; } int[] array = new int[index]; array[0] = 1;...
发表于 2019-01-02 21:46:26
以下是C语言的一个struct声明#pragma pack(4)...
41
在此结构体中,所有数据类型在32位主机或者64位主机上无影响,另外#pragma pack(4)指定字节对齐为4; 数据类型 字节数 字节对齐 int 4 4 char 1 ...
发表于 2018-03-29 16:13:17
运行以下程序片段的输出结果是?()#include "stdio...
1
这道题能编译?????
发表于 2018-03-29 16:04:11
从上往下打印二叉树
0
/* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(N...
发表于 2018-02-03 20:32:33
调整数组顺序使奇数位于偶数前面
0
class Solution { public: void reOrderArray(vector<int> &array) { int length = array.size(); if(length <= 0) ...
发表于 2018-02-03 12:32:50
数值的整数次方
0
class Solution { public: //用于判断用户输入的数值是否合法 bool g_InvalidInput = false; /* * 用户输入的指数可能是负数或者是0; * 如果指数为0,那么特殊情况是base为0.0,此时无意义,返回值为...
发表于 2018-02-02 20:26:05
首页
上一页
1
2
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题