How to reverse an integer in python - LeetCode Practice

Опубликовано: 18 Октябрь 2020
на канале: Sam Codes
36
3

One of the most commonly asked interview questions according to LeetCode.

FANG Coding Interview Reverse Integer (LeetCode) explanation.

This interview question is from LeetCode and is commonly asked by the following companies: Google, Facebook, Bloomberg, Adobe, Lyft, Microsoft, Airbnb, Uber, NetEase, and Alibaba.

Problem description: Given a 32-bit signed integer, reverse digits of an integer.

Example 1:
Input: 123
Output: 321

Example 2:
Input: -123
Output: -321

Example 3:
Input: 120
Output: 21

Note: Assume we are dealing with an environment which could only store integers within the 32-bit signed integer range: [−2^31, 2^31 − 1]. For the purpose of this problem, assume that your function returns 0 when the reversed integer overflows.

GitHub: https://github.com/sammy007-debug/Lee...


На этой странице сайта вы можете посмотреть видео онлайн How to reverse an integer in python - LeetCode Practice длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Sam Codes 18 Октябрь 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 36 раз и оно понравилось 3 зрителям. Приятного просмотра!