GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Mindmap

Alg Repo Levels Paths

Pradhap Ganesan DS-Alg Englisch

Inhalt der Mindmap

Alg Repo Levels Paths

  1. Path

    • Path Sum
      • Matrix
      • Array
      • Tree
        • root-to-leaf path adding up all, check equals to a sum.
          • if(nd == null) return false;      tsum += nd.val; if(nd.left == null && nd.right == null){ return tsum == sum ; } return pathSumRecur(nd.left, sum, tsum) || pathSumRecur(nd.right, sum, tsum);
        • Given a list of ascending three-digits integers representing a binary tree with the depth smaller than 5, you need to return the sum of all paths from the root towards the leaves.
          • If the depth of a tree is smaller than 5, then this tree can be represented by a list of three-digits integers. For each integer in this list: The hundreds digit represents the depth D of this node, 1 <= D <= 4.The tens digit represents the position P of this node in the level it belongs to, 1 <= P <= 8. The position is the same as that in a full binary tree.The units digit represents the value V of this node, 0 <= V <= 9.   Given a list of ascending three-digits integers representing a binary tree with the depth smaller than 5, you need to return the sum of all paths from the root towards the leaves.
        • Find Max path sum; In BT any sequence of nodes from some starting node to any node
  2. Compression

    • String Compression
      • compress(“a”) = "a" compress(“aaa”) = "a3" compress(“aaabbb”) = "a3b3" compress(“aaabccc”) = "a3b1c3"
    • Array Compression
  3. Word Processor

    • One String
      • Compare Self
        • Palindrome
        • Anagram
      • Path
    • Two String
      • Compare
        • S substr of B
    • String, Dictionary

Informationen

Beschreibung
DS-Alg Mindmap am Alg Repo Levels Paths, erstellt von Pradhap Ganesan am 07/11/2019.
Erstellt von
Pradhap Ganesan
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck