Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Byte-Sized-Chunks: Stacks, Queues, Binary Trees, Heaps
Rating: 4.9 out of 5(25 ratings)
2,609 students

Byte-Sized-Chunks: Stacks, Queues, Binary Trees, Heaps

A visual way to master basic data structures for strong fundamentals!
Created byLoony Corn
Last updated 1/2018
English

What you'll learn

  • Design and implement software that use fundamental data structures
  • Visualise - really vividly imagine - the common data structures, and the algorithms applied to them
  • Understand the trade-offs, complexity and use-cases for different types of container data structures

Course content

5 sections23 lectures5h 24m total length
  • You, This Course, and Us!1:09
  • Meet The Stack - Simple But Powerful15:40
    The stack is a very simple and easy to understand data structure. However it lies underneath many complicated real world problems and is incredibly useful.
  • Building A Stack Using Java16:53
    Let's build a stack for real using Java. It'll have all the operations we're interested in - push, pop, peek, size etc. It can hold any data type, it's a generic class.
  • Match Parenthesis To Check A Well Formed Expression11:21
    Problems which use stacks as a part of their solutions are very common in programming interviews. Matching parenthesis to check for well formed expressions is a classic interview question - let's solve this using the stack we're already implemented.
  • Find The Minimum Element In A Stack In Constant Time8:51
    Another interview question implemented. You have space available but your processing needs to be very fast indeed. How would you keep track of the minimum element of a stack as it changes?
  • Meet The Queue - A Familiar Sight In Everyday Life14:11

    The queue belongs to the same linear data structure family as the stack but it's behavior is very different. Queues are much more intuitive as there are plenty of real world examples where a queue is the fair and correct way of processing.

  • The Circular Queue - Tricky But Fast19:44
    A common, fast but slightly tricky implementation of the queue is the array where the last element wraps around to the first. An interview favorite, let's see how to implement the circular queue.
  • Build A Queue With Two Stacks17:30

    We know the stack, and we know the queue. This problem brings them together. It's possible to mimic the behavior of a queue using 2 stacks in the underlying implementation. Let's write the most efficient code possible to make this work.

Requirements

  • Basic knowledge of programming is assumed, preferably in Java

Description

Note: This course is a subset of our much longer course 'From 0 to 1: Data Structures & Algorithms' so please don't sign up for both:-)

This is an animated, visual and spatial way to learn data structures and algorithms

  • Our brains process different types of information differently - evolutionarily we are wired to absorb information best when it is visual and spatial i.e. when we can close our eyes and see it
  • More than most other concepts, Data Structures and Algorithms are best learnt visually. These are incredibly easy to learn visually, very hard to understand most other ways
  • This course has been put together by a team with tons of everyday experience in thinking about these concepts and using them at work at Google, Microsoft and Flipkart

What's Covered:

  • Big-O notation and complexity
  • Stacks
  • Queues
  • Trees
  • Heaps

Who this course is for:

  • Nope! Please don't enroll for this class if you have already enrolled for our 15-hour course 'From 0 to 1: Data Structures and Algorithms'
  • Yep! Computer Science and Engineering grads who are looking to really visualise data structures, and internalise how they work
  • Yep! Experienced software engineers who are looking to refresh important fundamental concepts