Video 9: This video shows how to reverse the given 32-bit signed integer. There are multiple checklist to be addressed in the code. The input can be an positive or negative integer, can have zeros at the end, and can be greater than 2**31 or less than -2**31. All these has to be checked.
We started with reversing a string input, then moved to integer followed by negative integer. Then came integers with zeros at the end and finally the 32-bit check. We tried different approach, starting with Looping option, string slicing with negative slicing, reverse without converting to string (using MOD and Divide) approach
code: https://github.com/jeganpillai/python...
Follow me on,
YouTube : / @growwithdata
Website : https://growwithdata.co/
LinkedIn : / growwithdata
Facebook : / growwithdata.co
twitter : / growwithdata_co
WhatsApp : https://whatsapp.com/channel/0029VaF8...
Instagram : / growwithdata.co
#list #reversestring #reverselist #slicing #reversewithoutconversion #reverseint #reverseinteger #python #pythonquestions #pythontest #pythonprogramming #pythontutorial #python3 #pythonforbeginners #interviewquestions #interview #dataengineers #deinterview #pythoninterview #interviewquestions #leetcode #placementpreparation #meta #google #facebook #apple #netflix #amazon #google #faang #maanga #dataengineers #alphanumeric #nonalphanumeric #growwithdata