Kiuber's Blog


  • Home

  • Tags

  • Categories

  • Archives

  • Resume

  • Master

  • About

  • Search

Remove Duplicates from Sorted Array

Posted on 2019-05-14

Remove Duplicates from Sorted Array

Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length.

Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory.

Read more »

Swap Nodes In Pairs

Posted on 2019-05-12

Swap Nodes In Pairs

Given a linked list, swap every two adjacent nodes and return its head.

“You may not modify the values in the list’s nodes, only nodes itself may be changed.l”

Read more »

Kth Largest Element in an Array

Posted on 2019-05-06

Kth Largest Element in an Array

Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.

Read more »

Word Break

Posted on 2019-05-04

Word Break

Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separated sequence of one or more dictionary words.

Read more »

3sum

Posted on 2019-05-04

3Sum

Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.

Read more »

Two Sum

Posted on 2019-05-04

Two Sum

Given an array of integers, return indices of the two numbers such that they add up to a specific target.

You may assume that each input would have exactly one solution, and you may not use the same element twice.

Read more »

Total Hamming Distance

Posted on 2019-05-04

Total Hamming Distance

The Hamming distance between two integers is the number of positions at which the corresponding bits are different.

Now your job is to find the total Hamming distance between all pairs of the given numbers.

Read more »

Word Search

Posted on 2019-05-04

Word Search

Given a 2D board and a word, find if the word exists in the grid.

The word can be constructed from letters of sequentially adjacent cell, where “adjacent” cells are those horizontally or vertically neighboring. The same letter cell may not be used more than once.

Read more »

Word Break II

Posted on 2019-05-04

Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct a sentence where each word is a valid dictionary word. Return all such possible sentences.

Read more »

K Closest Points to Origin

Posted on 2019-05-04

K Closest Points to Origin

We have a list of points on the plane. Find the K closest points to the origin (0, 0).

(Here, the distance between two points on a plane is the Euclidean distance.)

You may return the answer in any order. The answer is guaranteed to be unique (except for the order that it is in.)

在二维坐标列表中,寻找出 K 个离原点最近的坐标值

Read more »
12…6
Kiuber

Kiuber

51 posts
17 categories
59 tags
GitHub Weibo Email
Friends
  • 咕咚
  • 冰封承诺
  • h4ck0ne
  • 林下清清
  • Jelly
  • Kit.Andrew.Lee
  • zhanxinxin
  • Dc
  • 城北
  • yuanyuan
  • 甜欣屋
  • liyuans
© 2016 — 2021 Kiuber
Powered by Hexo
|
Theme — NexT.Pisces v5.1.3
本站访客数 人次 本站总访问量 次