Topic Practice · Data Structures
Lists problems
50 problems: 22 Easy, 18 Medium, 10 Hard.
✓1. Maximum Element
3 test casesEasy✓2. Sum and Average
4 test casesEasy✓3. Minimum Element
4 test casesEasy✓4. Reverse the List
4 test casesEasy✓5. Count Positives
4 test casesEasy✓6. Sort the List
4 test casesEasy✓7. Squares List
4 test casesEasy✓8. Is It in the List?
4 test casesEasy✓9. First and Last
4 test casesEasy✓10. Change the List
4 test casesEasy✓11. How Many Times?
4 test casesEasy✓12. Drop the Ends
4 test casesEasy✓13. Largest Element
4 test casesEasy✓14. How Many Items?
4 test casesEasy✓15. Add to the End
4 test casesEasy✓16. Where Is It?
4 test casesEasy✓17. Remove an Item
4 test casesEasy✓18. Join Two Lists
4 test casesEasy✓19. The First n Items
4 test casesEasy✓20. Take the Last One Off
4 test casesEasy✓21. Every Other Item
4 test casesEasy✓22. Insert at the Front
4 test casesEasy✓23. Second Largest
4 test casesMedium✓24. Remove Duplicates
3 test casesMedium✓25. Split Even and Odd
4 test casesMedium✓26. Rotate Left
4 test casesMedium✓27. Running Sums
4 test casesMedium✓28. Merge Two Lists
4 test casesMedium✓29. Pairs That Add Up
4 test casesMedium✓30. Chunks
4 test casesMedium✓31. Second Smallest
4 test casesMedium✓32. Best So Far
4 test casesMedium✓33. Differences Between Neighbours
4 test casesMedium✓34. Interleave Two Lists
4 test casesMedium✓35. Sort by Size, Ignoring the Sign
4 test casesMedium✓36. Remove Repeats, Keep Order
4 test casesMedium✓37. Rotate Right by k
4 test casesMedium✓38. The Missing Number
4 test casesMedium✓39. Already Sorted?
4 test casesMedium✓40. Above the Average
4 test casesMedium✓41. Biggest Rise
4 test casesHard✓42. Zeros to the End
4 test casesHard✓43. Most Frequent
4 test casesHard✓44. Row and Column Totals
4 test casesHard✓45. Group Equal Neighbours
4 test casesHard✓46. Largest Sum of Neighbours
5 test casesHard✓47. Product of All the Others
5 test casesHard✓48. Longest Rising Run
5 test casesHard✓49. Trapped Rain Water
5 test casesHard✓50. Next Bigger Number to the Right
5 test casesHard
3 test casesEasy✓2. Sum and Average
4 test casesEasy✓3. Minimum Element
4 test casesEasy✓4. Reverse the List
4 test casesEasy✓5. Count Positives
4 test casesEasy✓6. Sort the List
4 test casesEasy✓7. Squares List
4 test casesEasy✓8. Is It in the List?
4 test casesEasy✓9. First and Last
4 test casesEasy✓10. Change the List
4 test casesEasy✓11. How Many Times?
4 test casesEasy✓12. Drop the Ends
4 test casesEasy✓13. Largest Element
4 test casesEasy✓14. How Many Items?
4 test casesEasy✓15. Add to the End
4 test casesEasy✓16. Where Is It?
4 test casesEasy✓17. Remove an Item
4 test casesEasy✓18. Join Two Lists
4 test casesEasy✓19. The First n Items
4 test casesEasy✓20. Take the Last One Off
4 test casesEasy✓21. Every Other Item
4 test casesEasy✓22. Insert at the Front
4 test casesEasy✓23. Second Largest
4 test casesMedium✓24. Remove Duplicates
3 test casesMedium✓25. Split Even and Odd
4 test casesMedium✓26. Rotate Left
4 test casesMedium✓27. Running Sums
4 test casesMedium✓28. Merge Two Lists
4 test casesMedium✓29. Pairs That Add Up
4 test casesMedium✓30. Chunks
4 test casesMedium✓31. Second Smallest
4 test casesMedium✓32. Best So Far
4 test casesMedium✓33. Differences Between Neighbours
4 test casesMedium✓34. Interleave Two Lists
4 test casesMedium✓35. Sort by Size, Ignoring the Sign
4 test casesMedium✓36. Remove Repeats, Keep Order
4 test casesMedium✓37. Rotate Right by k
4 test casesMedium✓38. The Missing Number
4 test casesMedium✓39. Already Sorted?
4 test casesMedium✓40. Above the Average
4 test casesMedium✓41. Biggest Rise
4 test casesHard✓42. Zeros to the End
4 test casesHard✓43. Most Frequent
4 test casesHard✓44. Row and Column Totals
4 test casesHard✓45. Group Equal Neighbours
4 test casesHard✓46. Largest Sum of Neighbours
5 test casesHard✓47. Product of All the Others
5 test casesHard✓48. Longest Rising Run
5 test casesHard✓49. Trapped Rain Water
5 test casesHard✓50. Next Bigger Number to the Right
5 test casesHard