Closed huchenme closed 5 years ago
@huchenme This prompt is to make sure you are working with the desired workspace with the LeetCode files. Several users ask to have a way to configure where to save those files before.
Regarding to your problem. The root cause is that when the VS Code is reloaded, the execution is terminated. Let me think about how to resume the execution after the VS Code is reloaded.
I think there is a conflict between this configuration and the "output folder". "output folder" with absolute path may be a good choice. ๏ผๆ่ง่ฟไธช่ฎพ็ฝฎๅไนๅ็"output folder"้้กนๆ็น้ๅคๅๅฒ็ชไบ๏ผไฝ"output folder"ๅช่ฝ่ฎพ็ฝฎ็ธๅฏน่ทฏๅพ๏ผไน่ฎธ็จ็ปๅฏน่ทฏๅพ็"output folder"ๆฟไปฃ่ฟไธชๆฐ้้กนไผๅฅฝไธไบใๅฆๅค๏ผvscode reloadๆฏๅ ไธบ่ชๅจๆๅผไบๆไปถๅคน๏ผ้ฃๅฏไธๅฏไปฅๅชๆฏ่ฎพ็ฝฎ่ทฏๅพ๏ผ่ไธ่ชๅจๆๅผๆไปถๅคนๆฅ้ฟๅ reloadใ๏ผ
@ANGIANAPR
I can rename for better understanding about the real meaning of outputFolder
. But the question is, if you don't open that folder into the workspace, how will you manage the LeetCode files in that folder?
@jdneo as a user, I don't really need to manage or know the LeetCode folder. Before this issue I don't really know how this extension works, just simply click the tab icon, pick a problem and start coding. This extension was working without the popup showing.
@jdneo
Thatโs a problem. How about that...you can add a "Reveal in Explorer" shortcut in editor and manage the leetcode files in the system explorer rather than in the vscode explorer.
@huchenme Actually this is a really hard decision to make to tune the experience.
In your case that you don't care about the existence of LeetCode folder, while we do have other users who want to:
There must be some way to satisfy most of the users' preference, but I'm just thinking about it. Please feel free to let me know if you have some suggestions. Or PR will be much better.
Thanks.
@ANGIANAPR
That would be something worth consideration! I'm thinking that in the dropdown list, I can add a new item, like Just open the file in editor
, if this is chosen, the extension will only open that file.
@jdneo you could have a button / command to open LeetCode directory for those users while for most user, just use default location to save the files and they do not need to know there is such folder exists.
@all
Split this issue into two work items:
This issue will be closed. Thank you for the discussion and participation here, which are very inspiring. Please feel free to leave your comments into the separate issues if you have more ideas.
Thanks.
๐ Bug Report
Clicking "Code Now" will show prompt below
It should open question but click any of these options will not open question
Extension Output
Paste here the LeetCode extension log from output channel.
Guidance: Press
Ctrl+Shift+U
, and toggle the channel toLeetCode
.Click to expand
``` v12.6.0 Active Name Version Desc ---------------------------------------------------------------------------------------------------- โ solution.discuss 2019.02.03 Plugin to fetch most voted solution in discussions. โ company 2017.12.18 Plugin to query by company for free user. โ cache default Plugin to provide local cache. โ retry default Plugin to retry last failed request if autologin.enable is on. โ leetcode.cn 2018.11.25 Plugin to talk with leetcode-cn APIs. โ leetcode default Plugin to talk with leetcode APIs. Active Name Version Desc ---------------------------------------------------------------------------------------------------- โ solution.discuss 2019.02.03 Plugin to fetch most voted solution in discussions. โ company 2017.12.18 Plugin to query by company for free user. โ cache default Plugin to provide local cache. โ retry default Plugin to retry last failed request if autologin.enable is on. โ leetcode.cn 2018.11.25 Plugin to talk with leetcode-cn APIs. โ leetcode default Plugin to talk with leetcode APIs. Active Name Version Desc ---------------------------------------------------------------------------------------------------- โ solution.discuss 2019.02.03 Plugin to fetch most voted solution in discussions. โ company 2017.12.18 Plugin to query by company for free user. โ cache default Plugin to provide local cache. โ retry default Plugin to retry last failed request if autologin.enable is on. โ leetcode.cn 2018.11.25 Plugin to talk with leetcode-cn APIs. โ leetcode default Plugin to talk with leetcode APIs. Active Name Version Desc ---------------------------------------------------------------------------------------------------- โ solution.discuss 2019.02.03 Plugin to fetch most voted solution in discussions. โ company 2017.12.18 Plugin to query by company for free user. โ cache default Plugin to provide local cache. โ retry default Plugin to retry last failed request if autologin.enable is on. โ leetcode.cn 2018.11.25 Plugin to talk with leetcode-cn APIs. โ leetcode default Plugin to talk with leetcode APIs. Premium User Host ------------------------------------------------------------ โ huchenme https://leetcode.com ใ [1001] Grid Illumination Hard (33.60 %) ใ [ 999] Available Captures for Rook Easy (71.83 %) ใ [ 998] Maximum Binary Tree II Medium (62.91 %) ใ [ 997] Find the Town Judge Easy (47.92 %) ใ [ 996] Number of Squareful Arrays Hard (48.16 %) ใ [ 995] Minimum Number of K Consecutive Bit Flips Hard (51.72 %) ใ [ 994] Rotting Oranges Easy (46.52 %) ใ [ 993] Cousins in Binary Tree Easy (53.78 %) ใ [ 992] Subarrays with K Different Integers Hard (45.14 %) ใ [ 991] Broken Calculator Medium (38.53 %) ใ [ 990] Satisfiability of Equality Equations Medium (38.60 %) ใ [ 989] Add to Array-Form of Integer Easy (45.00 %) ใ [ 988] Smallest String Starting From Leaf Medium (52.66 %) ใ [ 987] Vertical Order Traversal of a Binary Tree Medium (33.26 %) ใ [ 986] Interval List Intersections Medium (61.15 %) ใ [ 985] Sum of Even Numbers After Queries Easy (68.35 %) ใ [ 984] String Without AAA or BBB Easy (32.29 %) ใ [ 983] Minimum Cost For Tickets Medium (58.18 %) ใ [ 982] Triples with Bitwise AND Equal To Zero Hard (53.43 %) ใ [ 981] Time Based Key-Value Store Medium (48.97 %) ใ [ 980] Unique Paths III Hard (73.06 %) ใ [ 979] Distribute Coins in Binary Tree Medium (65.87 %) ใ [ 978] Longest Turbulent Subarray Medium (45.88 %) ใ [ 977] Squares of a Sorted Array Easy (73.15 %) ใ [ 976] Largest Perimeter Triangle Easy (56.92 %) ใ [ 975] Odd Even Jump Hard (50.64 %) ใ [ 974] Subarray Sums Divisible by K Medium (41.39 %) ใ [ 973] K Closest Points to Origin Easy (66.38 %) ใ [ 972] Equal Rational Numbers Hard (39.73 %) ใ [ 971] Flip Binary Tree To Match Preorder Traversal Medium (42.28 %) ใ [ 970] Powerful Integers Easy (39.67 %) ใ [ 969] Pancake Sorting Medium (61.96 %) ใ [ 968] Binary Tree Cameras Hard (33.67 %) ใ [ 967] Numbers With Same Consecutive Differences Medium (35.90 %) ใ [ 966] Vowel Spellchecker Medium (39.34 %) ใ [ 965] Univalued Binary Tree Easy (67.67 %) ใ [ 964] Least Operators to Express Number Hard (39.91 %) ใ [ 963] Minimum Area Rectangle II Medium (41.95 %) ใ [ 962] Maximum Width Ramp Medium (40.31 %) ใ [ 961] N-Repeated Element in Size 2N Array Easy (73.45 %) ใ [ 960] Delete Columns to Make Sorted III Hard (52.00 %) ใ [ 959] Regions Cut By Slashes Medium (61.37 %) ใ [ 958] Check Completeness of a Binary Tree Medium (46.11 %) ใ [ 957] Prison Cells After N Days Medium (37.71 %) ใ [ 956] Tallest Billboard Hard (37.28 %) ใ [ 955] Delete Columns to Make Sorted II Medium (30.68 %) ใ [ 954] Array of Doubled Pairs Medium (33.96 %) ใ [ 953] Verifying an Alien Dictionary Easy (56.31 %) ใ [ 952] Largest Component Size by Common Factor Hard (25.13 %) ใ [ 951] Flip Equivalent Binary Trees Medium (64.96 %) ใ [ 950] Reveal Cards In Increasing Order Medium (71.15 %) ใ [ 949] Largest Time for Given Digits Easy (33.24 %) ใ [ 948] Bag of Tokens Medium (38.78 %) ใ [ 947] Most Stones Removed with Same Row or Column Medium (53.54 %) ใ [ 946] Validate Stack Sequences Medium (57.65 %) ใ [ 945] Minimum Increment to Make Array Unique Medium (42.18 %) ใ [ 944] Delete Columns to Make Sorted Easy (69.82 %) ใ [ 943] Find the Shortest Superstring Hard (34.77 %) ใ [ 942] DI String Match Easy (70.21 %) ใ [ 941] Valid Mountain Array Easy (34.66 %) ใ [ 940] Distinct Subsequences II Hard (37.61 %) ใ [ 939] Minimum Area Rectangle Medium (49.23 %) ใ [ 938] Range Sum of BST Medium (80.61 %) ใ [ 937] Reorder Log Files Easy (58.90 %) ใ [ 936] Stamping The Sequence Hard (35.47 %) ใ [ 935] Knight Dialer Medium (38.49 %) ใ [ 934] Shortest Bridge Medium (43.71 %) ใ [ 933] Number of Recent Calls Easy (68.97 %) ใ [ 932] Beautiful Array Medium (51.15 %) ใ [ 931] Minimum Falling Path Sum Medium (57.58 %) ใ [ 930] Binary Subarrays With Sum Medium (36.52 %) ใ [ 929] Unique Email Addresses Easy (76.15 %) ใ [ 928] Minimize Malware Spread II Hard (38.01 %) ใ [ 927] Three Equal Parts Hard (29.93 %) ใ [ 926] Flip String to Monotone Increasing Medium (48.19 %) ใ [ 925] Long Pressed Name Easy (44.34 %) ใ [ 924] Minimize Malware Spread Hard (38.77 %) ใ [ 923] 3Sum With Multiplicity Medium (32.09 %) ใ [ 922] Sort Array By Parity II Easy (66.70 %) ใ [ 921] Minimum Add to Make Parentheses Valid Medium (69.51 %) ใ [ 920] Number of Music Playlists Hard (42.73 %) ใ [ 919] Complete Binary Tree Inserter Medium (54.53 %) ใ [ 918] Maximum Sum Circular Subarray Medium (29.63 %) ใ [ 917] Reverse Only Letters Easy (55.91 %) ใ [ 916] Word Subsets Medium (44.07 %) ใ [ 915] Partition Array into Disjoint Intervals Medium (41.91 %) ใ [ 914] X of a Kind in a Deck of Cards Easy (34.51 %) ใ [ 913] Cat and Mouse Hard (26.89 %) ใ [ 911] Online Election Medium (44.26 %) ใ [ 910] Smallest Range II Medium (22.55 %) ใ [ 909] Snakes and Ladders Medium (30.10 %) ใ [ 908] Smallest Range I Easy (64.40 %) ใ [ 907] Sum of Subarray Minimums Medium (25.29 %) ใ [ 906] Super Palindromes Hard (29.68 %) ใ [ 905] Sort Array By Parity Easy (72.13 %) ใ [ 904] Fruit Into Baskets Medium (40.87 %) ใ [ 903] Valid Permutations for DI Sequence Hard (41.89 %) ใ [ 902] Numbers At Most N Given Digit Set Hard (27.57 %) ใ [ 901] Online Stock Span Medium (46.68 %) ใ [ 900] RLE Iterator Medium (48.65 %) ใ [ 899] Orderly Queue Hard (46.26 %) ใ [ 898] Bitwise ORs of Subarrays Medium (32.92 %) ใ [ 897] Increasing Order Search Tree Easy (62.86 %) ใ [ 896] Monotonic Array Easy (54.55 %) ใ [ 895] Maximum Frequency Stack Hard (52.33 %) ใ [ 894] All Possible Full Binary Trees Medium (69.27 %) ใ [ 893] Groups of Special-Equivalent Strings Easy (61.79 %) ใ [ 892] Surface Area of 3D Shapes Easy (55.52 %) ใ [ 891] Sum of Subsequence Widths Hard (28.14 %) ใ [ 890] Find and Replace Pattern Medium (70.13 %) ใ [ 889] Construct Binary Tree from Preorder and Postorder Traversal Medium (57.87 %) ใ [ 888] Fair Candy Swap Easy (55.93 %) ใ [ 887] Super Egg Drop Hard (24.66 %) ใ [ 886] Possible Bipartition Medium (40.11 %) ใ [ 885] Spiral Matrix III Medium (63.48 %) ใ [ 884] Uncommon Words from Two Sentences Easy (60.59 %) ใ [ 883] Projection Area of 3D Shapes Easy (65.26 %) ใ [ 882] Reachable Nodes In Subdivided Graph Hard (36.60 %) ใ [ 881] Boats to Save People Medium (42.80 %) ใ [ 880] Decoded String at Index Medium (23.03 %) ใ [ 879] Profitable Schemes Hard (35.56 %) ใ [ 878] Nth Magical Number Hard (24.58 %) ใ [ 877] Stone Game Medium (60.46 %) ใ [ 876] Middle of the Linked List Easy (63.29 %) ใ [ 875] Koko Eating Bananas Medium (44.39 %) ใ [ 874] Walking Robot Simulation Easy (30.73 %) ใ [ 873] Length of Longest Fibonacci Subsequence Medium (45.52 %) ใ [ 872] Leaf-Similar Trees Easy (62.16 %) ใ [ 871] Minimum Number of Refueling Stops Hard (28.09 %) ใ [ 870] Advantage Shuffle Medium (41.50 %) ใ [ 869] Reordered Power of 2 Medium (49.90 %) ใ [ 868] Binary Gap Easy (59.27 %) ใ [ 867] Transpose Matrix Easy (63.69 %) ใ [ 866] Prime Palindrome Medium (19.14 %) ใ [ 865] Smallest Subtree with all the Deepest Nodes Medium (54.29 %) ใ [ 864] Shortest Path to Get All Keys Hard (35.27 %) ใ [ 863] All Nodes Distance K in Binary Tree Medium (45.50 %) ใ [ 862] Shortest Subarray with Sum at Least K Hard (21.66 %) ใ [ 861] Score After Flipping Matrix Medium (68.68 %) ใ [ 860] Lemonade Change Easy (50.32 %) ใ [ 859] Buddy Strings Easy (27.51 %) ใ [ 858] Mirror Reflection Medium (51.36 %) ใ [ 857] Minimum Cost to Hire K Workers Hard (46.74 %) ใ [ 856] Score of Parentheses Medium (55.11 %) ใ [ 855] Exam Room Medium (37.08 %) ใ [ 854] K-Similar Strings Hard (32.46 %) ใ [ 853] Car Fleet Medium (38.37 %) ใ [ 852] Peak Index in a Mountain Array Easy (69.02 %) ใ [ 851] Loud and Rich Medium (46.61 %) ใ [ 850] Rectangle Area II Hard (43.63 %) ใ [ 849] Maximize Distance to Closest Person Easy (40.44 %) ใ [ 848] Shifting Letters Medium (39.45 %) ใ [ 847] Shortest Path Visiting All Nodes Hard (45.44 %) ใ [ 846] Hand of Straights Medium (48.38 %) ใ [ 845] Longest Mountain in Array Medium (33.79 %) ใ [ 844] Backspace String Compare Easy (45.23 %) ใ [ 843] Guess the Word Hard (42.13 %) ใ [ 842] Split Array into Fibonacci Sequence Medium (34.60 %) ใ [ 841] Keys and Rooms Medium (59.18 %) ใ [ 840] Magic Squares In Grid Easy (35.17 %) ใ [ 839] Similar String Groups Hard (33.74 %) ใ [ 838] Push Dominoes Medium (42.92 %) ใ [ 837] New 21 Game Medium (29.94 %) ใ [ 836] Rectangle Overlap Easy (45.65 %) ใ [ 835] Image Overlap Medium (50.56 %) ใ [ 834] Sum of Distances in Tree Hard (38.34 %) ใ [ 833] Find And Replace in String Medium (44.62 %) ใ [ 832] Flipping an Image Easy (71.46 %) ใ [ 831] Masking Personal Information Medium (41.55 %) ใ [ 830] Positions of Large Groups Easy (47.43 %) ใ [ 829] Consecutive Numbers Sum Hard (32.20 %) ใ [ 828] Unique Letter String Hard (38.25 %) ใ [ 827] Making A Large Island Hard (42.36 %) ใ [ 826] Most Profit Assigning Work Medium (34.75 %) ใ [ 825] Friends Of Appropriate Ages Medium (35.21 %) ใ [ 824] Goat Latin Easy (56.84 %) ใ [ 823] Binary Trees With Factors Medium (31.61 %) ใ [ 822] Card Flipping Game Medium (39.72 %) ใ [ 821] Shortest Distance to a Character Easy (62.71 %) ใ [ 820] Short Encoding of Words Medium (46.09 %) ใ [ 819] Most Common Word Easy (41.70 %) ใ [ 818] Race Car Hard (33.99 %) ใ [ 817] Linked List Components Medium (53.82 %) ใ [ 816] Ambiguous Coordinates Medium (43.41 %) ใ [ 815] Bus Routes Hard (38.88 %) ใ [ 814] Binary Tree Pruning Medium (69.90 %) ใ [ 813] Largest Sum of Averages Medium (43.83 %) ใ [ 812] Largest Triangle Area Easy (55.00 %) ใ [ 811] Subdomain Visit Count Easy (63.83 %) ใ [ 810] Chalkboard XOR Game Hard (43.16 %) ใ [ 809] Expressive Words Medium (42.19 %) ใ [ 808] Soup Servings Medium (35.88 %) ใ [ 807] Max Increase to Keep City Skyline Medium (80.99 %) ใ [ 806] Number of Lines To Write String Easy (62.49 %) ใ [ 805] Split Array With Same Average Hard (23.71 %) ใ [ 804] Unique Morse Code Words Easy (74.01 %) ใ [ 803] Bricks Falling When Hit Hard (27.72 %) ใ [ 802] Find Eventual Safe States Medium (42.57 %) ใ [ 801] Minimum Swaps To Make Sequences Increasing Medium (33.95 %) ใ [ 799] Champagne Tower Medium (33.40 %) ใ [ 798] Smallest Rotation with Highest Score Hard (38.70 %) ใ [ 797] All Paths From Source to Target Medium (69.51 %) ใ [ 796] Rotate String Easy (48.73 %) ใ [ 795] Number of Subarrays with Bounded Maximum Medium (42.48 %) ใ [ 794] Valid Tic-Tac-Toe State Medium (28.82 %) ใ [ 793] Preimage Size of Factorial Zeroes Function Hard (39.33 %) ใ [ 792] Number of Matching Subsequences Medium (41.51 %) ใ [ 791] Custom Sort String Medium (60.92 %) ใ [ 790] Domino and Tromino Tiling Medium (34.97 %) ใ [ 789] Escape The Ghosts Medium (54.85 %) ใ [ 788] Rotated Digits Easy (53.09 %) ใ [ 787] Cheapest Flights Within K Stops Medium (33.97 %) ใ [ 786] K-th Smallest Prime Fraction Hard (38.71 %) ใ [ 785] Is Graph Bipartite? Medium (42.18 %) ใ [ 784] Letter Case Permutation Easy (55.29 %) ใ [ 783] Minimum Distance Between BST Nodes Easy (49.90 %) ใ [ 782] Transform to Chessboard Hard (39.37 %) ใ [ 781] Rabbits in Forest Medium (50.69 %) ใ [ 780] Reaching Points Hard (27.05 %) ใ [ 779] K-th Symbol in Grammar Medium (37.79 %) ใ [ 778] Swim in Rising Water Hard (46.78 %) ใ [ 777] Swap Adjacent in LR String Medium (32.77 %) ใ [ 775] Global and Local Inversions Medium (37.83 %) ใ [ 773] Sliding Puzzle Hard (50.46 %) ใ [ 771] Jewels and Stones Easy (82.73 %) ใ [ 770] Basic Calculator IV Hard (44.47 %) ใ [ 769] Max Chunks To Make Sorted Medium (50.98 %) ใ [ 768] Max Chunks To Make Sorted II Hard (45.09 %) ใ [ 767] Reorganize String Medium (41.12 %) ใ [ 766] Toeplitz Matrix Easy (61.15 %) ใ [ 765] Couples Holding Hands Hard (50.79 %) ใ [ 764] Largest Plus Sign Medium (42.64 %) ใ [ 763] Partition Labels Medium (68.34 %) ใ [ 762] Prime Number of Set Bits in Binary Representation Easy (57.87 %) ใ [ 761] Special Binary String Hard (49.61 %) ใ [ 757] Set Intersection Size At Least Two Hard (36.25 %) ใ [ 756] Pyramid Transition Matrix Medium (50.36 %) ใ [ 754] Reach a Number Easy (31.59 %) ใ [ 753] Cracking the Safe Hard (44.71 %) ใ [ 752] Open the Lock Medium (44.44 %) ใ [ 749] Contain Virus Hard (40.41 %) ใ [ 748] Shortest Completing Word Easy (53.39 %) ใ [ 747] Largest Number At Least Twice of Others Easy (40.24 %) ใ [ 746] Min Cost Climbing Stairs Easy (45.93 %) ใ [ 745] Prefix and Suffix Search Hard (29.38 %) ใ [ 744] Find Smallest Letter Greater Than Target Easy (43.55 %) ใ [ 743] Network Delay Time Medium (40.07 %) ใ [ 741] Cherry Pickup Hard (27.82 %) ใ [ 740] Delete and Earn Medium (45.04 %) ใ [ 739] Daily Temperatures Medium (59.02 %) ใ [ 738] Monotone Increasing Digits Medium (41.24 %) ใ [ 736] Parse Lisp Expression Hard (43.33 %) ใ [ 735] Asteroid Collision Medium (37.73 %) ใ [ 733] Flood Fill Easy (49.81 %) ใ [ 732] My Calendar III Hard (53.39 %) ใ [ 731] My Calendar II Medium (43.03 %) ใ [ 730] Count Different Palindromic Subsequences Hard (37.67 %) ใ [ 729] My Calendar I Medium (46.35 %) ใ [ 728] Self Dividing Numbers Easy (69.01 %) ใ [ 726] Number of Atoms Hard (44.05 %) ใ [ 725] Split Linked List in Parts Medium (48.56 %) ใ [ 724] Find Pivot Index Easy (40.52 %) ใ [ 722] Remove Comments Medium (30.31 %) ใ [ 721] Accounts Merge Medium (38.80 %) ใ [ 720] Longest Word in Dictionary Easy (43.70 %) ใ [ 719] Find K-th Smallest Pair Distance Hard (28.57 %) ใ [ 718] Maximum Length of Repeated Subarray Medium (44.83 %) ใ [ 717] 1-bit and 2-bit Characters Easy (48.88 %) ใ [ 715] Range Module Hard (34.26 %) ใ [ 714] Best Time to Buy and Sell Stock with Transaction Fee Medium (49.45 %) ใ [ 713] Subarray Product Less Than K Medium (35.83 %) ใ [ 712] Minimum ASCII Delete Sum for Two Strings Medium (53.32 %) ใ [ 710] Random Pick with Blacklist Hard (30.59 %) ใ [ 709] To Lower Case Easy (76.23 %) ใ [ 707] Design Linked List Easy (23.04 %) ใ [ 706] Design HashMap Easy (54.35 %) ใ [ 705] Design HashSet Easy (50.45 %) ใ [ 704] Binary Search Easy (45.16 %) ใ [ 703] Kth Largest Element in a Stream Easy (44.84 %) ใ [ 701] Insert into a Binary Search Tree Medium (73.71 %) ใ [ 700] Search in a Binary Search Tree Easy (66.77 %) ใ [ 699] Falling Squares Hard (39.50 %) ใ [ 698] Partition to K Equal Sum Subsets Medium (41.22 %) ใ [ 697] Degree of an Array Easy (49.14 %) ใ [ 696] Count Binary Substrings Easy (52.51 %) ใ [ 695] Max Area of Island Medium (55.93 %) ใ [ 693] Binary Number with Alternating Bits Easy (57.53 %) ใ [ 692] Top K Frequent Words Medium (44.78 %) ใ [ 691] Stickers to Spell Word Hard (37.45 %) ใ [ 690] Employee Importance Easy (53.14 %) ใ [ 689] Maximum Sum of 3 Non-Overlapping Subarrays Hard (43.68 %) ใ [ 688] Knight Probability in Chessboard Medium (42.84 %) ใ [ 687] Longest Univalue Path Easy (33.36 %) ใ [ 686] Repeated String Match Easy (31.31 %) ใ [ 685] Redundant Connection II Hard (30.04 %) ใ [ 684] Redundant Connection Medium (50.26 %) ใ [ 682] Baseball Game Easy (60.24 %) ใ [ 680] Valid Palindrome II Easy (33.75 %) ใ [ 679] 24 Game Hard (41.56 %) ใ [ 678] Valid Parenthesis String Medium (32.03 %) ใ [ 677] Map Sum Pairs Medium (51.22 %) ใ [ 676] Implement Magic Dictionary Medium (50.94 %) ใ [ 675] Cut Off Trees for Golf Event Hard (30.01 %) ใ [ 674] Longest Continuous Increasing Subsequence Easy (43.77 %) ใ [ 673] Number of Longest Increasing Subsequence Medium (33.12 %) ใ [ 672] Bulb Switcher II Medium (49.42 %) ใ [ 671] Second Minimum Node In a Binary Tree Easy (43.36 %) ใ [ 670] Maximum Swap Medium (39.27 %) ใ [ 669] Trim a Binary Search Tree Easy (59.74 %) ใ [ 668] Kth Smallest Number in Multiplication Table Hard (40.93 %) ใ [ 667] Beautiful Arrangement II Medium (51.47 %) ใ [ 665] Non-decreasing Array Easy (19.51 %) ใ [ 664] Strange Printer Hard (35.45 %) ใ [ 662] Maximum Width of Binary Tree Medium (39.82 %) ใ [ 661] Image Smoother Easy (47.89 %) ใ [ 659] Split Array into Consecutive Subsequences Medium (39.79 %) ใ [ 658] Find K Closest Elements Medium (37.21 %) ใ [ 657] Robot Return to Origin Easy (70.76 %) ใ [ 655] Print Binary Tree Medium (51.03 %) ใ [ 654] Maximum Binary Tree Medium (75.06 %) ใ [ 653] Two Sum IV - Input is a BST Easy (51.82 %) ใ [ 652] Find Duplicate Subtrees Medium (44.17 %) ใ [ 650] 2 Keys Keyboard Medium (46.08 %) ใ [ 649] Dota2 Senate Medium (37.14 %) ใ [ 648] Replace Words Medium (50.71 %) ใ [ 647] Palindromic Substrings Medium (55.80 %) ใ [ 646] Maximum Length of Pair Chain Medium (47.95 %) ใ [ 645] Set Mismatch Easy (40.41 %) ใ [ 643] Maximum Average Subarray I Easy (39.02 %) ใ [ 641] Design Circular Deque Medium (48.75 %) ใ [ 640] Solve the Equation Medium (39.88 %) ใ [ 639] Decode Ways II Hard (24.67 %) ใ [ 638] Shopping Offers Medium (47.83 %) ใ [ 637] Average of Levels in Binary Tree Easy (58.00 %) ใ [ 636] Exclusive Time of Functions Medium (47.95 %) ใ [ 633] Sum of Square Numbers Easy (32.80 %) ใ [ 632] Smallest Range Hard (46.09 %) ใ [ 630] Course Schedule III Hard (30.87 %) ใ [ 629] K Inverse Pairs Array Hard (28.73 %) ใ [ 628] Maximum Product of Three Numbers Easy (45.55 %) ใ [ 627] Swap Salary Easy (67.55 %) ใ [ 626] Exchange Seats Medium (52.96 %) ใ [ 623] Add One Row to Tree Medium (46.90 %) ใ [ 622] Design Circular Queue Medium (38.17 %) ใ [ 621] Task Scheduler Medium (44.34 %) ใ [ 620] Not Boring Movies Easy (61.29 %) ใ [ 617] Merge Two Binary Trees Easy (69.18 %) ใ [ 611] Valid Triangle Number Medium (44.37 %) ใ [ 609] Find Duplicate File in System Medium (54.07 %) ใ [ 606] Construct String from Binary Tree Easy (51.05 %) ใ [ 605] Can Place Flowers Easy (30.68 %) ใ [ 601] Human Traffic of Stadium Hard (35.47 %) ใ [ 600] Non-negative Integers without Consecutive Ones Hard (32.42 %) ใ [ 599] Minimum Index Sum of Two Lists Easy (47.24 %) ใ [ 598] Range Addition II Easy (48.44 %) ใ [ 596] Classes More Than 5 Students Easy (34.75 %) ใ [ 595] Big Countries Easy (73.11 %) ใ [ 594] Longest Harmonious Subsequence Easy (43.02 %) ใ [ 593] Valid Square Medium (40.13 %) ใ [ 592] Fraction Addition and Subtraction Medium (46.55 %) ใ [ 591] Tag Validator Hard (31.76 %) ใ [ 590] N-ary Tree Postorder Traversal Easy (66.10 %) ใ [ 589] N-ary Tree Preorder Traversal Easy (66.11 %) ใ [ 587] Erect the Fence Hard (34.10 %) ใ [ 583] Delete Operation for Two Strings Medium (44.23 %) ใ [ 581] Shortest Unsorted Continuous Subarray Easy (29.59 %) ใ [ 576] Out of Boundary Paths Medium (31.30 %) ใ [ 575] Distribute Candies Easy (59.15 %) ใ [ 572] Subtree of Another Tree Easy (41.25 %) ใ [ 567] Permutation in String Medium (37.71 %) ใ [ 566] Reshape the Matrix Easy (58.45 %) ใ [ 565] Array Nesting Medium (51.67 %) ใ [ 564] Find the Closest Palindrome Hard (18.12 %) ใ [ 563] Binary Tree Tilt Easy (46.89 %) ใ [ 561] Array Partition I Easy (68.31 %) ใ [ 560] Subarray Sum Equals K Medium (41.59 %) ใ [ 559] Maximum Depth of N-ary Tree Easy (64.46 %) ใ [ 558] Quad Tree Intersection Easy (39.63 %) ใ [ 557] Reverse Words in a String III Easy (63.11 %) ใ [ 556] Next Greater Element III Medium (29.73 %) ใ [ 554] Brick Wall Medium (47.33 %) ใ [ 553] Optimal Division Medium (55.05 %) ใ [ 552] Student Attendance Record II Hard (32.33 %) ใ [ 551] Student Attendance Record I Easy (45.15 %) ใ [ 547] Friend Circles Medium (52.51 %) ใ [ 546] Remove Boxes Hard (37.44 %) ใ [ 543] Diameter of Binary Tree Easy (46.21 %) ใ [ 542] 01 Matrix Medium (34.68 %) ใ [ 541] Reverse String II Easy (45.03 %) ใ [ 540] Single Element in a Sorted Array Medium (57.03 %) ใ [ 539] Minimum Time Difference Medium (47.25 %) ใ [ 538] Convert BST to Greater Tree Easy (49.94 %) ใ [ 537] Complex Number Multiplication Medium (65.01 %) ใ [ 535] Encode and Decode TinyURL Medium (75.83 %) ใ [ 532] K-diff Pairs in an Array Easy (29.34 %) ใ [ 530] Minimum Absolute Difference in BST Easy (49.79 %) ใ [ 529] Minesweeper Medium (51.78 %) ใ [ 528] Random Pick with Weight Medium (42.49 %) ใ [ 526] Beautiful Arrangement Medium (53.94 %) ใ [ 525] Contiguous Array Medium (42.34 %) ใ [ 524] Longest Word in Dictionary through Deleting Medium (45.00 %) ใ [ 523] Continuous Subarray Sum Medium (24.13 %) ใ [ 522] Longest Uncommon Subsequence II Medium (32.68 %) ใ [ 521] Longest Uncommon Subsequence I Easy (56.12 %) ใ [ 520] Detect Capital Easy (52.23 %) ใ [ 519] Random Flip Matrix Medium (32.41 %) ใ [ 518] Coin Change 2 Medium (41.41 %) ใ [ 517] Super Washing Machines Hard (36.74 %) ใ [ 516] Longest Palindromic Subsequence Medium (45.40 %) ใ [ 515] Find Largest Value in Each Tree Row Medium (57.22 %) ใ [ 514] Freedom Trail Hard (40.28 %) ใ [ 513] Find Bottom Left Tree Value Medium (57.89 %) ใ [ 509] Fibonacci Number Easy (66.52 %) ใ [ 508] Most Frequent Subtree Sum Medium (53.83 %) ใ [ 507] Perfect Number Easy (33.53 %) ใ [ 506] Relative Ranks Easy (47.91 %) ใ [ 504] Base 7 Easy (44.57 %) ใ [ 503] Next Greater Element II Medium (50.10 %) ใ [ 502] IPO Hard (37.32 %) ใ [ 501] Find Mode in Binary Search Tree Easy (38.88 %) ใ [ 500] Keyboard Row Easy (61.66 %) ใ [ 498] Diagonal Traverse Medium (44.98 %) ใ [ 497] Random Point in Non-overlapping Rectangles Medium (35.17 %) ใ [ 496] Next Greater Element I Easy (58.70 %) ใ [ 495] Teemo Attacking Medium (51.96 %) ใ [ 494] Target Sum Medium (44.82 %) ใ [ 493] Reverse Pairs Hard (22.59 %) ใ [ 492] Construct the Rectangle Easy (48.39 %) ใ [ 491] Increasing Subsequences Medium (41.40 %) ใ [ 488] Zuma Game Hard (37.58 %) ใ [ 486] Predict the Winner Medium (46.65 %) ใ [ 485] Max Consecutive Ones Easy (54.46 %) ใ [ 483] Smallest Good Base Hard (34.04 %) ใ [ 482] License Key Formatting Easy (40.24 %) ใ [ 481] Magical String Medium (45.74 %) ใ [ 480] Sliding Window Median Hard (31.50 %) ใ [ 479] Largest Palindrome Product Hard (27.11 %) ใ [ 478] Generate Random Point in a Circle Medium (35.98 %) ใ [ 477] Total Hamming Distance Medium (48.55 %) ใ [ 476] Number Complement Easy (62.04 %) ใ [ 475] Heaters Easy (31.08 %) ใ [ 474] Ones and Zeroes Medium (39.29 %) ใ [ 473] Matchsticks to Square Medium (35.72 %) ใ [ 472] Concatenated Words Hard (33.30 %) ใ [ 470] Implement Rand10() Using Rand7() Medium (44.26 %) ใ [ 468] Validate IP Address Medium (20.92 %) ใ [ 467] Unique Substrings in Wraparound String Medium (33.41 %) ใ [ 466] Count The Repetitions Hard (27.39 %) ใ [ 464] Can I Win Medium (26.85 %) ใ [ 463] Island Perimeter Easy (60.27 %) ใ [ 462] Minimum Moves to Equal Array Elements II Medium (52.32 %) ใ [ 461] Hamming Distance Easy (70.01 %) ใ [ 460] LFU Cache Hard (28.06 %) ใ [ 459] Repeated Substring Pattern Easy (39.40 %) ใ [ 458] Poor Pigs Hard (44.89 %) ใ [ 457] Circular Array Loop Medium (27.32 %) ใ [ 456] 132 Pattern Medium (27.42 %) ใ [ 455] Assign Cookies Easy (48.05 %) ใ [ 454] 4Sum II Medium (49.82 %) ใ [ 453] Minimum Moves to Equal Array Elements Easy (49.00 %) ใ [ 452] Minimum Number of Arrows to Burst Balloons Medium (45.70 %) ใ [ 451] Sort Characters By Frequency Medium (54.99 %) ใ [ 450] Delete Node in a BST Medium (39.22 %) ใ [ 449] Serialize and Deserialize BST Medium (45.82 %) ใ [ 448] Find All Numbers Disappeared in an Array Easy (52.72 %) ใ [ 447] Number of Boomerangs Easy (49.16 %) ใ [ 446] Arithmetic Slices II - Subsequence Hard (29.86 %) ใ [ 445] Add Two Numbers II Medium (49.19 %) ใ [ 443] String Compression Easy (36.81 %) ใ [ 442] Find All Duplicates in an Array Medium (59.93 %) ใ [ 441] Arranging Coins Easy (37.46 %) ใ [ 440] K-th Smallest in Lexicographical Order Hard (26.18 %) ใ [ 438] Find All Anagrams in a String Easy (36.37 %) ใ [ 437] Path Sum III Easy (41.95 %) ใ [ 436] Find Right Interval Medium (42.30 %) ใ [ 435] Non-overlapping Intervals Medium (41.35 %) ใ [ 434] Number of Segments in a String Easy (36.65 %) ใ [ 433] Minimum Genetic Mutation Medium (37.41 %) ใ [ 432] All O`one Data Structure Hard (28.91 %) ใ [ 430] Flatten a Multilevel Doubly Linked List Medium (40.33 %) ใ [ 429] N-ary Tree Level Order Traversal Easy (58.34 %) ใ [ 427] Construct Quad Tree Easy (54.54 %) ใ [ 424] Longest Repeating Character Replacement Medium (43.54 %) ใ [ 423] Reconstruct Original Digits from English Medium (45.38 %) ใ [ 421] Maximum XOR of Two Numbers in an Array Medium (50.43 %) ใ [ 420] Strong Password Checker Hard (17.99 %) ใ [ 419] Battleships in a Board Medium (65.10 %) ใ [ 417] Pacific Atlantic Water Flow Medium (36.67 %) ใ [ 416] Partition Equal Subset Sum Medium (39.86 %) ใ [ 415] Add Strings Easy (43.02 %) ใ [ 414] Third Maximum Number Easy (28.64 %) ใ [ 413] Arithmetic Slices Medium (55.27 %) ใ [ 412] Fizz Buzz Easy (58.85 %) ใ [ 410] Split Array Largest Sum Hard (41.66 %) ใ [ 409] Longest Palindrome Easy (47.43 %) ใ [ 407] Trapping Rain Water II Hard (38.82 %) ใ [ 406] Queue Reconstruction by Height Medium (58.89 %) ใ [ 405] Convert a Number to Hexadecimal Easy (41.68 %) ใ [ 404] Sum of Left Leaves Easy (48.70 %) ใ [ 403] Frog Jump Hard (35.39 %) ใ [ 402] Remove K Digits Medium (26.15 %) ใ [ 401] Binary Watch Easy (45.05 %) ใ [ 400] Nth Digit Easy (30.09 %) ใ [ 399] Evaluate Division Medium (46.60 %) ใ [ 398] Random Pick Index Medium (48.85 %) ใ [ 397] Integer Replacement Medium (31.06 %) ใ [ 396] Rotate Function Medium (34.90 %) ใ [ 395] Longest Substring with At Least K Repeating Characters Medium (37.85 %) ใ [ 394] Decode String Medium (43.83 %) ใ [ 393] UTF-8 Validation Medium (35.46 %) ใ [ 392] Is Subsequence Medium (46.19 %) ใ [ 391] Perfect Rectangle Hard (27.96 %) ใ [ 390] Elimination Game Medium (43.31 %) ใ [ 389] Find the Difference Easy (52.69 %) ใ [ 388] Longest Absolute File Path Medium (38.70 %) ใ [ 387] First Unique Character in a String Easy (49.15 %) ใ [ 386] Lexicographical Numbers Medium (44.79 %) ใ [ 385] Mini Parser Medium (31.55 %) ใ [ 384] Shuffle an Array Medium (49.44 %) ใ [ 383] Ransom Note Easy (49.25 %) ใ [ 382] Linked List Random Node Medium (48.75 %) ใ [ 381] Insert Delete GetRandom O(1) - Duplicates allowed Hard (31.45 %) ใ [ 380] Insert Delete GetRandom O(1) Medium (41.97 %) ใ [ 378] Kth Smallest Element in a Sorted Matrix Medium (48.38 %) ใ [ 377] Combination Sum IV Medium (43.72 %) ใ [ 376] Wiggle Subsequence Medium (36.89 %) ใ [ 375] Guess Number Higher or Lower II Medium (37.20 %) ใ [ 374] Guess Number Higher or Lower Easy (38.71 %) ใ [ 373] Find K Pairs with Smallest Sums Medium (33.19 %) ใ [ 372] Super Pow Medium (35.44 %) ใ [ 371] Sum of Two Integers Easy (51.22 %) ใ [ 368] Largest Divisible Subset Medium (34.48 %) ใ [ 367] Valid Perfect Square Easy (39.38 %) ใ [ 365] Water and Jug Problem Medium (28.72 %) ใ [ 363] Max Sum of Rectangle No Larger Than K Hard (34.74 %) ใ [ 357] Count Numbers with Unique Digits Medium (46.61 %) ใ [ 355] Design Twitter Medium (26.87 %) ใ [ 354] Russian Doll Envelopes Hard (33.57 %) ใ [ 352] Data Stream as Disjoint Intervals Hard (42.90 %) ใ [ 350] Intersection of Two Arrays II Easy (46.74 %) ใ [ 349] Intersection of Two Arrays Easy (52.89 %) ใ [ 347] Top K Frequent Elements Medium (53.43 %) ใ [ 345] Reverse Vowels of a String Easy (40.84 %) ใ [ 344] Reverse String Easy (62.75 %) ใ [ 343] Integer Break Medium (47.31 %) ใ [ 342] Power of Four Easy (39.97 %) ใ [ 341] Flatten Nested List Iterator Medium (46.77 %) ใ [ 338] Counting Bits Medium (63.97 %) ใ [ 337] House Robber III Medium (47.32 %) ใ [ 336] Palindrome Pairs Hard (30.14 %) ใ [ 335] Self Crossing Hard (26.87 %) ใ [ 334] Increasing Triplet Subsequence Medium (39.44 %) ใ [ 332] Reconstruct Itinerary Medium (30.56 %) ใ [ 331] Verify Preorder Serialization of a Binary Tree Medium (38.16 %) ใ [ 330] Patching Array Hard (33.17 %) ใ [ 329] Longest Increasing Path in a Matrix Hard (39.24 %) ใ [ 328] Odd Even Linked List Medium (48.11 %) ใ [ 327] Count of Range Sum Hard (32.02 %) ใ [ 326] Power of Three Easy (41.38 %) ใ [ 324] Wiggle Sort II Medium (27.49 %) ใ [ 322] Coin Change Medium (29.11 %) ใ [ 321] Create Maximum Number Hard (25.16 %) ใ [ 319] Bulb Switcher Medium (43.63 %) ใ [ 318] Maximum Product of Word Lengths Medium (47.82 %) ใ [ 316] Remove Duplicate Letters Hard (31.92 %) ใ [ 315] Count of Smaller Numbers After Self Hard (37.28 %) ใ [ 313] Super Ugly Number Medium (40.55 %) ใ [ 312] Burst Balloons Hard (46.24 %) ใ [ 310] Minimum Height Trees Medium (29.75 %) ใ [ 309] Best Time to Buy and Sell Stock with Cooldown Medium (43.45 %) ใ [ 307] Range Sum Query - Mutable Medium (27.47 %) ใ [ 306] Additive Number Medium (28.15 %) ใ [ 304] Range Sum Query 2D - Immutable Medium (31.18 %) ใ [ 303] Range Sum Query - Immutable Easy (36.63 %) ใ [ 301] Remove Invalid Parentheses Hard (38.39 %) ใ [ 300] Longest Increasing Subsequence Medium (40.19 %) ใ [ 299] Bulls and Cows Medium (38.62 %) ใ [ 297] Serialize and Deserialize Binary Tree Hard (39.35 %) ใ [ 295] Find Median from Data Stream Hard (34.87 %) ใ [ 292] Nim Game Easy (55.48 %) ใ [ 290] Word Pattern Easy (34.52 %) ใ [ 289] Game of Life Medium (43.35 %) ใ [ 287] Find the Duplicate Number Medium (48.31 %) ใ [ 284] Peeking Iterator Medium (39.39 %) ใ [ 283] Move Zeroes Easy (53.60 %) ใ [ 282] Expression Add Operators Hard (32.23 %) ใ [ 279] Perfect Squares Medium (40.80 %) ใ [ 278] First Bad Version Easy (28.94 %) ใ [ 275] H-Index II Medium (35.16 %) ใ [ 274] H-Index Medium (34.40 %) ใ [ 273] Integer to English Words Hard (23.85 %) ใ [ 268] Missing Number Easy (47.52 %) ใ [ 264] Ugly Number II Medium (35.56 %) ใ [ 263] Ugly Number Easy (40.35 %) ใ [ 262] Trips and Users Hard (23.37 %) ใ [ 260] Single Number III Medium (56.13 %) ใ [ 258] Add Digits Easy (53.51 %) ใ [ 257] Binary Tree Paths Easy (44.98 %) ใ [ 242] Valid Anagram Easy (50.92 %) ใ [ 241] Different Ways to Add Parentheses Medium (48.88 %) ใ [ 240] Search a 2D Matrix II Medium (40.26 %) ใ [ 239] Sliding Window Maximum Hard (37.08 %) ใ [ 238] Product of Array Except Self Medium (53.84 %) ใ โ [ 237] Delete Node in a Linked List Easy (51.97 %) ใ [ 236] Lowest Common Ancestor of a Binary Tree Medium (35.41 %) ใ [ 235] Lowest Common Ancestor of a Binary Search Tree Easy (43.42 %) ใ [ 234] Palindrome Linked List Easy (35.30 %) ใ [ 233] Number of Digit One Hard (29.87 %) ใ [ 232] Implement Queue using Stacks Easy (42.02 %) ใ [ 231] Power of Two Easy (41.62 %) ใ [ 230] Kth Smallest Element in a BST Medium (49.91 %) ใ [ 229] Majority Element II Medium (31.28 %) ใ [ 228] Summary Ranges Medium (35.18 %) ใ [ 227] Basic Calculator II Medium (32.60 %) ใ [ 226] Invert Binary Tree Easy (57.00 %) ใ [ 225] Implement Stack using Queues Easy (37.96 %) ใ [ 224] Basic Calculator Hard (31.73 %) ใ [ 223] Rectangle Area Medium (35.50 %) ใ [ 222] Count Complete Tree Nodes Medium (31.40 %) ใ โ [ 221] Maximal Square Medium (32.24 %) ใ [ 220] Contains Duplicate III Medium (19.42 %) ใ [ 219] Contains Duplicate II Easy (34.69 %) ใ [ 218] The Skyline Problem Hard (31.05 %) ใ [ 217] Contains Duplicate Easy (50.79 %) ใ [ 216] Combination Sum III Medium (50.45 %) ใ โ [ 215] Kth Largest Element in an Array Medium (45.94 %) ใ [ 214] Shortest Palindrome Hard (27.05 %) ใ [ 213] House Robber II Medium (35.07 %) ใ [ 212] Word Search II Hard (27.56 %) ใ [ 211] Add and Search Word - Data structure design Medium (29.14 %) ใ [ 210] Course Schedule II Medium (33.63 %) ใ [ 209] Minimum Size Subarray Sum Medium (34.23 %) ใ [ 208] Implement Trie (Prefix Tree) Medium (36.74 %) ใ [ 207] Course Schedule Medium (36.65 %) ใ [ 206] Reverse Linked List Easy (52.72 %) ใ [ 205] Isomorphic Strings Easy (36.71 %) ใ [ 204] Count Primes Easy (28.23 %) ใ [ 203] Remove Linked List Elements Easy (35.24 %) ใ [ 202] Happy Number Easy (44.27 %) ใ [ 201] Bitwise AND of Numbers Range Medium (35.54 %) ใ [ 200] Number of Islands Medium (40.26 %) ใ [ 199] Binary Tree Right Side View Medium (46.58 %) ใ [ 198] House Robber Easy (40.77 %) ใ [ 197] Rising Temperature Easy (33.61 %) ใ [ 196] Delete Duplicate Emails Easy (30.67 %) ใ [ 195] Tenth Line Easy (34.03 %) ใ [ 194] Transpose File Medium (22.34 %) ใ [ 193] Valid Phone Numbers Easy (25.02 %) ใ [ 192] Word Frequency Medium (26.60 %) ใ [ 191] Number of 1 Bits Easy (41.98 %) ใ [ 190] Reverse Bits Easy (30.18 %) ใ [ 189] Rotate Array Easy (28.92 %) ใ [ 188] Best Time to Buy and Sell Stock IV Hard (25.91 %) ใ [ 187] Repeated DNA Sequences Medium (35.33 %) ใ [ 185] Department Top Three Salaries Hard (23.82 %) ใ [ 184] Department Highest Salary Medium (27.00 %) ใ [ 183] Customers Who Never Order Easy (42.80 %) ใ [ 182] Duplicate Emails Easy (52.42 %) ใ [ 181] Employees Earning More Than Their Managers Easy (46.32 %) ใ [ 180] Consecutive Numbers Medium (32.06 %) ใ [ 179] Largest Number Medium (25.23 %) ใ [ 178] Rank Scores Medium (34.72 %) ใ [ 177] Nth Highest Salary Medium (24.82 %) ใ [ 176] Second Highest Salary Easy (26.14 %) ใ [ 175] Combine Two Tables Easy (49.25 %) ใ [ 174] Dungeon Game Hard (26.47 %) ใ [ 173] Binary Search Tree Iterator Medium (47.06 %) ใ [ 172] Factorial Trailing Zeroes Easy (37.26 %) ใ [ 171] Excel Sheet Column Number Easy (50.84 %) ใ [ 169] Majority Element Easy (51.49 %) ใ [ 168] Excel Sheet Column Title Easy (28.51 %) ใ [ 167] Two Sum II - Input array is sorted Easy (49.30 %) ใ [ 166] Fraction to Recurring Decimal Medium (19.17 %) ใ [ 165] Compare Version Numbers Medium (22.68 %) ใ [ 164] Maximum Gap Hard (31.83 %) ใ [ 162] Find Peak Element Medium (40.72 %) ใ [ 160] Intersection of Two Linked Lists Easy (32.27 %) ใ [ 155] Min Stack Easy (35.64 %) ใ [ 154] Find Minimum in Rotated Sorted Array II Hard (38.96 %) ใ [ 153] Find Minimum in Rotated Sorted Array Medium (42.46 %) ใ [ 152] Maximum Product Subarray Medium (28.53 %) ใ [ 151] Reverse Words in a String Medium (15.87 %) ใ [ 150] Evaluate Reverse Polish Notation Medium (31.33 %) ใ [ 149] Max Points on a Line Hard (15.55 %) ใ [ 148] Sort List Medium (33.91 %) ใ [ 147] Insertion Sort List Medium (36.38 %) ใ [ 146] LRU Cache Hard (24.00 %) ใ [ 145] Binary Tree Postorder Traversal Hard (46.87 %) ใ [ 144] Binary Tree Preorder Traversal Medium (50.23 %) ใ [ 143] Reorder List Medium (29.79 %) ใ [ 142] Linked List Cycle II Medium (30.89 %) ใ [ 141] Linked List Cycle Easy (35.73 %) ใ [ 140] Word Break II Hard (26.65 %) ใ [ 139] Word Break Medium (34.32 %) ใ [ 138] Copy List with Random Pointer Medium (25.73 %) ใ [ 137] Single Number II Medium (45.13 %) ใ [ 136] Single Number Easy (58.99 %) ใ [ 135] Candy Hard (27.72 %) ใ [ 134] Gas Station Medium (32.88 %) ใ [ 133] Clone Graph Medium (25.22 %) ใ [ 132] Palindrome Partitioning II Hard (26.70 %) ใ [ 131] Palindrome Partitioning Medium (39.57 %) ใ [ 130] Surrounded Regions Medium (22.10 %) ใ [ 129] Sum Root to Leaf Numbers Medium (41.39 %) ใ [ 128] Longest Consecutive Sequence Hard (40.87 %) ใ [ 127] Word Ladder Medium (22.94 %) ใ [ 126] Word Ladder II Hard (16.98 %) ใ [ 125] Valid Palindrome Easy (30.21 %) ใ [ 124] Binary Tree Maximum Path Sum Hard (29.29 %) ใ [ 123] Best Time to Buy and Sell Stock III Hard (32.91 %) ใ [ 122] Best Time to Buy and Sell Stock II Easy (50.89 %) ใ [ 121] Best Time to Buy and Sell Stock Easy (46.21 %) ใ [ 120] Triangle Medium (38.31 %) ใ [ 119] Pascal's Triangle II Easy (42.03 %) ใ โ [ 118] Pascal's Triangle Easy (44.54 %) ใ [ 117] Populating Next Right Pointers in Each Node II Medium (33.47 %) ใ [ 116] Populating Next Right Pointers in Each Node Medium (36.74 %) ใ [ 115] Distinct Subsequences Hard (34.51 %) ใ [ 114] Flatten Binary Tree to Linked List Medium (41.08 %) ใ [ 113] Path Sum II Medium (39.42 %) ใ [ 112] Path Sum Easy (37.02 %) ใ [ 111] Minimum Depth of Binary Tree Easy (34.84 %) ใ [ 110] Balanced Binary Tree Easy (40.35 %) ใ [ 109] Convert Sorted List to Binary Search Tree Medium (39.56 %) ใ โ [ 108] Convert Sorted Array to Binary Search Tree Easy (49.24 %) ใ [ 107] Binary Tree Level Order Traversal II Easy (45.63 %) ใ [ 106] Construct Binary Tree from Inorder and Postorder Traversal Medium (37.93 %) ใ [ 105] Construct Binary Tree from Preorder and Inorder Traversal Medium (39.44 %) ใ โ [ 104] Maximum Depth of Binary Tree Easy (59.18 %) ใ [ 103] Binary Tree Zigzag Level Order Traversal Medium (40.44 %) ใ โ [ 102] Binary Tree Level Order Traversal Medium (47.01 %) ใ [ 101] Symmetric Tree Easy (42.70 %) ใ [ 100] Same Tree Easy (49.39 %) ใ [ 99 ] Recover Binary Search Tree Hard (33.85 %) ใ [ 98 ] Validate Binary Search Tree Medium (25.22 %) ใ [ 97 ] Interleaving String Hard (27.28 %) ใ [ 96 ] Unique Binary Search Trees Medium (45.08 %) ใ [ 95 ] Unique Binary Search Trees II Medium (34.78 %) ใ [ 94 ] Binary Tree Inorder Traversal Medium (55.03 %) ใ [ 93 ] Restore IP Addresses Medium (30.69 %) ใ [ 92 ] Reverse Linked List II Medium (34.03 %) ใ [ 91 ] Decode Ways Medium (21.87 %) ใ [ 90 ] Subsets II Medium (41.43 %) ใ [ 89 ] Gray Code Medium (44.93 %) ใ [ 88 ] Merge Sorted Array Easy (34.84 %) ใ [ 87 ] Scramble String Hard (31.10 %) ใ [ 86 ] Partition List Medium (36.29 %) ใ [ 85 ] Maximal Rectangle Hard (32.38 %) ใ [ 84 ] Largest Rectangle in Histogram Hard (30.24 %) ใ [ 83 ] Remove Duplicates from Sorted List Easy (41.90 %) ใ [ 82 ] Remove Duplicates from Sorted List II Medium (32.18 %) ใ [ 81 ] Search in Rotated Sorted Array II Medium (32.50 %) ใ [ 80 ] Remove Duplicates from Sorted Array II Medium (39.50 %) ใ [ 79 ] Word Search Medium (30.38 %) ใ [ 78 ] Subsets Medium (50.96 %) ใ [ 77 ] Combinations Medium (45.99 %) ใ [ 76 ] Minimum Window Substring Hard (29.84 %) ใ [ 75 ] Sort Colors Medium (41.31 %) ใ [ 74 ] Search a 2D Matrix Medium (34.67 %) ใ [ 73 ] Set Matrix Zeroes Medium (38.95 %) ใ [ 72 ] Edit Distance Hard (36.41 %) ใ [ 71 ] Simplify Path Medium (28.12 %) ใ โ [ 70 ] Climbing Stairs Easy (43.42 %) ใ โ [ 69 ] Sqrt(x) Easy (30.66 %) ใ [ 68 ] Text Justification Hard (22.45 %) ใ [ 67 ] Add Binary Easy (37.93 %) ใ [ 66 ] Plus One Easy (40.67 %) ใ [ 65 ] Valid Number Hard (13.78 %) ใ [ 64 ] Minimum Path Sum Medium (45.52 %) ใ [ 63 ] Unique Paths II Medium (33.22 %) ใ [ 62 ] Unique Paths Medium (46.35 %) ใ [ 61 ] Rotate List Medium (26.49 %) ใ [ 60 ] Permutation Sequence Medium (32.27 %) ใ [ 59 ] Spiral Matrix II Medium (45.32 %) ใ [ 58 ] Length of Last Word Easy (32.15 %) ใ [ 57 ] Insert Interval Hard (30.73 %) ใ [ 56 ] Merge Intervals Medium (34.81 %) ใ [ 55 ] Jump Game Medium (31.30 %) ใ [ 54 ] Spiral Matrix Medium (29.61 %) ใ โ [ 53 ] Maximum Subarray Easy (42.78 %) ใ [ 52 ] N-Queens II Hard (50.65 %) ใ [ 51 ] N-Queens Hard (37.68 %) ใ [ 50 ] Pow(x, n) Medium (27.53 %) ใ [ 49 ] Group Anagrams Medium (44.74 %) ใ โ [ 48 ] Rotate Image Medium (46.79 %) ใ [ 47 ] Permutations II Medium (39.14 %) ใ [ 46 ] Permutations Medium (53.37 %) ใ [ 45 ] Jump Game II Hard (27.46 %) ใ [ 44 ] Wildcard Matching Hard (22.36 %) ใ [ 43 ] Multiply Strings Medium (29.94 %) ใ โ [ 42 ] Trapping Rain Water Hard (41.88 %) ใ [ 41 ] First Missing Positive Hard (28.21 %) ใ [ 40 ] Combination Sum II Medium (40.14 %) ใ [ 39 ] Combination Sum Medium (46.67 %) ใ [ 38 ] Count and Say Easy (39.51 %) ใ [ 37 ] Sudoku Solver Hard (35.57 %) ใ โ [ 36 ] Valid Sudoku Medium (41.84 %) ใ [ 35 ] Search Insert Position Easy (40.45 %) ใ [ 34 ] Find First and Last Position of Element in Sorted Array Medium (32.97 %) ใ [ 33 ] Search in Rotated Sorted Array Medium (32.64 %) ใ [ 32 ] Longest Valid Parentheses Hard (24.91 %) ใ [ 31 ] Next Permutation Medium (30.03 %) ใ [ 30 ] Substring with Concatenation of All Words Hard (23.13 %) ใ [ 29 ] Divide Two Integers Medium (16.07 %) ใ โ [ 28 ] Implement strStr() Easy (31.24 %) ใ [ 27 ] Remove Element Easy (43.57 %) ใ [ 26 ] Remove Duplicates from Sorted Array Easy (39.64 %) ใ [ 25 ] Reverse Nodes in k-Group Hard (35.32 %) ใ [ 24 ] Swap Nodes in Pairs Medium (43.15 %) ใ [ 23 ] Merge k Sorted Lists Hard (32.95 %) ใ [ 22 ] Generate Parentheses Medium (53.14 %) ใ โ [ 21 ] Merge Two Sorted Lists Easy (45.83 %) ใ [ 20 ] Valid Parentheses Easy (35.88 %) ใ [ 19 ] Remove Nth Node From End of List Medium (33.99 %) ใ [ 18 ] 4Sum Medium (29.70 %) ใ [ 17 ] Letter Combinations of a Phone Number Medium (40.37 %) ใ [ 16 ] 3Sum Closest Medium (40.61 %) ใ [ 15 ] 3Sum Medium (23.40 %) ใ [ 14 ] Longest Common Prefix Easy (33.00 %) ใ [ 13 ] Roman to Integer Easy (51.55 %) ใ [ 12 ] Integer to Roman Medium (49.76 %) ใ [ 11 ] Container With Most Water Medium (42.61 %) ใ [ 10 ] Regular Expression Matching Hard (24.97 %) ใ [ 9 ] Palindrome Number Easy (41.96 %) ใ โ [ 8 ] String to Integer (atoi) Medium (14.50 %) ใ โ [ 7 ] Reverse Integer Easy (25.13 %) ใ [ 6 ] ZigZag Conversion Medium (30.68 %) ใ โ [ 5 ] Longest Palindromic Substring Medium (26.59 %) ใ โ [ 4 ] Median of Two Sorted Arrays Hard (25.54 %) ใ โ [ 3 ] Longest Substring Without Repeating Characters Medium (27.94 %) ใ โ [ 2 ] Add Two Numbers Medium (30.58 %) ใ โ [ 1 ] Two Sum Easy (41.94 %) [40] Combination Sum II https://leetcode.com/problems/combination-sum-ii/description/ Tags: algorithms snapchat array backtracking Langs: c cpp csharp golang java javascript kotlin php python python3 ruby rust scala swift * algorithms * Medium (40.14%) * Likes: 929 * Dislikes: 49 * Total Accepted: 234.1K * Total Submissions: 550.8K * Testcase Example: '[10,1,2,7,6,1,5]\n8'Given a collection of candidate numbers (
candidates
) and a target number (target
), find all unique combinations incandidates
where the candidate numbers sums totarget
.Each number in
candidates
may only be used once in the combination.Note:
target
) will be positive integers.Example 1:
Example 2:
```Your Environment