返回介绍

solution / DATABASE_README_EN

发布于 2024-06-17 01:04:41 字数 49291 浏览 0 评论 0 收藏 0

Database Practice

中文文档

Solutions

Press Control + F(or Command + F on the Mac) to search anything you want.

#SolutionTagsDifficultyRemark
0175Combine Two TablesDatabaseEasy
0176Second Highest SalaryDatabaseMedium
0177Nth Highest SalaryDatabaseMedium
0178Rank ScoresDatabaseMedium
0180Consecutive NumbersDatabaseMedium
0181Employees Earning More Than Their ManagersDatabaseEasy
0182Duplicate EmailsDatabaseEasy
0183Customers Who Never OrderDatabaseEasy
0184Department Highest SalaryDatabaseMedium
0185Department Top Three SalariesDatabaseHard
0196Delete Duplicate EmailsDatabaseEasy
0197Rising TemperatureDatabaseEasy
0262Trips and UsersDatabaseHard
0511Game Play Analysis IDatabaseEasy
0512Game Play Analysis IIDatabaseEasy????
0534Game Play Analysis IIIDatabaseMedium????
0550Game Play Analysis IVDatabaseMedium
0569Median Employee SalaryDatabaseHard????
0570Managers with at Least 5 Direct ReportsDatabaseMedium
0571Find Median Given Frequency of NumbersDatabaseHard????
0574Winning CandidateDatabaseMedium????
0577Employee BonusDatabaseEasy
0578Get Highest Answer Rate QuestionDatabaseMedium????
0579Find Cumulative Salary of an EmployeeDatabaseHard????
0580Count Student Number in DepartmentsDatabaseMedium????
0584Find Customer RefereeDatabaseEasy
0585Investments in 2016DatabaseMedium
0586Customer Placing the Largest Number of OrdersDatabaseEasy
0595Big CountriesDatabaseEasy
0596Classes More Than 5 StudentsDatabaseEasy
0597Friend Requests I Overall Acceptance RateDatabaseEasy????
0601Human Traffic of StadiumDatabaseHard
0602Friend Requests II Who Has the Most FriendsDatabaseMedium
0603Consecutive Available SeatsDatabaseEasy????
0607Sales PersonDatabaseEasy
0608Tree NodeDatabaseMedium
0610Triangle JudgementDatabaseEasy
0612Shortest Distance in a PlaneDatabaseMedium????
0613Shortest Distance in a LineDatabaseEasy????
0614Second Degree FollowerDatabaseMedium????
0615Average Salary Departments VS CompanyDatabaseHard????
0618Students Report By GeographyDatabaseHard????
0619Biggest Single NumberDatabaseEasy
0620Not Boring MoviesDatabaseEasy
0626Exchange SeatsDatabaseMedium
0627Swap SalaryDatabaseEasy
1045Customers Who Bought All ProductsDatabaseMedium
1050Actors and Directors Who Cooperated At Least Three TimesDatabaseEasy
1068Product Sales Analysis IDatabaseEasy
1069Product Sales Analysis IIDatabaseEasy????
1070Product Sales Analysis IIIDatabaseMedium
1075Project Employees IDatabaseEasy
1076Project Employees IIDatabaseEasy????
1077Project Employees IIIDatabaseMedium????
1082Sales Analysis IDatabaseEasy????
1083Sales Analysis IIDatabaseEasy????
1084Sales Analysis IIIDatabaseEasy
1097Game Play Analysis VDatabaseHard????
1098Unpopular BooksDatabaseMedium????
1107New Users Daily CountDatabaseMedium????
1112Highest Grade For Each StudentDatabaseMedium????
1113Reported PostsDatabaseEasy????
1126Active BusinessesDatabaseMedium????
1127User Purchase PlatformDatabaseHard????
1132Reported Posts IIDatabaseMedium????
1141User Activity for the Past 30 Days IDatabaseEasy
1142User Activity for the Past 30 Days IIDatabaseEasy????
1148Article Views IDatabaseEasy
1149Article Views IIDatabaseMedium????
1158Market Analysis IDatabaseMedium
1159Market Analysis IIDatabaseHard????
1164Product Price at a Given DateDatabaseMedium
1173Immediate Food Delivery IDatabaseEasy????
1174Immediate Food Delivery IIDatabaseMedium
1179Reformat Department TableDatabaseEasy
1193Monthly Transactions IDatabaseMedium
1194Tournament WinnersDatabaseHard????
1204Last Person to Fit in the BusDatabaseMedium
1205Monthly Transactions IIDatabaseMedium????
1211Queries Quality and PercentageDatabaseEasy
1212Team Scores in Football TournamentDatabaseMedium????
1225Report Contiguous DatesDatabaseHard????
1241Number of Comments per PostDatabaseEasy????
1251Average Selling PriceDatabaseEasy
1264Page RecommendationsDatabaseMedium????
1270All People Report to the Given ManagerDatabaseMedium????
1280Students and ExaminationsDatabaseEasy
1285Find the Start and End Number of Continuous RangesDatabaseMedium????
1294Weather Type in Each CountryDatabaseEasy????
1303Find the Team SizeDatabaseEasy????
1308Running Total for Different GendersDatabaseMedium????
1321Restaurant GrowthDatabaseMedium
1322Ads PerformanceDatabaseEasy????
1327List the Products Ordered in a PeriodDatabaseEasy
1336Number of Transactions per VisitDatabaseHard????
1341Movie RatingDatabaseMedium
1350Students With Invalid DepartmentsDatabaseEasy????
1355Activity ParticipantsDatabaseMedium????
1364Number of Trusted Contacts of a CustomerDatabaseMedium????
1369Get the Second Most Recent ActivityDatabaseHard????
1378Replace Employee ID With The Unique IdentifierDatabaseEasy
1384Total Sales Amount by YearDatabaseHard????
1393Capital GainLossDatabaseMedium
1398Customers Who Bought Products A and B but Not CDatabaseMedium????
1407Top TravellersDatabaseEasy
1412Find the Quiet Students in All ExamsDatabaseHard????
1421NPV QueriesDatabaseEasy????
1435Create a Session Bar ChartDatabaseEasy????
1440Evaluate Boolean ExpressionDatabaseMedium????
1445Apples & OrangesDatabaseMedium????
1454Active UsersDatabaseMedium????
1459Rectangles AreaDatabaseMedium????
1468Calculate SalariesDatabaseMedium????
1479Sales by Day of the WeekDatabaseHard????
1484Group Sold Products By The DateDatabaseEasy
1495Friendly Movies Streamed Last MonthDatabaseEasy????
1501Countries You Can Safely Invest InDatabaseMedium????
1511Customer Order FrequencyDatabaseEasy????
1517Find Users With Valid E-MailsDatabaseEasy
1527Patients With a ConditionDatabaseEasy
1532The Most Recent Three OrdersDatabaseMedium????
1543Fix Product Name FormatDatabaseEasy????
1549The Most Recent Orders for Each ProductDatabaseMedium????
1555Bank Account SummaryDatabaseMedium????
1565Unique Orders and Customers Per MonthDatabaseEasy????
1571Warehouse ManagerDatabaseEasy????
1581Customer Who Visited but Did Not Make Any TransactionsDatabaseEasy
1587Bank Account Summary IIDatabaseEasy
1596The Most Frequently Ordered Products for Each CustomerDatabaseMedium????
1607Sellers With No SalesDatabaseEasy????
1613Find the Missing IDsDatabaseMedium????
1623All Valid Triplets That Can Represent a CountryDatabaseEasy????
1633Percentage of Users Attended a ContestDatabaseEasy
1635Hopper Company Queries IDatabaseHard????
1645Hopper Company Queries IIDatabaseHard????
1651Hopper Company Queries IIIDatabaseHard????
1661Average Time of Process per MachineDatabaseEasy
1667Fix Names in a TableDatabaseEasy
1677Product's Worth Over InvoicesDatabaseEasy????
1683Invalid TweetsDatabaseEasy
1693Daily Leads and PartnersDatabaseEasy
1699Number of Calls Between Two PersonsDatabaseMedium????
1709Biggest Window Between VisitsDatabaseMedium????
1715Count Apples and OrangesDatabaseMedium????
1729Find Followers CountDatabaseEasy
1731The Number of Employees Which Report to Each EmployeeDatabaseEasy
1741Find Total Time Spent by Each EmployeeDatabaseEasy
1747Leetflex Banned AccountsDatabaseMedium????
1757Recyclable and Low Fat ProductsDatabaseEasy
1767Find the Subtasks That Did Not ExecuteDatabaseHard????
1777Product's Price for Each StoreDatabaseEasy????
1783Grand Slam TitlesDatabaseMedium????
1789Primary Department for Each EmployeeDatabaseEasy
1795Rearrange Products TableDatabaseEasy
1809Ad-Free SessionsDatabaseEasy????
1811Find Interview CandidatesDatabaseMedium????
1821Find Customers With Positive Revenue this YearDatabaseEasy????
1831Maximum Transaction Each DayDatabaseMedium????
1841League StatisticsDatabaseMedium????
1843Suspicious Bank AccountsDatabaseMedium????
1853Convert Date FormatDatabaseEasy????
1867Orders With Maximum Quantity Above AverageDatabaseMedium????
1873Calculate Special BonusDatabaseEasy
1875Group Employees of the Same SalaryDatabaseMedium????
1890The Latest Login in 2020DatabaseEasy
1892Page Recommendations IIDatabaseHard????
1907Count Salary CategoriesDatabaseMedium
1917Leetcodify Friends RecommendationsDatabaseHard????
1919Leetcodify Similar FriendsDatabaseHard????
1934Confirmation RateDatabaseMedium
1939Users That Actively Request Confirmation MessagesDatabaseEasy????
1949Strong FriendshipDatabaseMedium????
1951All the Pairs With the Maximum Number of Common FollowersDatabaseMedium????
1965Employees With Missing InformationDatabaseEasy
1972First and Last Call On the Same DayDatabaseHard????
1978Employees Whose Manager Left the CompanyDatabaseEasy
1988Find Cutoff Score for Each SchoolDatabaseMedium????
1990Count the Number of ExperimentsDatabaseMedium????
2004The Number of Seniors and Juniors to Join the CompanyDatabaseHard????
2010The Number of Seniors and Juniors to Join the Company IIDatabaseHard????
2020Number of Accounts That Did Not StreamDatabaseMedium????
2026Low-Quality ProblemsDatabaseEasy????
2041Accepted Candidates From the InterviewsDatabaseMedium????
2051The Category of Each Member in the StoreDatabaseMedium????
2066Account BalanceDatabaseMedium????
2072The Winner UniversityDatabaseEasy????
2082The Number of Rich CustomersDatabaseEasy????
2084Drop Type 1 Orders for Customers With Type 0 OrdersDatabaseMedium????
2112The Airport With the Most TrafficDatabaseMedium????
2118Build the EquationDatabaseHard????
2142The Number of Passengers in Each Bus IDatabaseMedium????
2153The Number of Passengers in Each Bus IIDatabaseHard????
2159Order Two Columns IndependentlyDatabaseMedium????
2173Longest Winning StreakDatabaseHard????
2175The Change in Global RankingsDatabaseMedium????
2199Finding the Topic of Each PostDatabaseHard????
2205The Number of Users That Are Eligible for DiscountDatabaseEasy????
2228Users With Two Purchases Within Seven DaysDatabaseMedium????
2230The Users That Are Eligible for DiscountDatabaseEasy????
2238Number of Times a Driver Was a PassengerDatabaseMedium????
2252Dynamic Pivoting of a TableDatabaseHard????
2253Dynamic Unpivoting of a TableDatabaseHard????
2292Products With Three or More Orders in Two Consecutive YearsDatabaseMedium????
2298Tasks Count in the WeekendDatabaseMedium????
2308Arrange Table by GenderDatabaseMedium????
2314The First Day of the Maximum Recorded Degree in Each CityDatabaseMedium????
2324Product Sales Analysis IVDatabaseMedium????
2329Product Sales Analysis VDatabaseEasy????
2339All the Matches of the LeagueDatabaseEasy????
2346Compute the Rank as a PercentageDatabaseMedium????
2356Number of Unique Subjects Taught by Each TeacherDatabaseEasy
2362Generate the InvoiceDatabaseHard????
2372Calculate the Influence of Each SalespersonDatabaseMedium????
2377Sort the Olympic TableDatabaseEasy????
2388Change Null Values in a Table to the Previous ValueDatabaseMedium????
2394Employees With DeductionsDatabaseMedium????
2474Customers With Strictly Increasing PurchasesDatabaseHard????
2480Form a Chemical BondDatabaseEasy????
2494Merge Overlapping Events in the Same HallDatabaseHard????
2504Concatenate the Name and the ProfessionDatabaseEasy????
2668Find Latest SalariesDatabaseEasy????
2669Count Artist Occurrences On Spotify Ranking ListDatabaseEasy????
2686Immediate Food Delivery IIIDatabaseMedium????
2687Bikes Last Time UsedDatabaseEasy????
2688Find Active UsersDatabaseMedium????
2701Consecutive Transactions with Increasing AmountsDatabaseHard????
2720Popularity PercentageDatabaseHard????
2738Count Occurrences in TextDatabaseMedium????
2752Customers with Maximum Number of Transactions on Consecutive DaysDatabaseHard????
2783Flight Occupancy and Waitlist AnalysisDatabaseMedium????
2793Status of Flight TicketsHard????
2820Election ResultsMedium????
2837Total Traveled DistanceDatabaseEasy????
2853Highest Salaries DifferenceDatabaseEasy????
2854Rolling Average StepsDatabaseMedium????
2893Calculate Orders Within Each IntervalDatabaseMedium????
2922Market Analysis IIIDatabaseMedium????
2978Symmetric CoordinatesDatabaseMedium????
2984Find Peak Calling Hours for Each CityDatabaseMedium????
2985Calculate Compressed MeanDatabaseEasy????
2986Find Third TransactionDatabaseMedium????
2987Find Expensive CitiesDatabaseEasy????
2988Manager of the Largest DepartmentDatabaseMedium????
2989Class PerformanceDatabaseMedium????
2990Loan TypesDatabaseEasy????
2991Top Three WineriesDatabaseHard????
2993Friday Purchases IDatabaseMedium????
2994Friday Purchases IIDatabaseHard????
2995Viewers Turned StreamersDatabaseHard????
3050Pizza Toppings Cost AnalysisDatabaseMedium????
3051Find Candidates for Data Scientist PositionDatabaseEasy????
3052Maximize ItemsDatabaseHard????
3053Classifying Triangles by LengthsDatabaseEasy????
3054Binary Tree NodesDatabaseMedium????
3055Top Percentile FraudDatabaseMedium????
3056Snaps AnalysisDatabaseMedium????
3057Employees Project AllocationDatabaseHard????
3058Friends With No Mutual FriendsDatabaseMedium????
3059Find All Unique Email DomainsDatabaseEasy????
3060User Activities within Time BoundsDatabaseHard????
3061Calculate Trapping Rain WaterDatabaseHard????
3087Find Trending HashtagsMedium????

The copyright of this project belongs to Doocs community. For commercial reprints, please contact @yanglbme for authorization. For non-commercial reprints, please indicate the source.

Contact Us

We welcome everyone to add @yanglbme's personal WeChat (WeChat ID: YLB0109), with the note "leetcode". In the future, we will create algorithm and technology related discussion groups, where we can learn and share experiences together, and make progress together.

License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文