- 博客(6)
- 资源 (7)
- 收藏
- 关注
原创 CC150 Arrays and Strings 1.7 ~ 1.8 Set Matrix Zero, IsS1RotationOfS2
1. 7 Write an algorithm such that if an element in an MxN matrix is 0, its entire row and column are set to 0. 分析见这里 解答如下: public class SetMatrixZero { public void SetMatrixToZero (int [][] ma
2015-02-27 10:17:48 1099
原创 JAVA菜鸟入门(3) Function parameter : pass by value, always!
(from stackoverflow. author.) Java is always pass-by-value. The difficult thing to understand is that Java passes objects as references and those references are passed by value. public class Ma
2015-02-25 07:08:24 1048
原创 JAVA菜鸟入门(2) StringBuilder vs StringBuffer,
1. StringBuilder vs StringBuffer. from stackoverflow " StringBuffer is synchronized StringBuffer is thread-safe StringBuffer is slow (try to write a sample program and
2015-02-25 04:36:52 787
原创 CC150 Arrays and Strings 1.4 ~ 1.6 Replace Spaces, String Compression, Rotate Image
1.4 题目如下: Write a method to replace all spaces in a string with ‘%20’. 解答如下: /** * @author feliciafay * @note replace space with Percentage Symbol * @tips 1. manipulate a string from th
2015-02-24 16:15:27 972
原创 CC150 Arrays and Strings 1.1 ~ 1.3 Unique Characters, Reverse String, IsPermutation
1.1 题目如下: Implement an algorithm to determine if a string has all unique characters. What if you can not use additional data structures? 解答如下: public class stringUniqueChar { // ask your inter
2015-02-23 15:15:13 1144 1
原创 JAVA菜鸟入门(1) ReadFile
最近要开始积极地从C++切换到JAVA上了,大家都说基本可以平滑切换。 目前试了试,主要的问题还是语法表达还不够习惯的问题。所以用这个系列来做一些记录吧。 这个代码读入一组数据,然后将这组数据转化为2进制表达的字符串,输出出来。 eg. 读入input. txt。其中input.txt包含一行, 1,3,6,8。那么输出为 1->1010 3->101 6->11 8->1001
2015-02-23 13:27:44 5418
数据挖掘--概念.模型.方法和算法
2009-09-20
机器学习 Tom Mitchell 中文版
2009-09-20
机器学习英文版Machine Learning(Mitchell)(下)
2009-09-14
机器学习英文版Machine Learning(Mitchell)(中)
2009-09-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人