上一页 1 ··· 4 5 6 7 8 9 10 11 下一页

2015年3月6日

lc面试准备:Remove Duplicates from Sorted List

摘要: 1 题目Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, ... 阅读全文

posted @ 2015-03-06 11:12 BYRHuangQiang 阅读(262) 评论(0) 推荐(0) 编辑

2015年3月5日

lc面试准备:Candy

摘要: 1 题目There areNchildren standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following r... 阅读全文

posted @ 2015-03-05 15:01 BYRHuangQiang 阅读(420) 评论(0) 推荐(0) 编辑

lc面试准备:Partition List

摘要: 1 题目Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the o... 阅读全文

posted @ 2015-03-05 14:11 BYRHuangQiang 阅读(515) 评论(0) 推荐(0) 编辑

2015年3月3日

lc面试准备:Reverse Linked List II

摘要: 1 题目Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NUL... 阅读全文

posted @ 2015-03-03 16:54 BYRHuangQiang 阅读(659) 评论(0) 推荐(0) 编辑

单链表反转总结篇

摘要: 单链表的反转是常见的面试题目。本文总结了2种方法。1 定义单链表node的数据结构定义如下:class ListNode { int val; ListNode next; ListNode(int x) { val = x; next = null; ... 阅读全文

posted @ 2015-03-03 16:34 BYRHuangQiang 阅读(61524) 评论(7) 推荐(4) 编辑

LeetCode 面试:Add Binary

摘要: 1 题目Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".接口String addBinary(String a, String b)2 思路处... 阅读全文

posted @ 2015-03-03 11:19 BYRHuangQiang 阅读(397) 评论(0) 推荐(0) 编辑

2015年3月2日

LeetCode 面试:Add Two Numbers

摘要: 1 题目You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a sin... 阅读全文

posted @ 2015-03-02 19:49 BYRHuangQiang 阅读(708) 评论(0) 推荐(0) 编辑

2014年10月19日

Spark MLBase分布式机器学习系统入门:以MLlib实现Kmeans聚类算法

摘要: 1.什么是MLBaseMLBase是Spark生态圈的一部分,专注于机器学习,包含三个组件:MLlib、MLI、ML Optimizer。ML Optimizer: This layer aims to automating the task of ML pipeline construction.... 阅读全文

posted @ 2014-10-19 17:48 BYRHuangQiang 阅读(8298) 评论(0) 推荐(0) 编辑

2014年10月13日

Spark Streaming 结合FlumeNG使用实例

摘要: SparkStreaming是一个对实时数据流进行高通量、容错处理的流式处理系统,可以对多种数据源(如Kdfka、Flume、Twitter、Zero和TCP 套接字)进行类似map、reduce、join、window等复杂操作,并将结果保存到外部文件系统、数据库或应用到实时仪表盘。Spark S... 阅读全文

posted @ 2014-10-13 19:52 BYRHuangQiang 阅读(2022) 评论(0) 推荐(0) 编辑

2014年10月10日

Spark:用Scala和Java实现WordCount

摘要: 为了在IDEA中编写scala,今天安装配置学习了IDEA集成开发环境。IDEA确实很优秀,学会之后,用起来很顺手。关于如何搭建scala和IDEA开发环境,请看文末的参考资料。用Scala和Java实现WordCount,其中Java实现的JavaWordCount是spark自带的例子($SPA... 阅读全文

posted @ 2014-10-10 20:27 BYRHuangQiang 阅读(30933) 评论(2) 推荐(3) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 11 下一页

导航