自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Maskwang

用代码改变世界

  • 博客(5)
  • 收藏
  • 关注

原创 LeetCode:String to Integer (atoi)没你想的那么简单

题目:  Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input ca

2017-04-10 21:16:35 403

原创 LeetCode:ZigZag Conversion

题目描述  The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H N A P L S

2017-04-10 11:18:30 272

原创 LeetCode:Longest Palindromic Substring最长回文字符串

题目:  Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.   Example: Input: “babad” Output: “bab”Note: “aba” is also a valid answer. E

2017-04-09 17:03:12 314

原创 马踏棋盘算法

问题定义:  将马随机放在国际象棋的Board[0~7][0~7]的某个方格中,马按走棋规则进行移动。,走遍棋盘上全部64个方格。编制非递归程序,求出马的行走路线,并按求出的行走路线,将数字1,2,…,64依次填入一个8×8的方阵,输出之。思路: 利用回溯法的思想,马的走法总共有8,c[8]={1,2,1,2,-1,-2,-1,-2},b[8]={2,1,-2,-1,2,1,-2,-1},c是横坐标

2017-03-31 22:50:59 1157

原创 八皇后问题c语言算法

八皇后问题c语言算法

2017-03-30 20:52:20 6962 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除