message: Update number-of-visible-people-in-a-queue.py
diff: @@ -10,10 +10,12 @@ class Solution(object):
  result = [0]*len(heights)
  stk = []
  for i, h in enumerate(heights):
  - while stk and heights[stk[-1]] <= h:
  + while stk and heights[stk[-1]] < h:
  result[stk.pop()] += 1
  if stk:
  result[stk[-1]] += 1
  + if stk and heights[stk[-1]] == h:
  + stk.pop()
  stk.append(i)
  return result
  @@ -34,5 +36,7 @@ class Solution2(object):
  stk.pop()
  cnt += 1
  result[i] = cnt+1 if stk else cnt
  + if stk and heights[stk[-1]] == heights[i]:
  + stk.pop()
  stk.append(i)
  return result
  