cfanrCoder
码龄13年
关注
提问 私信
  • 博客:360,027
    社区:146
    360,173
    总访问量
  • 172
    原创
  • 954,458
    排名
  • 21
    粉丝
  • 0
    铁粉

个人简介:对贡献有激情,对回报有信心!

IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:广东省
  • 加入CSDN时间: 2012-05-01
博客简介:

cfanr

博客描述:
对贡献有激情,对回报有信心!
查看详细资料
个人成就
  • 获得55次点赞
  • 内容获得28次评论
  • 获得105次收藏
创作历程
  • 5篇
    2017年
  • 1篇
    2015年
  • 197篇
    2014年
成就勋章
TA的专栏
  • JVM
    5篇
  • Java
    12篇
  • Android
    7篇
  • Android NDK
    4篇
  • Design Patterns
    1篇
  • C语言
    1篇
  • 编程基础
    7篇
  • Interview
    3篇
  • Program life
    12篇
  • Network
    3篇
  • Algorithm
    2篇
  • LeetCode
    53篇
  • Data structure
    5篇
  • BitManipulation
    3篇
  • Thinking in java
    2篇
  • Cracking the coding interview
    100篇
兴趣领域 设置
  • 数据结构与算法
    数据结构
  • 移动开发
    kotlinflutterandroid studio
  • 软件工程
    性能优化
  • 学习和成长
    面试
创作活动更多

AI大模型如何赋能电商行业,引领变革?

如何使用AI技术实现购物推荐、会员分类、商品定价等方面的创新应用?如何运用AI技术提高电商平台的销售效率和用户体验呢?欢迎分享您的看法

186人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

Android NDK 开发:CMake 使用

1. 前言当在做 Android NDK 开发时,如果不熟悉用 CMake 来构建,读不懂 CMakeLists.txt 的配置脚本,很容易就会踩坑,遇到编译失败,一个很小的配置问题都会浪费很多时间。所谓工欲善其事必先利其器,学习 NDK 开发还是要大致了解 CMake 的基本语法和配置的。下面文章是根据 CMake 实践手册 做的一些简短笔记,具体说得不够详细的地方,可以查看手册。2. CMake
原创
发布博客 2017.08.26 ·
2199 阅读 ·
1 点赞 ·
0 评论 ·
3 收藏

Android NDK 开发:实战案例

0. 前言如果只学理论,不做实践,不踩踩坑,一般很难发现真正实践项目中的问题的,也比较难以加深对技术的理解。所以延续上篇 JNI 的实战Android NDK开发:JNI实战篇 ,这篇主要是一些 NDK 小项目的练习,由于这些项目网上都有 demo介绍,这里不会具体一步步介绍如何操作,只记录一些个人需要注意的地方或一些主要步骤,详细的介绍或代码可以点击里面的链接查看。1. 文件加解密和分割合并1.1
原创
发布博客 2017.08.19 ·
2165 阅读 ·
1 点赞 ·
0 评论 ·
7 收藏

微信 Mars Android Sample 源码分析

注:原文首发地址零、前言Mars 是微信官方开源的跨平台跨业务的终端基础组件,具有高质量网络连接模块(长短连接、智能心跳机制)、高性能日志模块和网络监测组件等。而整个 Android Sample 是基于 Mars 开发的一个 demo,包含提供了以下功能:基于TCP长连接的聊天室体验。数据通信成功率、耗时、流量的展示。网络状况检测结果展示。一、本地运行 Server 端具体如何运行 Ser
原创
发布博客 2017.08.11 ·
6263 阅读 ·
2 点赞 ·
1 评论 ·
3 收藏

Android NDK开发:JNI实战篇

注:首发地址紧接上篇:Android NDK开发:JNI基础篇 | cfanr,这篇主要介绍 JNI Native 层调用Java 层的代码(涉及JNI 数据类型映射和描述符的使用)和如何动态注册 JNI。 1. Hello World NDK在开始实战练习前,你需要先大致了解运行一个 Hello World 的项目大概需要做什么,有哪些配置以及配置的具体意思。 Android Studio(2.2
原创
发布博客 2017.08.06 ·
1432 阅读 ·
3 点赞 ·
0 评论 ·
1 收藏

Android NDK开发:JNI基础篇

Android NDK开发:JNI基础篇JNI 概念1.1 概念JNI 全称 Java Native Interface,Java 本地化接口,可以通过 JNI 调用系统提供的 API。操作系统,无论是 Linux,Windows 还是 Mac OS,或者一些汇编语言写的底层硬件驱动都是 C/C++ 写的。Java和C/C++不同 ,它不会直接编译成平台机器码,而是编译成虚拟机可以运行的Java
原创
发布博客 2017.08.05 ·
1833 阅读 ·
2 点赞 ·
0 评论 ·
5 收藏

【Effective Java】创建和销毁对象

一、考虑用静态工厂方法代替构造器构造器是创建一个对象实例的最基本最常用的方法。开发者在使用某个类的时候,通常会使用new一个构造器来实现,其实也有其他方式可以实现的,如利用发射机制。这里主要说的是通过静态类工厂的方式来创建class的实例,如:public static Boolean valueOf(boolean b) { return b ? Boolean.T
原创
发布博客 2015.02.02 ·
1507 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Cracking the coding interview汇总目录

很久之前刷的CTCI的题目,都快忘记了,做个分类汇总,再重新好好复习一遍。Chapter 1 | Arrays and Strings1.1 Implement an algorithm to determine if a string has all unique characters. What if you can not use additional data stru
原创
发布博客 2014.12.26 ·
3990 阅读 ·
0 点赞 ·
0 评论 ·
2 收藏

【LeetCode】Path Sum II

题目Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree and sum = 22, 5 /
原创
发布博客 2014.12.24 ·
1082 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【LeetCode】Sum Root to Leaf Numbers

题目Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.An example is the root-to-leaf path 1->2->3 which represents the number 123.Find th
原创
发布博客 2014.12.23 ·
1183 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【LeetCode】Same Tree

题目Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical and the nodes have the same value.解答
原创
发布博客 2014.12.21 ·
1011 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【LeetCode】Binary Tree Inorder Traversal

题目Given a binary tree, return the inorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3return [1,3,2].解答中序遍历二叉树。递归法
原创
发布博客 2014.12.21 ·
1013 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【LeetCode】Minimum Depth of Binary Tree

题目Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.解答求树的最小深度。类似Maximum Depth
原创
发布博客 2014.12.20 ·
1210 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【LeetCode】Maximum Depth of Binary Tree

题目Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.解答求二叉树的最大深度。递归:a.若二叉树为空,
原创
发布博客 2014.12.20 ·
1322 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【LeetCode】Binary Tree Level Order Traversal II

题目Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For example:Given binary tree {3,9,20,#,#
原创
发布博客 2014.12.19 ·
1012 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【LeetCode】Binary Tree Level Order Traversal

题目Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree {3,9,20,#,#,15,7}, 3 / \
原创
发布博客 2014.12.19 ·
1219 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【LeetCode】Symmetric Tree

题目Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ 2 2 / \ / \3 4 4 3B
原创
发布博客 2014.12.18 ·
1043 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【LeetCode】Balanced Binary Tree

题目Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node nev
原创
发布博客 2014.12.18 ·
1348 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

酒桌上的计算机网络

前言:很有趣,很有意思的一篇文章,找资料在别人博客上无意发现的,原文链接:http://raychase.iteye.com/blog/1388742酒宴开始。 酒杯盛酒,酒杯碰撞,这是物理层;你要根据不同人的外貌特征找到你要敬酒的人所坐的位置,这是IP协议(网络层);你明白,敬酒的实际目的是加深感情,这在应用层,而这酒中的感情,才是报文的数据部
转载
发布博客 2014.12.17 ·
853 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【LeetCode】Combination Sum

题目Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeated number may be chosen from C unlimi
原创
发布博客 2014.12.17 ·
1070 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【LeetCode】3Sum Closest

题目Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would ha
原创
发布博客 2014.12.14 ·
1156 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多