Software Development Engineer Interview Questions

32,870 software development engineer interview questions shared by candidates

Question: URL Shortener Implementation in Python ans # from flask import jsonify,Flask import string id_counter = 1 url_store = {} BASE62 = string.ascii_letters + string.digits def encode_base62(id): if id == 0: return BASE62[0] result = "" while id>0: result = BASE62[id%62] +result id //=62 return result def shorten_url(url): global id_counter code = encode_base62(id_counter) url_store[code] = url id_counter+=1 return f"http://shrtly.in/{code}" actual_url = "https://google.com" short_url = shorten_url(actual_url) print(short_url)
avatar

Software Development Engineer

Interviewed at DeepTek Medical Imaging

4.4
May 19, 2025

Question: URL Shortener Implementation in Python ans # from flask import jsonify,Flask import string id_counter = 1 url_store = {} BASE62 = string.ascii_letters + string.digits def encode_base62(id): if id == 0: return BASE62[0] result = "" while id>0: result = BASE62[id%62] +result id //=62 return result def shorten_url(url): global id_counter code = encode_base62(id_counter) url_store[code] = url id_counter+=1 return f"http://shrtly.in/{code}" actual_url = "https://google.com" short_url = shorten_url(actual_url) print(short_url)

Viewing 3291 - 3300 interview questions

Glassdoor has 32,870 interview questions and reports from Software development engineer interviews. Prepare for your interview. Get hired. Love your job.