首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
我是大牛膜拜吧小白
上海电子信息职业技术学院
2016届
Java工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(55)
整数转化
0
import java.util.*; public class Transform { public int calcCost(int A, int B) { int temp=A^B; int count=0; while(temp!=0...
发表于 2018-02-16 02:33:33
数值的整数次方
0
//java高票通过的答案有问题: //前几天面试遇到的问题:int 几个字节?具体是多大? //int的范围:-2147483648~2147483647,当指数b=Integer.MIN_VALUE时,-b 溢出了! public class Solution { public doub...
发表于 2018-02-16 01:44:29
字符串中找出连续最长的数字串
0
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); Strin...
发表于 2018-02-15 02:05:04
连续最大和
0
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n...
发表于 2018-02-15 01:22:57
末尾0的个数
0
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt...
发表于 2018-02-15 01:01:05
换零钱
0
import java.util.*; public class Exchange { public int countWays(int[] arr, int n,int aim) { if (arr == null || arr.length == 0 || aim &l...
发表于 2018-02-14 00:29:34
字符串组合
1
//TreeSet 既能够排序又能去重! import java.util.Comparator; import java.util.Scanner; import java.util.TreeSet; public class Main { public static void mai...
发表于 2018-02-10 22:03:38
数组中只出现一次的数字
0
//num1,num2分别为长度为1的数组。传出参数 //将num1[0],num2[0]设置为返回结果 public class Solution { public void FindNumsAppearOnce(int [] array,int num1[] , int num2[]) ...
发表于 2018-02-08 14:00:26
按之字形顺序打印二叉树
0
import java.util.*; public class Solution { public ArrayList<ArrayList<Integer> > Print(TreeNode pRoot) { ArrayList<ArrayLi...
发表于 2018-02-07 16:39:35
二叉树的序列化
0
public class TreeToSequence { public String toSequence(TreeNode root) { if(root==null)return ""; return "("+to...
发表于 2018-01-29 23:19:25
首页
上一页
1
2
3
4
5
6
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题