过中等难度题目.0310

  。   8  String to Integer (atoi)    13.9% Medium
  。 151 Reverse Words in a String      15.7% Medium  
  。 288 Unique Word Abbreviation      15.8% Medium  
  。 29 Divide Two Integers      16.0% Medium  
  。 166 Fraction to Recurring Decimal      17.0% Medium  
  。 130 Surrounded Regions      17.8% Medium  
  。 91 Decode Ways      19.1% Medium  
  。 307 Range Sum Query - Mutable      19.1% Medium  
  。 127 Word Ladder      19.2% Medium  
  。 220 Contains Duplicate III      19.3% Medium  
  。 165 Compare Version Numbers      19.5% Medium  
  。 444 Sequence Reconstruction      19.7% Medium  
  。 468 Validate IP Address      20.3% Medium  
  。 523 Continuous Subarray Sum      20.7% Medium  
  。 211 Add and Search Word - Data structure design      20.9% Medium  
  。 15 3Sum      21.3% Medium  
  。 179 Largest Number      21.8% Medium  
  。 98 Validate Binary Search Tree   (好)   22.6% Medium  
  。 464 Can I Win(DP,有一定难度)      23.4% Medium  
  。 304 Range Sum Query 2D - Immutable      23.4% Medium  
  。 3 Longest Substring Without Repeating Characters      23.9% Medium  
  。 61 Rotate List      24.1% Medium  
  。 71 Simplify Path      24.4% Medium  
  152 Maximum Product Subarray      24.8% Medium  
  143 Reorder List      24.9% Medium  
  5 Longest Palindromic Substring      24.9% Medium  
  54 Spiral Matrix      25.0% Medium  
  355 Design Twitter      25.0% Medium  
  133 Clone Graph      25.0% Medium  
  324 Wiggle Sort II      25.4% Medium  
  79 Word Search      25.7% Medium  
  353 Design Snake Game      25.9% Medium  
  18 4Sum      26.0% Medium  
  163 Missing Ranges      26.0% Medium  
  402 Remove K Digits      26.1% Medium  
  322 Coin Change      26.1% Medium  
  6 ZigZag Conversion      26.2% Medium  
  93 Restore IP Addresses      26.2% Medium  
  43 Multiply Strings      26.3% Medium  
  150 Evaluate Reverse Polish Notation      26.3% Medium  
  271 Encode and Decode Strings      26.3% Medium  
  210 Course Schedule II      26.3% Medium  
  208 Implement Trie (Prefix Tree)      26.4% Medium  
  365 Water and Jug Problem      26.5% Medium  
  138 Copy List with Random Pointer      26.6% Medium  
  2 Add Two Numbers      26.8% Medium  
  50 Pow(x, n)      26.8% Medium  
  222 Count Complete Tree Nodes      27.1% Medium  
  306 Additive Number      27.3% Medium  
  418 Sentence Screen Fitting      27.4% Medium  
  60 Permutation Sequence      27.5% Medium  
  221 Maximal Square      27.7% Medium  
  148 Sort List      27.7% Medium  
  186 Reverse Words in a String II      27.9% Medium  
  456 132 Pattern      28.0% Medium  
  229 Majority Element II      28.0% Medium  
  332 Reconstruct Itinerary      28.3% Medium  
  31 Next Permutation      28.3% Medium  
  227 Basic Calculator II      28.4% Medium  
  310 Minimum Height Trees      28.6% Medium  
  228 Summary Ranges      28.6% Medium  
  139 Word Break      28.8% Medium  
  134 Gas Station      28.8% Medium  
  82 Remove Duplicates from Sorted List II      28.8% Medium  
  56 Merge Intervals      28.9% Medium  
  55 Jump Game      29.3% Medium  
  209 Minimum Size Subarray Sum      29.3% Medium  
  236 Lowest Common Ancestor of a Binary Tree      29.5% Medium  
  397 Integer Replacement      29.5% Medium  
  469 Convex Polygon      29.8% Medium  
  333 Largest BST Subtree      30.0% Medium  
  92 Reverse Linked List II      30.0% Medium  
  385 Mini Parser      30.1% Medium  
  187 Repeated DNA Sequences      30.2% Medium  
  373 Find K Pairs with Smallest Sums      30.2% Medium  
  356 Line Reflection      30.3% Medium  
  16 3Sum Closest      30.7% Medium  
  95 Unique Binary Search Trees II      30.8% Medium  
  161 One Edit Distance      30.8% Medium  
  379 Design Phone Directory      30.8% Medium  
  207 Course Schedule      30.9% Medium  
  396 Rotate Function      30.9% Medium  
  34 Search for a Range      31.0% Medium  
  142 Linked List Cycle II      31.0% Medium  
  105 Construct Binary Tree from Preorder and Inorder Traversal      31.1% Medium  
  63 Unique Paths II      31.1% Medium  
  467 Unique Substrings in Wraparound String      31.2% Medium  
  106 Construct Binary Tree from Inorder and Postorder Traversal      31.2% Medium  
  131 Palindrome Partitioning      31.5% Medium  
  47 Permutations II      31.5% Medium  
  267 Palindrome Permutation II      31.5% Medium  
  86 Partition List      31.8% Medium  
  264 Ugly Number II      31.8% Medium  
  40 Combination Sum II      32.0% Medium  
  113 Path Sum II      32.1% Medium  
  33 Search in Rotated Sorted Array      32.1% Medium  
  147 Insertion Sort List      32.1% Medium  
  223 Rectangle Area      32.2% Medium  
  525 Contiguous Array      32.4% Medium  
  19 Remove Nth Node From End of List      32.5% Medium  
  274 H-Index      32.5% Medium  
  49 Group Anagrams      32.7% Medium  
  120 Triangle      32.8% Medium  
  417 Pacific Atlantic Water Flow      32.9% Medium  
  81 Search in Rotated Sorted Array II      32.9% Medium  
  103 Binary Tree Zigzag Level Order Traversal      32.9% Medium  
  200 Number of Islands      33.0% Medium  
  109 Convert Sorted List to Binary Search Tree      33.1% Medium  
  17 Letter Combinations of a Phone Number      33.1% Medium  
  213 House Robber II      33.3% Medium  
  201 Bitwise AND of Numbers Range      33.3% Medium  
  368 Largest Divisible Subset      33.5% Medium  
  372 Super Pow      33.5% Medium  
  117 Populating Next Right Pointers in Each Node II      33.6% Medium  
  299 Bulls and Cows      33.7% Medium  
  275 H-Index II      33.8% Medium  
  114 Flatten Binary Tree to Linked List      34.0% Medium  
  473 Matchsticks to Square      34.0% Medium  
  36 Valid Sudoku      34.4% Medium  
  90 Subsets II      34.6% Medium  
  376 Wiggle Subsequence      34.9% Medium  
  393 UTF-8 Validation      34.9% Medium  
  505 The Maze II      34.9% Medium  
  80 Remove Duplicates from Sorted Array II      35.2% Medium  
  284 Peeking Iterator      35.2% Medium  
  450 Delete Node in a BST      35.3% Medium  
  74 Search a 2D Matrix      35.4% Medium  
  73 Set Matrix Zeroes      35.4% Medium  
  375 Guess Number Higher or Lower II      35.5% Medium  
  331 Verify Preorder Serialization of a Binary Tree      35.5% Medium  
  277 Find the Celebrity      35.5% Medium  
  388 Longest Absolute File Path      35.5% Medium  
  395 Longest Substring with At Least K Repeating Characters      35.5% Medium  
  129 Sum Root to Leaf Numbers      35.5% Medium  
  244 Shortest Word Distance II      35.6% Medium  
  279 Perfect Squares      35.6% Medium  
  314 Binary Tree Vertical Order Traversal      36.0% Medium  
  285 Inorder Successor in BST      36.2% Medium  
  11 Container With Most Water      36.2% Medium  
  162 Find Peak Element      36.3% Medium  
  289 Game of Life      36.4% Medium  
  39 Combination Sum      36.6% Medium  
  116 Populating Next Right Pointers in Each Node      36.9% Medium  
  75 Sort Colors      37.0% Medium  
  261 Graph Valid Tree      37.0% Medium  
  474 Ones and Zeroes      37.1% Medium  
  313 Super Ugly Number      37.2% Medium  
  24 Swap Nodes in Pairs      37.4% Medium  
  64 Minimum Path Sum      37.5% Medium  
  48 Rotate Image      37.6% Medium  
  533 Lonely Pixel II   New   37.6% Medium  
  300 Longest Increasing Subsequence      37.6% Medium  
  102 Binary Tree Level Order Traversal      37.8% Medium  
  78 Subsets      37.8% Medium  
  240 Search a 2D Matrix II      37.9% Medium  
  215 Kth Largest Element in an Array      38.1% Medium  
  334 Increasing Triplet Subsequence      38.2% Medium  
  416 Partition Equal Subset Sum      38.3% Medium  
  77 Combinations      38.3% Medium  
  361 Bomb Enemy      38.3% Medium  
  59 Spiral Matrix II      38.4% Medium  
  253 Meeting Rooms II      38.6% Medium  
  247 Strobogrammatic Number II      38.8% Medium  
  380 Insert Delete GetRandom O(1)      38.8% Medium  
  491 Increasing Subsequences      38.9% Medium  
  153 Find Minimum in Rotated Sorted Array      39.0% Medium  
  255 Verify Preorder Sequence in Binary Search Tree      39.3% Medium  
  199 Binary Tree Right Side View      39.4% Medium  
  251 Flatten 2D Vector      39.5% Medium  
  390 Elimination Game      39.6% Medium  
  62 Unique Paths      39.7% Medium  
  524 Longest Word in Dictionary through Deleting      39.8% Medium  
  341 Flatten Nested List Iterator      39.8% Medium  
  173 Binary Search Tree Iterator      39.8% Medium  
  249 Group Shifted Strings      39.9% Medium  
  89 Gray Code      39.9% Medium  
  309 Best Time to Buy and Sell Stock with Cooldown      40.0% Medium  
  435 Non-overlapping Intervals      40.1% Medium  
  96 Unique Binary Search Trees      40.1% Medium  
  399 Evaluate Division      40.1% Medium  
  386 Lexicographical Numbers      40.1% Medium  
  298 Binary Tree Longest Consecutive Sequence      40.3% Medium  
  137 Single Number II      40.5% Medium  
  394 Decode String      40.7% Medium  
  250 Count Univalue Subtrees      40.9% Medium  
  424 Longest Repeating Character Replacement      40.9% Medium  
  259 3Sum Smaller      41.0% Medium  
  436 Find Right Interval      41.2% Medium  
  398 Random Pick Index      41.2% Medium  
  254 Factor Combinations      41.3% Medium  
  482 License Key Formatting      41.4% Medium  
  46 Permutations      41.4% Medium  
  449 Serialize and Deserialize BST      41.5% Medium  
  377 Combination Sum IV      41.6% Medium  
  490 The Maze      41.8% Medium  
  516 Longest Palindromic Subsequence      41.9% Medium  
  325 Maximum Size Subarray Sum Equals k      41.9% Medium  
  241 Different Ways to Add Parentheses      42.0% Medium  
  319 Bulb Switcher      42.0% Medium  
  337 House Robber III      42.1% Medium  
  287 Find the Duplicate Number      42.3% Medium  
  328 Odd Even Linked List      42.4% Medium  
  452 Minimum Number of Arrows to Burst Balloons      42.5% Medium  
  230 Kth Smallest Element in a BST      42.6% Medium  
  22 Generate Parentheses      42.7% Medium  
  318 Maximum Product of Word Lengths      42.8% Medium  
  216 Combination Sum III      42.9% Medium  
  423 Reconstruct Original Digits from English      43.0% Medium  
  351 Android Unlock Patterns      43.1% Medium  
  286 Walls and Gates      43.1% Medium  
  156 Binary Tree Upside Down      43.3% Medium  
  12 Integer to Roman      43.4% Medium  
  360 Sort Transformed Array      43.4% Medium  
  378 Kth Smallest Element in a Sorted Matrix      43.6% Medium  
  487 Max Consecutive Ones II      43.6% Medium  
  144 Binary Tree Preorder Traversal      43.6% Medium  
  421 Maximum XOR of Two Numbers in an Array      44.0% Medium  
  486 Predict the Winner      44.0% Medium  
  320 Generalized Abbreviation      44.1% Medium  
  392 Is Subsequence      44.2% Medium  
  494 Target Sum      44.3% Medium  
  94 Binary Tree Inorder Traversal      44.6% Medium  
  454 4Sum II      44.9% Medium  
  343 Integer Break      45.2% Medium  
  357 Count Numbers with Unique Digits      45.4% Medium  
  384 Shuffle an Array      45.4% Medium  
  348 Design Tic-Tac-Toe      45.6% Medium  
  481 Magical String      45.7% Medium  
  294 Flip Game II      45.7% Medium  
  477 Total Hamming Distance      45.9% Medium  
  445 Add Two Numbers II      46.0% Medium  
  503 Next Greater Element II      46.3% Medium  
  382 Linked List Random Node      46.3% Medium  
  498 Diagonal Traverse      46.3% Medium  
  347 Top K Frequent Elements      46.7% Medium  
  323 Number of Connected Components in an Undirected Graph      47.2% Medium  
  238 Product of Array Except Self      47.8% Medium  
  531 Lonely Pixel I   New   48.3% Medium  
  281 Zigzag Iterator      49.2% Medium  
  245 Shortest Word Distance III      49.6% Medium  
  439 Ternary Expression Parser      49.9% Medium  
  260 Single Number III      49.9% Medium  
  451 Sort Characters By Frequency      50.2% Medium  
  311 Sparse Matrix Multiplication      50.7% Medium  
  364 Nested List Weight Sum II      50.8% Medium  
  462 Minimum Moves to Equal Array Elements II      51.1% Medium  
  484 Find Permutation      51.5% Medium  
  495 Teemo Attacking      51.6% Medium  
  529 Minesweeper      51.6% Medium  
  526 Beautiful Arrangement      51.6% Medium  
  508 Most Frequent Subtree Sum      51.9% Medium  
  442 Find All Duplicates in an Array      52.2% Medium  
  515 Find Largest Value in Each Tree Row      52.8% Medium  
  362 Design Hit Counter      53.2% Medium  
  369 Plus One Linked List      53.6% Medium  
  370 Range Addition      54.5% Medium  
  413 Arithmetic Slices      54.7% Medium  
  406 Queue Reconstruction by Height      54.7% Medium  
  513 Find Bottom Left Tree Value      55.8% Medium  
  280 Wiggle Sort      55.8% Medium  
  366 Find Leaves of Binary Tree      58.0% Medium  
  338 Counting Bits      60.0% Medium  
  419 Battleships in a Board      60.5% Medium  
  535 Encode and Decode TinyURL   New   76.6% Medium
时间: 2024-10-21 15:37:49

过中等难度题目.0310的相关文章

校内友谊赛中等难度题目小记

Problem E : Easy Project Time Limit: 2 s Description Mia and her friends are preparing for the project that the professor has given them! They received a huge project, indeed, and this entire project can be divided into n tasks, numbered 1, 2, ..., n

用OC实现实现中等难度通讯录详解

用OC实现中等难度通讯录.需求:      1.定义联系人类Contact.实例变量:姓名(拼音,?字?大写).性别.电话号码. 住址.分组名称.年龄.?法:?定义初始化方法或便利构造器方法.显?联系人信息      2.在main.m中定义字典,分组管理所有联系人.分组名为26个大写的英文字母.      3.可以添加联系?对象,如果姓名或电话号码为空,添加失败.添加联系?到匹配的分组.      4.获取某个分组名称下所有联系人,并且按照姓名升序排列.      5.从通讯录中根据电话号码搜

【bfs】【中等难度】wikioi3055 青铜莲花池

3055 青铜莲花池 题目描述 Description 为了让奶牛们娱乐和锻炼,农夫约翰建造了一个美丽的池塘.这个长方形的池子被分成了M 行N 列个方格(1 ≤ M, N ≤ 30).一些格子是坚固得令人惊讶的莲花,还有一些格子是岩石,其余的只是美丽.纯净.湛蓝的水.贝西正在练习芭蕾舞,她站在一朵莲花上,想跳到另一朵莲 花上去,她只能从一朵莲花跳到另一朵莲花上,既不能跳到水里,也不能跳到岩石上.      贝西的舞步很像象棋中的马步:每次总是先横向移动M1 (1 ≤ M1 ≤ 30)格,再纵向移

【bfs】【中等难度】tyvj P1234 - bench与奔驰

P1234 - bench与奔驰 From zhangbh001    Normal (OI) 总时限:10s    内存限制:128MB    代码长度 限制:64KB P1234 - bench与奔驰 背景 Background 公园里有个人在练开奔驰 - -!,但是总是撞在bench上 (众人曰:狼来了,快跑啊!) 描述 Description 公园里的bench与奔驰都是无敌的,不会被撞坏.由于开奔驰的人比较"有特点",总是向上下左右四个方向开,而且只会在撞到椅子之后改变方向(

OC 通讯录 中等难度

Contact.h #import <Foundation/Foundation.h> @interface Contact : NSObject { NSString *_name; NSString *_gender; NSInteger _age; NSString *_address; NSString *_phoneNumber; NSString *_group; } - (void)setName:(NSString *)name; - (NSString *)name; - (

【快速幂+中等难度】Calculation 哈工大HITOJ2901

这些天好颓啊..都没有A题,只是各种等着填的坑..简直.. 这道题....其实是快速幂模板题..为了学习矩阵快速幂,顺手复习下快速幂... 哈工大的OJ其实还挺友好的.速度也快..赞一个.. 翻译 给你两个数A,B,要你求(1b + 2b + ... + ab) 这个式子mod a的结果.(b是奇数) 每行一组数据 (我以下的代码和解释都是用大写的A,B来代替原题小写a,b,代码中的小写a只是一个类似tmp的东西) 原题 http://acm.hit.edu.cn/hoj/problem/vie

poj 1062 昂贵的聘礼 Dijkstra算法,中等难度,,,一道让我累觉不爱的题目

昂贵的聘礼 Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 38474   Accepted: 11132 Description 年轻的探险家来到了一个印第安部落里.在那里他和酋长的女儿相爱了,于是便向酋长去求亲.酋长要他用10000个金币作为聘礼才答应把女儿嫁给他.探险家拿不出这么多金币,便请求酋长降低要求.酋长说:"嗯,如果你能够替我弄到大祭司的皮袄,我可以只要8000金币.如果你能够弄来他的水晶球,那么只要5000

【二分】【中等难度】noip模拟赛 聪哥的工资

聪哥的工资 (money/money.in/money.out) 时限1000ms 内存256MB 题目描述 lwher: 了体验劳苦大众的生活,聪哥在暑假参加了打零工的活动,这个活动分为n个工作日,每个工作日的工资为Vi.有m个结算工钱的时间,聪哥可以自由安排这些时间,也就是说什么时候拿钱,老板说的不算,聪哥才有发言权! (因为聪哥是土豪,他是老板的老板,你觉得老板敢给聪哥安排任务吗?所以聪哥的工作就是看心情去拿钱拿完就走人啦...) 聪哥不喜欢身上一次性有太多的钱,于是他想安排一下拿钱的时间

Leetcode题解 - 部分中等难度算法题解(56、957、825、781、1324、816)

957. N 天后的牢房 思路: 模拟变换,当N天结合后返回 => 当N非常大的时候,超时 => 一般N很大的时候,这种题目必然存在循环,所以记录找过的状态,一旦出现已经访问过的状态可立即跳出循环. class Solution: def prisonAfterNDays(self, cells, N: int): vis = [] while 1: if not N: return cells if cells in vis: ind = vis.index(cells) break tce