Skip to content
#

interview-questions

Here are 999 public repositories matching this topic...

njacharya
njacharya commented Aug 16, 2019

A description is incomplete. It should mention:

These patterns are not competing, but complementing each other. To achieve availability, one needs both fail-over and replication.

right after

"There are two main patterns to support high availability: fail-over and replication. "

surister
surister commented Jan 21, 2020

This is a reminder for me or a task if anyone wants :P

imagen

Basically, The last two questions aren't really regex's questions.

To do:

  • Move said questions to correct place.
  • Add new regex questions (Python related!)?
  • Maybe add a new ## Regex section, as it is a valuable skill
grandyang
grandyang commented May 30, 2019

 

Reverse a linked list from position  m  to  n. Do it in one-pass.

Note: 1 ≤  m  ≤  n  ≤ length of list.

Example:

Input: 1->2->3->4->5->NULL, _m_ = 2, _n_ = 4
Output: 1- >4->3->2->5->NULL

 

很奇怪为何没有倒置链表之一,就来了这个倒置链表之二,不过猜也能猜得到之一就是单纯的倒置整个链表,而这道作为延伸的地方就是倒置其中的某一小段。对于链表的问题,根据以往的经验一般都是要建一个dummy node,连上原链表的头结点,这样的话就算头结点变动了,我们还可以通过dummy->next来获得新链表的头结点。这道题的要求是只通过一次遍历完成,就拿题目

Improve this page

Add a description, image, and links to the interview-questions topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the interview-questions topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.