Python

coding challenge

[Solved] Minimum Arrows Required to Burst Balloons

Find how many minimum arrows required to burst balloons? Shooting arrows from left to right direction. If arrow hits balloon at height x, trajectory of arrow decreases by 1.

coding challenge

[Solved] Find Lexicographically Smallest and Largest Substring

How to find the lexicographically smallest and largest substring? Write a program to sort the sub-strings in lexicographical order in Java and Python.

Python

[6 Ways] Compare Two Lists in Python and Return Non-Match Elements

How to compare two lists in Python? Using lambda function, sort(), set() method to check if two lists are equal and have same elements.

Python

Python Program to Reverse Each Word in The String / Sentence

How to Python program to reverse each word in the string or Sentence? One single line code to reverse words in sentence using Python.

Python

Sort Tuple List by First and Second Element in Python

How to sort tuple list by second element in Python? Sort list values by ascending and descending order.

coding challenge

Maximum Sum of Hourglass in Matrix | Solved in Java, Python

[Python/Java Program] Write a program to find the maximum sum of hourglass in matrix. How to find the sum of hourglass in matrix?

Python

How to Uninstall all Packages from Virtualenv Using Pip?

Steps to uninstall all packages from virtualenv using pip tool. Remove python modules and dependencies from virtual environment.

coding challenge

[Solved] Sort Characters by Frequency in Python String

How to sort characters by frequency in Python program using sorted() function. Sort string
based on the number of times characters have occurred.

Python

Insertion Sort in Python Using List and String

Complete code for insertion sort in Python using list. Algorithm explained with example. Sort Python string using insertion sort.