240 发简信
IP属地:云南
  • #136 Single Number

    题目: Given an array of integers, every element appearstwiceexcept for one. Find that sin...

  • #485 Max Consecutive Ones

    题目: Given a binary array, find the maximum number of consecutive 1s in this array. 代码: ...

  • #292 Nim Game

    题目: You are playing the following Nim Game with your friend: There is a heap of stones ...

  • #463 Island Perimeter

    题目: You are given a map in form of a two-dimensional integer grid where 1 represents la...

  • #496 Next Greater Element I

    题目: You are given two arrays(without duplicates)nums1 and nums2 where nums1’s elements ...

  • #344 Reverse String

    题目: Write a function that takes a string as input and returns the string reversed. 代码: ...

  • #412 Fizz Buzz

    题目: Write a program that outputs the string representation of numbers from 1 ton.But fo...

  • #500 Keyboard Row

    题目: Given a List of words, return the words that can be typed using letters ofalphabeto...

  • #476 Number Complement

    题目: Given a positive integer, output its complement number. The complement strategy is ...

  • #461 Hamming Distance

    题目: The Hamming Distancebetween two integers is the number of positions at which the co...