AB
  • home
  • about
  • portfolio
  • lab
  • LeetCode
  • contact

LeetCode

Leetcode problems solved!

Problem #12: Integer to Roman

medium

Given an integer, convert it to a roman numeral.

Solution:c#

#math#string

Problem #11: Container With Most Water

medium

Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line...

Solution:c#

#array#two pointers

Problem #9: Palindrome Number

easy

Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.

Solution:python

#math

Problem #8: String to Integer (atoi)

medium

Implement atoi which converts a string to an integer.

Solution:python

#math#string

Problem #7: Reverse Integer

easy

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

Solution:python

#math

Problem #6: ZigZag Conversion

medium

The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)

Solution:python

#string

1

2

made with by Achyutha Bharadwaj. © 2019.