豪运SYSU
码龄14年
关注
提问 私信
  • 博客:89,558
    89,558
    总访问量
  • 155
    原创
  • 1,621,867
    排名
  • 5
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:广东省
  • 加入CSDN时间: 2011-04-17
博客简介:

xiehaoyun2012的专栏

查看详细资料
个人成就
  • 获得5次点赞
  • 内容获得3次评论
  • 获得14次收藏
创作历程
  • 6篇
    2016年
  • 121篇
    2013年
  • 29篇
    2012年
成就勋章
TA的专栏
  • Sicily
    99篇
  • LeetCode
    55篇
创作活动更多

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

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

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

328. Odd Even Linked List

Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the value in the nodes.You should try to do it in
原创
发布博客 2016.01.21 ·
418 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

283. Move Zeroes

Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.For example, given nums = [0, 1, 0, 3, 12], after calling you
原创
发布博客 2016.01.16 ·
367 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

226. Invert Binary Tree

Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1解答:此为二叉树反转,用递归实现。/** * Definition for a binary tree node. * struc
原创
发布博客 2016.01.16 ·
329 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

237. Delete Node in a Linked List

Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is 1 -> 2 -> 3 -> 4 and you are given the third node with val
原创
发布博客 2016.01.16 ·
313 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

258. Add Digits

Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.For example:Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2 has on
原创
发布博客 2016.01.16 ·
336 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

292. Nim Game

You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones. The one who removes the last stone will be the
原创
发布博客 2016.01.16 ·
292 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Linked List Cycle II

Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow up:Can you solve it without using extra space?/** * Definition for singly-linked li
原创
发布博客 2013.11.14 ·
610 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Generate Parentheses

Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution set is:"((()))", "(()())", "(())()", "()(())", "()()
原创
发布博客 2013.11.14 ·
617 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Remove Nth Node From End of List

Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the end, the
原创
发布博客 2013.11.13 ·
634 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Search a 2D Matrix

Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted from left to right.The first integer of each
原创
发布博客 2013.11.13 ·
584 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Container With Most Water

Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Fin
原创
发布博客 2013.11.13 ·
634 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Set Matrix Zeroes

Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.click to show follow up.Follow up:Did you use extra space?A straight forward solution using O(m
原创
发布博客 2013.11.12 ·
863 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Pascal's Triangle II

Given an index k, return the kth row of the Pascal's triangle.For example, given k = 3,Return [1,3,3,1].Note:Could you optimize your algorithm to use only O(k) extra space?思路:从后面往前加
原创
发布博客 2013.11.12 ·
491 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Plus One

Given a number represented as an array of digits, plus one to the number.class Solution {public: vector plusOne(vector &digits) { // IMPORTANT: Please reset any member data you
原创
发布博客 2013.11.12 ·
507 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Rotate Image

You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?class Solution {public: void rotate(vector > &
原创
发布博客 2013.11.12 ·
546 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Single Number II

Given an array of integers, every element appears three times except for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you implement it without usi
原创
发布博客 2013.11.12 ·
529 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

一个Sqrt函数引发的血案

转自:http://blogread.cn/it/article/3299?f=wb好吧,我承认我标题党了,不过既然你来了,就认真看下去吧,保证你有收获。    我们平时经常会有一些数据运算的操作,需要调用sqrt,exp,abs等函数,那么时候你有没有想过:这个些函数系统是如何实现的?就拿最常用的sqrt函数来说吧,系统怎么来实现这个经常调用的函数呢?    虽然有可能你
转载
发布博客 2013.11.12 ·
525 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Unique Paths

A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to reach the
原创
发布博客 2013.11.12 ·
582 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Permutations

Given a collection of numbers, return all possible permutations.For example,[1,2,3] have the following permutations:[1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], and [3,2,1].思路:用递归。
原创
发布博客 2013.11.11 ·
534 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Minimum Path Sum

Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.Note: You can only move either down or right at
原创
发布博客 2013.11.11 ·
633 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多