- 博客(6)
- 收藏
- 关注
原创 178.Custom Sort String
题目 S and T are strings composed of lowercase letters. In S, no letter occurs more than once. S was sorted in some custom order previously. We want to permute the characters of T so that they match t...
2018-03-19 20:02:53 309
原创 177.Merge Two Binary Trees
题目 Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are not. You need to merge them into a new binary ...
2018-03-19 19:35:49 251
原创 176.Judge Route Circle
题目 Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to the original place. The move sequence is represente...
2018-03-14 21:33:10 226
原创 java、C++、python三种语言对比之类 class
需求 实现一个简单的Student类, 属性 name age 方法 默认构造函数 带参数的构造函数 两个属性的get和set方法 测试,实现main方法 测试Student类中的方法都可以用 java定义一个Class public class Student { private String name; private int age; pub...
2018-03-14 19:13:23 1987
原创 175.Maximum Binary Tree
题目 Given an integer array with no duplicates. A maximum tree building on this array is defined as follow: The root is the maximum number in the array. The left subtree is the maximum tree construct...
2018-03-14 18:28:31 155
原创 174.Jewels and Stones
题目You’re given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a type of stone you have. You want to know how many of the st
2018-03-13 17:24:00 236
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人