math
yanrui92
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
leetcode-add binary
Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". public class Solution { public String addBinary(String a, String b) {原创 2015-01-09 06:06:15 · 354 阅读 · 0 评论 -
leetcode-add two numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link原创 2015-01-09 05:16:57 · 309 阅读 · 0 评论 -
leetcode-excel sheet column title
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 /*what if原创 2015-01-09 06:57:04 · 376 阅读 · 0 评论 -
leetcode-palindrome number
public boolean isPalindrome(int x) { if(x<0)return false; int y=0; int z=x; while(z>0){ int cur=z%10; y=y*10+cur; z=z/10; }原创 2015-01-08 13:23:15 · 365 阅读 · 0 评论
分享