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 moreCategory: Kotin-CodeChallenge
Problem Solving,Code Challenge
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 moreSquare root of x -Sqrt(x) – Kotlin
Problem Given a non-negative integer x, compute and return the square root of x. Since the return type is an integer, the decimal digits are truncated, and only the integer part of the […]
Read morePlus One – Code Challenge-Kotlin
Problem You are given a large integer represented as integer array digits, where each digits[i] is the ith digit of the integer. The digits are […]
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