kamyu104 / LeetCode-Solutions

🏋️ Python / Modern C++ Solutions of All 3343 LeetCode Problems (Weekly Update)
MIT License
4.72k stars 1.56k forks source link

Can someone explain what this line of code means? TIA! #141

Closed indraneelpatil closed 3 years ago

indraneelpatil commented 3 years ago

https://github.com/kamyu104/LeetCode-Solutions/blob/bd9eabcffedba0fadc0a9a96c61f08128cecd1cf/C%2B%2B/increasing-triplet-subsequence.cpp#L12

Is this equivalent to two separate lines like :

RanceJen commented 3 years ago

Yes, it does.

This syntax is same as

int a = 0, b = 0;
indraneelpatil commented 3 years ago

Okay thanks!