240 发简信
IP属地:宾夕法尼亚州
  • [Med] 162. Find Peak Element

    Description A peak element is an element that is greater than its neighb...

  • [Med] Divide Two Integers

    Description 实现除法(保留整数) Solution 被除数每次*2ans每次加1<<shift num

  • [BST Medium] 865 Smallest Subtree with all the Deepest Nodes

    Description Given a binary tree rooted at root, the depth of each node i...

  • [Hard BFS] Word Ladders

    Description 给出两个单词(start和end)和一个字典,找出从start到end的最短转换序列,输出最短序列的长度。 变换规则如下...

  • [Easy] 680. Valid Palindrome II

    Description Given a non-empty string s, you may delete at most one chara...

  • [Med ]621. Task Scheduler

    Description 给定一个字符串,表示CPU需要执行的任务。 这个字符串由大写字母A到Z构成,不同的字母代表不同的任务。完成任务不需要按照...

  • 161. One Edit Distance

    Description Given two strings s and t, determine if they are both one ed...

  • [Med] 560. Subarray Sum Equals K

    Description Given an array of integers and an integer k, you need to fin...

  • [Easy] 67. Add Binary

    Description 两个string的二进制数相加 Solution 简洁写法