• algorithms-summary
  • !Great Resources
  • Basic Concepts
    • HTTP
    • Computer Foundations
    • Operating System
    • OOD
    • Java
      • Heap and Stack memory
      • Memory and GC
      • Pass By Value
      • Final finally finalize
      • Override and Overload
      • Interface vs abstract class
      • IS-A and HAS-A
      • static
      • exception
      • [Java's Data structure](java's-data-structure.md)
      • stack overflow
    • Handle big file
    • functional programming vs object oriented programming
  • String
    • 345 Reverse Vowels of a String
    • 28 Implement strStr()
    • 459 Repeated Substring Pattern
    • 344 Reverse String
    • !151 Reverse Words in a String
    • 482 License Key Formatting
    • 293 Flip Game
    • 294 Flip Game II
    • 161 One Edit Distance
    • 468 Validate IP Address
    • 158 Read N Characters Given Read4 II - Call multiple times
    • 14 Longest Common Prefix
    • 415 Add Strings
    • 43 Multiply Strings
  • Integer Array
    • 280 Wiggle Sort
    • 54 Spiral Matrix
    • 26 Remove Duplicates from Sorted Array
    • 27 Remove Element
    • 283 Move Zeroes
    • 189 Rotate Array
    • 163 Missing Ranges
    • 289 Game of Life
    • 157, 158 Read N Characters Given Read4
    • 66 Plus One
  • Binary Search
    • Copy Books
    • 378 Kth Smallest Element in a Sorted Matrix
    • 153 Find Minimum in Rotated Sorted Array
    • 287 Find the Duplicate Number
    • 300 Longest Increasing Subsequence
    • 69 Sqrt(x)
    • Search in a Big Sorted Array
    • Wood Cut
    • 162 Find Peak Element
    • 33 Search in Rotated Sorted Array
    • 274 H-Index
    • 392 Is Subsequence
  • Math
    • 172 Factorial Trailing Zeroes
    • 326 Power of Three
    • 263 Ugly Number
    • 50 Pow(x, n)
    • 8 String to Integer (atoi)
    • 69 Sqrt(x)
    • 7 Reverse Integer
    • 171 Excel Sheet Column Number
    • 13 Roman to Integer
  • Bit Manipulation
    • !400 Nth Digit
    • 461 Hamming Distance
    • 191 Number of 1 Bits
    • 136 137 260 Single Number
    • 231 Power of Two
    • Update Bits
    • !268 Missing Number
    • 342 Power of Four
    • 190 Reverse Bits
    • 89 Gray Code
  • Greedy
    • 55 Jump Game
    • 45 Jump Game II
  • LinkedList
    • 86 Partition List
    • 109 Convert Sorted List to Binary Search Tree
    • !138 Copy List with Random Pointer
    • 2 Add Two Numbers
    • 445 Add Two Numbers II
  • Binary Tree
    • DFS - Pre-order, In-order, Post-order Traversal
    • BFS - Level Order Traversal
    • 104 Maximum Depth of Binary Tree
    • 257 Binary Tree Paths
    • Minimum Subtree
    • 110 Balanced Binary Tree
    • Subtree with Maximum Average
    • 114 Flatten Binary Tree to Linked List
    • 236 Lowest Common Ancestor of a Binary Tree
    • 112 Path Sum I, II, III
    • 298 Binary Tree Longest Consecutive Sequence
    • 98 Validate Binary Search Tree
    • 333 Largest BST Subtree
    • 450 Delete Node in a BST
    • 297 Serialize and Deserialize Binary Tree
    • 449 Serialize and Deserialize BST
    • 101 Symmetric Tree
    • !99 Recover Binary Search Tree
    • 337 House Robber III
    • 270 Closest Binary Search Tree Value
    • 501 Find Mode in Binary Search Tree
    • 222 Count Complete Tree Nodes
    • 308 Range Sum Query 2D - Mutable Add to List
    • 307 Range Sum Query - Mutable
    • 116 Populating Next Right Pointers in Each Node
  • BackTracking
    • 78 Subsets
    • 90 Subsets II
    • 46 Permutations
    • 47 Permutations II
    • 39 Combination Sum
    • 40 Combination Sum II
    • 216 Combination Sum III
    • 77 Combinations
    • !60 Permutation Sequence
    • 31 Next Permutation
    • 294 Flip Game II
    • 401 Binary Watch
    • 17 Letter Combinations of a Phone Number
    • 79 Word Search
    • 291 Word Pattern II
    • !22 Generate Parentheses
    • 254 Factor Combinations
    • 93 Restore IP Addresses
  • Dynamic Programming
    • 276 Paint Fence
    • 322 Coin Change
    • 300 Longest Increasing Subsequence
    • 64 Minimum Path Sum
    • Backpack I - VI
    • 377 Combination Sum IV
    • 279 Perfect Squares
    • 44 Wildcard Matching
    • 139, 140 Word Break
    • 91 Decode Ways
    • 120 Triangle
    • 516 Longest Palindromic Subsequence
    • 303 Range Sum Query - Immutable
    • 96 Unique Binary Search Trees
    • 494 Target Sum
  • Data Structure
    • Stack
      • 388 Longest Absolute File Path
      • 155 Min Stack
      • !394 Decode String
      • 224. Basic Calculator && Expression Evaluation
      • 150 Evaluate Reverse Polish Notation
      • 496 Next Greater Element I
      • 503 Next Greater Element II
    • Queue
      • 346 Moving Average from Data Stream
      • 264 Ugly Number II
      • 253 Meeting Rooms II
    • Hash Table
      • 288 Unique Word Abbreviation
      • 246 Strobogrammatic Number
      • 359 Logger Rate Limiter
      • 36 Valid Sudoku
      • 380 Insert Delete GetRandom O(1).md)
      • 149 Max Points on a Line
      • 409 Longest Palindrome
      • 340 Longest Substring with At Most K Distinct Characters
    • Heap
      • 378 Kth Smallest Element in a Sorted Matrix
      • 373 Find K Pairs with Smallest Sums
      • 295 Find Median from Data Stream
      • 23 Merge k Sorted Lists
    • 239 Sliding Window Maximum
    • TreeSet & TreeMap
      • 347 Top K Frequent Elements
  • Graph
    • 279 Perfect Squares
    • 133 Clone Graph
    • 207 Course Schedule
    • 261 Graph Valid Tree
    • Topological Sorting
    • 127 Word Ladder
  • BFS & DFS
    • 200 Number of Islands
    • 286 Walls and Gates
    • 329. Longest Increasing Path in a Matrix
    • 317 Shortest Distance from All Buildings
  • Trie
    • 211 Add and Search Word - Data structure design
    • 212 Word Search II
  • Sort
    • 252 Meeting Rooms
    • 56 Merge Intervals
    • Merge Sort
    • Quick Sort
  • Design
    • 281 Zigzag Iterator
    • 284 Peeking Iterator
    • 146 LRU Cache
    • 362 Design Hit Counter
    • 341 Flatten Nested List Iterator
    • 432 All O`one Data Structure
    • 379 Design Phone Directory
  • Amazon
  • Google
    • OA
    • Phone Interview
    • onsite
  • Facebook
  • Airbnb
  • Paypal
    • GlassDoor
    • Behavior
  • Two Sigma
    • OA
  • Uber
  • Bloomberg
    • onsite
  • Jet
Powered by GitBook

IS-A and HAS-A

http://learnwithharsha.com/my-first-java-lesson-is-a-and-has-a-relationships/

Composition vs Inheritence

https://www.thoughtworks.com/insights/blog/composition-vs-inheritance-how-choose

results matching ""

    No results matching ""