6 蝌蚪123456

尚未进行身份认证

暂无相关简介

等级
TA的排名 1w+

C++sizeof

https://www.cnblogs.com/0201zcr/p/4789332.html

2019-11-05 10:37:33

191.Fizz Buzz

题目Write a program that outputs the string representation of numbers from 1 to n.But for multiples of three it should output “Fizz” instead of the number and for the multiples of five output “Buzz”. ...

2019-05-07 21:18:22

190.Largest Perimeter Triangle

题目GivenanarrayAofpositivelengths,returnthelargestperimeterofatrianglewithnon-zeroarea,formedfrom3oftheselengths.Ifitisimpossibletoformanytriangleofnon-zeroarea,retur...

2019-04-27 20:05:05

189.Leaf-Similar Trees

题目Consider all the leaves of a binary tree. From left to right order, the values of those leaves form a leaf value sequence.For example, in the given tree above, the leaf value sequence is (6, 7,...

2019-04-27 19:40:29

188.Range Sum of BST

题目Given the root node of a binary search tree, return the sum of values of all nodes with value between L and R (inclusive).The binary search tree is guaranteed to have unique values.Example 1:Inp...

2019-04-26 22:42:17

187.Base 7

题目Given an integer, return its base 7 string representation.Example 1:Input: 100Output: “202”Example 2:Input: -7Output: “-10”Note: The input will be in range of [-1e7, 1e7].链接https://leetcod...

2019-04-26 22:13:53

186.Add Strings

题目Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2.Note:The length of both num1 and num2 is < 5100.Both num1 and num2 contains only digits 0-...

2019-04-24 20:37:15

185.1-bit and 2-bit Characters

题目We have two special characters. The first character can be represented by one bit 0. The second character can be represented by two bits (10 or 11).Now given a string represented by several bits. ...

2019-04-24 10:43:20

184. Divisor Game

题目Alice and Bob take turns playing a game, with Alice starting first.Initially, there is a number N on the chalkboard. On each player’s turn, that player makes a move consisting of:Choosing any x ...

2019-04-23 21:41:20

183.Univalued Binary Tree

题目A binary tree is univalued if every node in the tree has the same value.Return true if and only if the given tree is univalued.Example 1:Input: [1,1,1,1,1,null,1]Output: trueExample 2:Input: ...

2019-04-23 13:29:55

182.Smallest Range II

参考https://blog.csdn.net/zjucor/article/details/82820938题目Given an array A of integers, for each integer A[i] we need to choose either x = -K or x = K, and add x to A[i] (only once).After this proce...

2019-04-22 22:52:27

181.Smallest Range I

题目Given an array A of integers, for each integer A[i] we may choose any x with -K <= x <= K, and add x to A[i].After this process, we have some array B.Return the smallest possible difference...

2019-04-21 17:13:31

180.To Lower Case

题目Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase.Example 1:Input: “Hello”Output: “hello”Example 2:Input: “here”Output: “here”Example...

2019-04-21 16:48:36

179.Fibonacci Number

题目The Fibonacci numbers, commonly denoted F(n) form a sequence, called the Fibonacci sequence, such that each number is the sum of the two preceding ones, starting from 0 and 1. That is,F(0) = 0, ...

2019-04-21 16:30:26

C++编译时出现 reference to local variable

具体见:https://stackoverflow.com/questions/19371137/c-reference-to-local-variable-returned会引发问题的实现如下:vector<int>&find1(string&search_word){vector<int>final;final.push_...

2018-11-09 15:59:09

atomic cas

2018-05-09 14:15:18

178.Custom Sort String

题目SandTarestringscomposedoflowercaseletters.InS,noletteroccursmorethanonce.Swassortedinsomecustomorderpreviously.WewanttopermutethecharactersofTsothattheymatcht...

2018-03-19 20:02:53

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

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

java、C++、python三种语言对比之类 class

需求实现一个简单的Student类,属性nameage方法默认构造函数带参数的构造函数两个属性的get和set方法测试,实现main方法测试Student类中的方法都可以用java定义一个Classpublic class Student { private String name; private int age; pub...

2018-03-14 19:13:23

查看更多

勋章 我的勋章
  • 持之以恒
    持之以恒
    授予每个自然月内发布4篇或4篇以上原创或翻译IT博文的用户。不积跬步无以至千里,不积小流无以成江海,程序人生的精彩需要坚持不懈地积累!
  • 勤写标兵Lv4
    勤写标兵Lv4
    授予每个自然周发布9篇以上(包括9篇)原创IT博文的用户。本勋章将于次周周三上午根据用户上周的博文发布情况由系统自动颁发。