Leetcode 1290: Convert Binary Number in a Linked List to Integer

preview_player
Показать описание


📚 MY ALGORITHMS BOOKS RECOMMENDATIONS:

📚 MY SYSTEM DESIGN BOOKS RECOMMENDATIONS:

🎥 MY FAVOURITE GEAR
Рекомендации по теме
Комментарии
Автор

I think space complexity is also O(N), because a variable string is just a character array. So, when you append N characters to a string, it essentially allocating space for those N characters, a string is more or less a character array of dynamic size.

PankajMishra-eyyh
Автор

where can I learn to use those binary operations ...I mean how do I know if a particular operation can be done by some binary operation too??...like you did for the OR and RIGHT SHIFT

nos-
visit shbcf.ru