
leetcode之旅400-499
文章平均质量分 64
lwjcarrot
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
leetcode - 496. Next Greater Element I (stack)
ou are given two arrays (without duplicates) nums1 and nums2where nums1’s elements are subset of nums2. Find all the next greater numbers for nums1's elements in the corresponding places of nums2.原创 2017-02-24 10:11:56 · 279 阅读 · 0 评论 -
leetcode - 419. Battleships in a Board (logic)
Given an 2D board, count how many battleships are in it. The battleships are represented with 'X's, empty slots are represented with '.'s. You may assume the following rules: You receive a valid原创 2017-02-22 22:53:03 · 259 阅读 · 0 评论 -
leetcode - 461. Hamming Distance (bit mannipulation)
The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calculate the Hamming distance. Note: 0 ≤ x,原创 2017-02-22 22:32:47 · 248 阅读 · 0 评论 -
leetcode - 476. Number Complement (bit mannipulation)
Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: The given integer is guaranteed to fit within the range原创 2017-02-22 22:36:24 · 302 阅读 · 0 评论