To the Top
File:  root - text - article - 2019 - 11 - look-and-say-sequence.txt
Tags: 每日算法题, 算法, 数据结构, 面试题, Daily Interview Problem, Data Structures and Algorithms, Computer Programming, Python, | English | Home Page | Category: Computing | 314 Views, 14177 Search Bots | 77 Words

Subscribe to Feed Burner | Browse | Archive
Hi, here's your problem today. This problem was recently asked by Google:

A look-and-say sequence is defined as the integer sequence beginning with a single digit in which the next term is obtained by describing the previous term. An example is easier to understand:

Each consecutive value describes the prior value.


1 #
11 # one 1's
21 # two 1's
1211 # one 2, and one 1.
111221 # #one 1, one 2, and two 1's.


Your task is, return the nth term of this sequence.
Tags: 每日算法题, 算法, 数据结构, 面试题, Daily Interview Problem, Data Structures and Algorithms, Computer Programming, Python, | English | Home Page | Cateogry: Computing | 314 Views, 14177 Search Bots | 77 Words Subscribe to Feed Burner

Related Articles

  1. Staying on a Chess Board
  2. Daily Interview Problem: Product of Array Except Self
  3. Algorithm Interview: Smallest Number that is not a Sum of a Subset of List
  4. PHP Unit Tests on VPS Server
  5. [Daily Problem] Longest Palindromic Substring
  6. ImageMagick Vulnerabilities -  CVE-2016–3714
  7. Daily Interview Problem: Merge List Of Number Into Ranges
  8. Daily Interview Puzzle: Ways to Traverse a Grid
  9. Daily Interview Problem: Find the k-th Largest Element in a List
  10. CVE-2015-8874 - cPanel EasyApache Vulnerabilities

Comments (0)

    Be the first one to comment this page !


Page Edited: May 11 2024 14:36:49 | RSS Subscription
How to Cook a Perfect Steak? | <meta name="robots" content="index, follow">