---
title: "Simon Kuang (@simonpyjavaplus) | Hashnode"
description: "Simon Kuang (@simonpyjavaplus) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@simonpyjavaplus"
---

@simonpyjavaplus

# Simon Kuang

@simonpyjavaplus · Joined October 2022

### [Reorder list](https://simonpyjavaplus.hashnode.dev/reorder-list?utm_source=hashnode&utm_medium=feed)

Input: head = \[1,2,3,4\] Output: \[1,4,2,3\] First find the middle of the list Second reverse the second half Third merge the two lists Find the middle of the list by using the fast pointer/slow pointer technique. //given ListNode head ListNode fast =...

1 min read · [simonpyjavaplus.hashnode.dev](https://simonpyjavaplus.hashnode.dev/reorder-list?utm_source=hashnode&utm_medium=feed)

[Oct 28, 2022](https://hashnode.com/posts/reorder-list/635b47d6768f0aee54e39365)

### [Reverse Linked List](https://simonpyjavaplus.hashnode.dev/reverse-linked-list?utm_source=hashnode&utm_medium=feed)

The trick to this problem... you need a runner node, a previous node, and nextTemp node. First initialize your prev node and runner node. //given ListNode head , reverse the linked list ListNode prev = null; ListNode run = head; Now we want to itera...

1 min read · [simonpyjavaplus.hashnode.dev](https://simonpyjavaplus.hashnode.dev/reverse-linked-list?utm_source=hashnode&utm_medium=feed)

[Oct 27, 2022](https://hashnode.com/posts/reverse-linked-list/635ab89a220aa0e4d25943ff)

### [Products of array except self](https://simonpyjavaplus.hashnode.dev/products-of-array-except-self?utm_source=hashnode&utm_medium=feed)

Given an integer array nums, return an array answer such that answer\[i\] is equal to the product of all the elements of nums except nums\[i\]. With this kind of question. You will need a pre-fixed array and a post fixed array. Left array containing all...

2 min read · [simonpyjavaplus.hashnode.dev](https://simonpyjavaplus.hashnode.dev/products-of-array-except-self?utm_source=hashnode&utm_medium=feed)

[Oct 27, 2022](https://hashnode.com/posts/products-of-array-except-self/635aab572efeffc0cd7ccbce)

### [Top k frequent elements](https://simonpyjavaplus.hashnode.dev/top-k-frequent-elements?utm_source=hashnode&utm_medium=feed)

Given an integer array nums and an integer k, return the k most frequent elements. You may return the answer in any order. When dealing with top k, we would like to think about a priority queue. But first we need to figure out how to keep track of a...

2 min read · [simonpyjavaplus.hashnode.dev](https://simonpyjavaplus.hashnode.dev/top-k-frequent-elements?utm_source=hashnode&utm_medium=feed)

[Oct 27, 2022](https://hashnode.com/posts/top-k-frequent-elements/635aa40dc514203d3023953f)

### [N-tier architecture](https://simonpyjavaplus.hashnode.dev/n-tier-architecture?utm_source=hashnode&utm_medium=feed)

This is one of the first architectures I've learned when using spring The first layer is the front end framework. This layer can be any framework that is desired. I personally use angular, since it is the framework I code the most in. The next layer...

1 min read · [simonpyjavaplus.hashnode.dev](https://simonpyjavaplus.hashnode.dev/n-tier-architecture?utm_source=hashnode&utm_medium=feed)

[Oct 26, 2022](https://hashnode.com/posts/n-tier-architecture/6359611e8916dfac2060844c)
