Problem Every valid email consists of a local name and a domain name, separated by the ‘@’ sign. Besides lowercase letters, the email may contain one or more ‘.’ or ‘+’. For example, in “alice@leetcode.com”, “alice” is the local […]
Read moreTag: Java
Remove Duplicate – Kotlin Solution
Problem Given the head of a sorted linked list, delete all duplicates such that each element appears only once. Return the linked list sorted as well. Example 1: Input: head = […]
Read moreValid Parentheses – Code Challenge- Kotlin
Problem Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index […]
Read moreSearch Insert Position -Binary Search Kotlin
Problem Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index […]
Read moreImplement strStr()- Kotlin
Problem Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Clarification: What should we […]
Read moreLength Of Last Word Kotlin
Problem Given a string s consisting of some words separated by some number of spaces, return the length of the last word in the string. […]
Read more