240 发简信
IP属地:澳门
  • 对比两个string在退格操作后是否相同

    两个string 都有字母和backspace,然后看最后是不是一样的结果 从后往前traverse O(N) + O(1)

  • Resize,w 360,h 240
    ArrayList与LinkedList的区别

    DZone ArrayList vs. LinkedList vs. Vector From the hierarchy diagram, th...

  • 找包含N个substring的最小string

    给两个string,比如 lee和eel, 找到一个最短的string, 它的substring包含这两个stirng, 比如 leel. 找A...

  • 比较string pattern

    给一个pattern, check true or false, 比如abbba->cdddc就是true sol: 每个字母一种映射(hash...

  • 高频 凳子上坐人

    在一排座位中,找到与两边人距离的最远的位置 Follow-up:凳子上一开始没有人,然后一个一个往里面放,每次放的时候O(1)时间求放在哪里距离...

  • sort chunk

    给一个数组,要求你尽可能多的切割这个数组,使得每一个小段分别sort之后,整个数组就sort了 if minValue of Latter ch...

  • 【DP】 - Unique Paths

    Given a grid[][], one can only move either right, right up or right down...

  • LC 727 Minimum Window Subsequence

    LC 727 Description Given strings S and T, find the minimum (contiguous) ...