DS&A

Data Structures and Algorithms

Stacks and Queues

Feb 122018

A list can do everything an array can do, and more; the array data type is strictly “less useful” than the list data type. However, the array data structure is both faster and uses less memory than any list data structure.(1) This is common: if a data type supports fewer operations, then programmers who use that type have less freedom, but programmers who implement it (or choose an implementation) have more freedom. A data structure supporting fewer operations can often be more efficient in speed, memory use, or both; or, if you want more operations supported, expect a lower efficiency.

Booleans

Feb 052018

Boolean is a type of data, with only two possible values: true and false.

  • In Python, the type bool has values True and False.
  • In Java, the type boolean has values true and false.

Almost every programming language has Booleans, because they’re necessary for the checks, comparisons and other logical conditions in if/else statements and loops.(1)

Atom

hosted on werp.site