Discover how to access the hashing functionality of several languages. Explore the difference between custom and non-custom data types and the need to implement a comparator for non-custom data types.
- So how do we use hashing or a hash function in code?…You might be wondering if you have to implement…lots of complicated hash functions.…The good news is no.…Most of the time, your objects have already…perfectly acceptable hash functions…for the things you want to do.…In Java, every class has a hashCode function.…Since it's part of the base object class,…any classes you define and all the objects you create…will already have a default hashCode method…that returns an integer.…
Now, when would this not work?…Well, this hash value is based on what it means…
- Data types: Booleans, numbers, strings, and more
- Multidimensional arrays
- Jagged arrays
- Search and sort arrays
- Linked lists
- Stacks and queues
- Hash functions and hash tables
- Trees and graphs
Skill Level Intermediate
Understand data structures1m 25s
1. Introduction to Data Structures
4. Stacks and Queues
5. Hash-Based Data Structures
6. Trees and Graphs
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.