Python List Exercise
List Operations
- Access List Item
- Change List item
- Replace List Values
- Append Method
- Insert Method
- Extend List Item
- Remove List Item
- Clear entire List
Coding Problems on List Operations
Basic List programs
- Max of two numbers
- Find Length of List
- Min of two numbers
- Interchange first and last element
- Swap two element
- Check if element exists
- Reverse a List
- Cloning or Copying a List
- Count element in a List
- Sum and Average of List
- Sum of digits in a List
- Multiply all numbers in a List
- Smallest number in a List
- Largest number in a List
- Second largest number in a List
- Even numbers in a List
- Odd numbers in a List
- Count Even and Odd Numbers in a List
- Positive numbers in a List
- Negative numbers in a List
- Count positive and negative numbers in a List
- Remove multiple elements from a List
- Remove empty tuples from a List
- Print duplicates from a list of integers
- Remove first element from List
- Remove duplicates from List
- Get Unique values from a List
- Merge Two Lists
- Iterate over a List
- Average of a List
- Append at beginning of List
- Intersection of two Lists
- Select random value from a List
- Check if two Lists are Identical
- Get last element of List
- Remove None values from List
- Print common elements of two lists
- Max and Min element's position in a List
- Union of two or more Lists
Basic Coding Problems on List
- Less Than
- Average
- Separate Even Odd
- Second Largest Element
- Third largest element
- Three Great Candidates
- Move All Zeroes To End
- Plus One
- Remove Duplicates from Sorted Array
- Array Leaders
- Count Distinct
- Union of Arrays with Duplicates
Programs on List of Strings
- Swap elements in String list
- Convert List to String
- Reverse All Strings in String List
- Character position of Kth word
- Extract words starting with K
- Prefix frequency in string List
- Split String of list on K
- Split Strings on Prefix Occurrence
- Remove words containing list characters
- Remove multiple empty spaces from String List
- Add Space between Potential Words
- Convert Character Matrix to single String
- Filter strings by substring match in second List
- Replace all chars in list except given one
- Converting all Strings in a list to integers
- Convert String Representation of a List into List
Programs on List of Lists
- Remove empty List from List
- Convert List to List of dictionaries
- Convert Lists of List to Dictionary
- Uncommon elements in Lists of List
- Select Random value from list of lists
- Reverse Row sort in Lists of List
- Pair elements with Rear element in Matrix Row
Programs on SubString and SubLists
- Count Strings with substring
- Test if Substring occurs in specific position
- Replace Substrings from String List
- Remove Reduntant Substrings from Strings List
- Group Sublists by another List
- Sort String by Custom Integer Substrings
- Finding strings with given substring in List
- Remove all values from a list present in another List
- Print all sublists of a List
Coding Problems on Substring and Sublists
- Reverse Array in Groups
- Maximum Product Subarray
- Split array in three equal sum subarrays
- Longest Bitonic subsequence
- Count Subarrays with K Distinct Elements
Advance List Programs
- Count unique items in a list
- List product excluding duplicates
- Extract elements with Frequency greater than K
- Test if List contains elements in Range
- Check if list contains three consecutive common numbers
- Find Strongest Neighbour
- Possible Combinations from three Digits
- Find all Combinations in list with given condition
- Get all unique combinations of two Lists
- Remove all occurrences of an element from a list
- Remove Consecutive K element records
- Replace index elements with elements in Other List
- Retain records with N occurrences of K
- Sort list according to column using lambda
- Create list of numbers with given range
- Check if a given object is a list or Not
- Break a list into chunks of size N
- Get last N elements from given list
- Get all unique combinations of two lists
Advance Coding Problems on List
- Not a subset sum
- Minimum Jumps
- Smallest Missing Positive Number
- Trapping Rain Water
- Alternate Positive Negative
- Max distance between same elements
- Transform and Sort Array
- Maximize Number of 1's
- Product Array Puzzle