![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode-java
ladyalbee
新入行小菜鸟,努力学习中~O(∩_∩)O~
展开
-
171-Excel Sheet Column Number-字符串进制转换
【题目】Related to question Excel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number.For example: A -> 1 B -> 2 C -> 3原创 2015-05-12 22:09:49 · 280 阅读 · 0 评论 -
168-excle sheet columen title-字符串转换-26进制数
【题目】Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 -> Z 27 -> AA 28 -> AB原创 2015-05-15 09:22:39 · 350 阅读 · 0 评论 -
191-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).For example, the 32-bit integer ’11' has binary representation原创 2015-05-07 09:46:09 · 262 阅读 · 0 评论 -
12-Roman to Integer-字符串相关-HashMap
【题目】Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.【解析】求罗马数字转换到int类型,考查的是HashMap或者二维数组的应用,以及string类型字符串的了解。罗马数字只用于表示而不计算,4000原创 2015-05-07 09:52:12 · 305 阅读 · 0 评论 -
13-Integer to Roman-字符串相关-HashMap
【题目】Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.【解析】和上一题对偶,同样考查HashMap的使用我的思路是先给HashMap赋值,然后获取int字符类型每一位的值,换算成可以查找HashMap对应值原创 2015-05-07 09:57:26 · 288 阅读 · 0 评论 -
100-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.【解原创 2015-05-07 09:44:44 · 291 阅读 · 0 评论