LeetCode 726 - Number of Atoms - Java

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ส.ค. 2024
  • Solution, explanation, and complexity analysis for LeetCode 726 in Java
    Problem Description:
    leetcode.com/p...
    Code:
    github.com/Ana...

ความคิดเห็น • 3

  • @MSDHONI-ne3uq
    @MSDHONI-ne3uq หลายเดือนก่อน

    Hats off Bro, tqsm

  • @qulinxao
    @qulinxao หลายเดือนก่อน

    more simple parse '('+formula+")" as:
    for each name we push to stack {name:1};
    for each number we mult all values of hash in top of stack;
    for each ( we just push it to stack
    for each ) we merge all hash on from stack from top until on top is ( then remove ( and push this merged hash
    it more simple and shorter

  • @rashidmahmood7121
    @rashidmahmood7121 หลายเดือนก่อน

    love the thumbnail lol