- 博客(11)
- 收藏
- 关注
原创 leetcode#7-Reverse Integer-java
题目:Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321click to show spoilers.Note:The input is assumed to be a 32-bit signed integer. Your function should retur
2017-09-25 22:51:29
373
原创 leetcode#6-ZigZag Conversion-java
题目:The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA P L S I
2017-09-25 22:41:13
331
原创 leetcode#5-Longest Palindromic Substring-java
题目:Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.Example:Input: "babad"Output: "bab"Note: "aba" is also a valid answer.Example:I
2017-09-15 16:17:19
362
原创 leetcode#3-Longest Substring Without Repeating Characters-java
题目:Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is "abc", which the length is 3.Given "bbbbb", the answer is "b", with the
2017-09-14 20:10:45
271
原创 leetcode#1-Two Sum-java
题目: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, and you may not use the sam
2017-09-10 11:39:33
406
原创 阿里暑期实习电话面试
因为面试官是做JAVA开发的,所以JAVA基础知识问的比较详细,数据挖掘方向的题目问的比较浅因为时间原因,目前先把面试的题目贴上来,之后再进行详细的正确的答案分析简单介绍一下自己关于项目经验 介绍一下自己的项目经验,包括印象最深刻的项目以及 哪个部分比较深刻?(当时回答数据流)项目中用到了hbase和mysql,两者的区别,为什么要分开用这两个数据库,什么情况下应该使用哪种数据库数据量大,
2017-09-10 11:35:21
507
原创 陌陌面试
字符串做加法String a = "112233445566778899"String b = "998877665544332211"因为两个字符串的长度已经超过数字加法运算的范围,所以不能转int直接计算思路:从后往前 使用取余和取整进行计算,涉及到进位问题,主要是加和是否大于10以及是否是第一位的加和问题,如果大于10,那么设置temp=a/10,并加给前一位。如果是第一位,则
2017-09-10 11:32:36
2482
原创 新浪面试
Java基础知识java 关键字父类和子类的关系-构造函数的调用关系final关键字super()和this()Java多继承算法题目* 10000条数据的字符串,用逗号分隔,按照降序将数字输出首先,使用split将字符串分隔成数组,然后将数字进行过滤并存储到TreeSet中,最后将TreeSet转存成ArrayList,从后往前输出。* 用Java实现单例模式* 一个数据含有
2017-09-10 11:30:25
419
原创 百度策略笔试题
一面一共四道算法题,80分钟,要做出大于3道的题目,结果一面GG C++一个字符串,空格分开,计算每个单词出现的次数使用map来做计算树所有节点的深度和树是以第一个孩子和下一个兄弟的结构进行存储的。根的深度是1,求所有节点的深度和给出树的任意两个节点,求出这两个节点的最近公共父节点时间原因,这道题还没有完成解答
2017-09-10 11:26:45
534
原创 网易笔试题
常用的数学公式(机器学习要用的)常用的算法,包括算法选择方法、特征选择方法hadoop上的mapReduce再看一些常用的数据挖掘算法
2017-09-10 11:22:21
451
原创 leetcode#2-Add Two Numbers-java
题目:You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return
2017-09-10 11:19:52
248
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人