- 博客(13)
- 资源 (9)
- 收藏
- 关注
原创 leetCode 191. Number of 1 Bits
题目链接:https://leetcode.com/problems/number-of-1-bits/ 题目内容:Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight).
2016-01-29 20:00:18 542
原创 leetCode 100. Same Tree
题目链接:https://leetcode.com/problems/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 structura
2016-01-23 19:42:45 432
原创 leetCode 171. Excel Sheet Column Number
题目链接:https://leetcode.com/problems/excel-sheet-column-number/ 题目内容:Related to question Excel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding
2016-01-23 19:31:31 419
原创 leetCode 242. Valid Anagram
题目链接:https://leetcode.com/problems/valid-anagram/ 题目内容:Given two strings s and t, write a function to determine if t is an anagram of s.For example,s = "anagram", t = "nagaram", retur
2016-01-23 17:50:12 474
原创 leetCode 226. Invert Binary Tree
题目链接:https://leetcode.com/problems/invert-binary-tree/ 题目内容:Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1
2016-01-23 02:08:03 442
原创 leetCode 283. Move Zero
题目链接:https://leetcode.com/problems/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.
2016-01-21 21:15:05 688
原创 leetCode 237. Delete Node in a Linked List
题目链接:https://leetcode.com/problems/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.Suppose
2016-01-21 20:33:20 534
原创 leetCode 104. Maximum Depth of Binary Tree
题目链接:https://leetcode.com/problems/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
2016-01-21 20:07:54 1370
原创 leetCode 258. Add Digits
题目链接:https://leetcode.com/problems/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,
2016-01-21 19:46:02 447
原创 leetCode 292. Nim Game
题目连接:https://leetcode.com/problems/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
2016-01-21 17:44:32 575
原创 leetCode 8. String to Integer (atoi)
题目连接:https://leetcode.com/problems/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, pl
2016-01-21 16:51:36 368
原创 Java读写文件的编码问题
在处理一些日志文件的时候,由于数据来源的服务端跟本地处理的编码不一致,会出现许多乱七八糟的问题,比如无缘无故在文件首多了一些字符,或者写入文件的时候少了一些内容,又或者乱码无法显示等。因此,在读写文件的时候,读入数据流时要指明格式,从数据流写出到文件时也要指明编码格式,这样来说一般没什么的问题,因为你用文件原来的格式正确读取到了,然后把流中的数据按照你需要的格式写出了,亲测有效。一般来说,读写文件
2016-01-08 18:53:48 3349
原创 远程桌面设置
1、右键“计算机(win7)”或者“此电脑(win10)”,在左侧选择“远程设置”,并设置为如图所示2、如果客户机连接的时候显示连接不上,有如下几种情况:1)目标机长时间待机自动转化为休眠,因此必须提前设置目标机从不睡眠 2)目标机防火墙规则没有设置远程连接通过,可以设置远程连接的入站规则,允许远程连接,或者更暴力的,关闭防火墙 3)远程连接服务没有启动,去服务列表将Remote
2016-01-04 16:58:33 673
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人