Tag: list
Total: 22 Posts
Posts of Tag: list
  1. Python: Convert List to String with join()

    .lazyload-placeholder { display: none; } Data takes many shapes and forms - one of the most common data structure being lists/arrays. Strings are, essentially, sequences of alphanumeric characters. The parallel...Learn More
    PythonStringlist
  2. Java 8 Streams - Collect and Reverse Stream into List

    Introduction A stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is...Learn More
    JavaStreamstreamslist
  3. How to Reverse a List in Python

    Introduction Python is a flexible language, and there's typically several ways to perform the same, menial task. Choosing an approach can depend on the time or space complexity, or simply on your personal prefe...Learn More
    Pythonlist
  4. Python: Split String into List with split()

    Data can take many shapes and forms - and it's oftentimes represented as strings. Be it from a CSV file or input text, we split strings oftentimes to obtain lists of features or elements. In this guide, we'll ...Learn More
    PythonStringlist
  5. Java 8: How to Convert a Map to List

    Introduction A Java Map implementation is an collection that maps keys to values. Every Map Entry contains key/value pairs, and every key is associated with exactly one value. The keys are unique, so no duplica...Learn More
    Javalist
  6. JavaScript: Get Last Element in List

    Introduction Getting the last element of a list/array is a common operation. In this tutorial, we'll take a look at how to get the last element in a JavaScript array/list. JavaScript is a weakly-typed or untype...Learn More
    JavaScriptes6list
  7. Python: Get Last Element in List

    Introduction In this tutorial, we'll take a look at some of the most common ways to find the last element in a list in Python. First, we will cover the simplest and most Pythonic way and then show some other al...Learn More
    Pythonlist
  8. Python: Get Max Element of List, Dictionary or Tuple

    Introduction In this guide, we'll take a look at how to find the maximum element of a few common data structures in Python, such as a list, dictionary, and tuple. The max() method, built into the Python namespa...Learn More
    PythonDictionarylist
  9. Python: Slice Notation on List

    Python: Slice Notation on List Introduction The term slicing in programming usually refers to obtaining a substring, sub-tuple, or sublist from a string, tuple, or list respectively. Python offers an array of s...Learn More
    Pythonlist
  10. Java 8 – How to Sort List with Stream.sorted()

    Java 8 – How to Sort List with Stream.sorted() Introduction A stream represents a sequence of elements and supports different kind of operations that lead to the desired result. The source of these elements is ...Learn More
    JavaSortingstreamslist
  11. How to Split a List Into Even Chunks in Python

    How to Split a List Into Even Chunks in Python Introduction Splitting strings and lists are common programming activities in Python and other languages. Sometimes we have to split our data in peculiar ways, but...Learn More
    Pythonlistlists
  12. Python Linked Lists

    Python Linked Lists A linked list is one of the most common data structures used in computer science. It is also one of the simplest ones too, and is as well as fundamental to higher level structures like stack...Learn More
    PythonData StructureLinkedListlist