How to Build a Chrome Extension (Lifehacker.com)
Click here to continue reading
Java, Assembly Language, Visual Basic 6.0 and ASP. Suggest a problem anytime. With free downloadable references and utilities. Also included here are re-posted articles from different blogs on ICT Trends and Issues.
- Inserting a Node into a Doubly-Linked List
o General procedure
1. Create a new node for the element
2. Set the data field of the new node to the value to be inse
rted.
3. Determine the position of the node in the list based on its valu
e
4. Insert the node
- Inserting a node into the Head of the List
o The algorithm
1. Set the left pointer field of the new node to null
2. Set the right pointer field of the new node to the address contained in the head.
3. Set the left pointer filed of the current head node in the list to the address of the new node.
- Insert a Node at the End of a List
o The algorithm:
1. Set the right pointer field of the new node to null
2. Set the left pointer field of the new node to tail
3. Set the right pointer field of the current tail node in the list to the address of the new node.
4. Set the variable tail to the address of the new node.
- Inserting a node within the list
o The algorithm:
1. Determine the position of the node in the list
2. Set the left pointer field of the new node to the address of the current node.
3. Set the right pointer field of the new node to the address of the current.next node.
4. Set the right pointer field of the current node to the address of the new node
5. Set the left pointer field of the current.next node to the address of the new node.
- Deleting a node from a doubly-linked list
o General procedure
1. Locate the node
2. Delete the node
3. Release the node form memory
- Deleting the node at the Head of the list
o The Algorithm
1. Set the variable head to the address of the second node in the list.
2. Set the left pointer field of the new head node to null
- Deleting the node from within the list
o The Algorithm
1. Set the right pointer field of current.previous node to the address of the current.next node



So here is another problem that i just thought of. This problem is best done with stacks. So the problem is basically to let the user enter a string and then the first series of alphabets should be reversed. Here are some examples.
eg1:
Original: Hello World
Result: olleH World
eg2:
Original: text123
Result: txet123
eg3:
Original: -hello
Result: -hello
Meaning, the reverse will only proceed if the first series of characters are alphabets
So the concept for the solution would be,
These are the only steps needed.

Converting Infix to Postfix Notation Algorithm
1. If recognize an operand, display
2. If recognize a ‘(‘, push it on the stack
3. If recognize a ‘)’
a. Pop and display until encountering the first ‘(’ inside the stack
b. Pop the ‘(’ from the stack
4. If recognize an operator
a. Peek from the stack and compare to the operator
b. If stack is empty, push it on the stack
c. If stack is not empty
i. If top of the stack is ‘(‘, push it on the stack
ii. If top of the stack is operator
1. If top of the stack is of higher precedence, pop and display until encountering the first ‘(’ or if stack is empty
2. If top of the stack is of lower precedence, push it on the stack
3. If top of the stack is of equal precedence, pop and display then push it on the stack.
5. If done reading, pop and display till stack is empty.
Converting Postfix to Infix Notation Algorithm
1. If recognize an operand, push it on the stack
2. If recognize an operator, pop its operands (pop 2 operands), and apply the operator and push the value on the stack.
o If an item popped is already an expression, enclose the expression with ‘(‘ and ‘)’
3. Upon conclusion, the value of the postfix expression is on the top of the stack.
- The algorithm is based on the following assumptions:
1. Each operand is denoted as a single alphabetic character.
2. The expression may only
Click here for the code