入门客AI创业平台(我带你入门,你带我飞行)
博客笔记
14
2017-06
Android String与十六进制数互转 2017-06-14
/** * 字符串转换成十六进制字符串 * @param String str 待转换的ASCII字符串 * @return String 每个Byte之间空格分隔,如: [61 6C 6B] */ public static St
12
2017-08
将字符串转换为与之对应的16进制字符串 2017-08-12
在C的编程中, 有时需要将字符串转换为对应的16进制的ASCII码字符串并显示出来。这里是我参考网上代码写的转换程序: 该程序分为两个部分: 一
22
2016-04
十六进制转字符串StrToHex,字符串转十六进制HexToStr 2016-04-22
// HEXSTR.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include /* // C prototype : void StrToHex(byte *pbDest, char *pszSrc, int nLen) // parameter(s): [OUT] pbDes
28
2016-10
Android中字符串转16进制 2016-10-28
对于字符串转16进制,项目中遇到需要发送16进制的消息, 然而消息指令的一部分码已经是16进制的字符串,另外一部份需要经过字符串转成16进制
24
2017-05
LeetCode第一题--两个数的和 2017-05-24
LeetCode第一题–两个数的和 LeetCode第一题两个数的和 代码 参考 代码 import java.util.HashMap; import java.util.Map; public class AddTwoNumbers { public stat
27
2018-02
LeetCode 1. 两数之和 2018-02-27
https://leetcodechina.com/problems/two-sum/description/ map class Solution { public: vector twoSum(vector& nums, int target) { vector ans; map vis; for (int i = 0; i < nums.size()
01
2016-05
LeetCode 1. Two Sum(两数之和) 2016-05-01
原题网址:https://leetcode.com/problems/two-sum/ 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
15
2018-04
LeetCode 两数之和 2018-04-15
O(n)复杂度:利用哈希查找(即:map)来寻找某元素注:Map是映射,别想成数组。class Solution { public: vector twoSum(vector& nums, int target) { unordered_m
29
2018-03
[LeetCode] 两数之和 2018-03-29
英文描述 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
25
2018-03
leetCode两数之和 2018-03-25
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: /***********