Moment For Technology

[Do the problem is also a game] URL

01.03. Urlization. Write a method to replace all Spaces in a string with %20. Assume that there is enough space at the end of the string for new characters and that you know the "real" length of the string. (Note: If implemented in Java, use character arrays to operate directly on arrays.) The value is in the range of [0, 500000]...

List the entrance of the central node | punch brush

Given a linked list, find the entry node of the linked list's ring if it contains rings, otherwise, null. The first pointer p1 points to head, and the second pointer P2 points to head.next. Then the loop starts every time the first pointer takes one step forward and the second pointer takes two steps forward. If p1 = =...

Prim algorithm

The priM algorithm of minimum spanning tree has not been learned, and it seems that the most short circuit will also use this idea, so today I learned, looked for a lot of blogs, algorithm diagrams are quite good, but the code implementation is very complex, and finally found a template problem solving blog to read the code implementation. Prim algorithm in fact, the idea is very simple, is constantly find the current distance has generated the tree node to add to the tree, until all nodes into the tree...

Three puzzles on graph theory search

Water Puzzle is a classic Puzzle. Here's how to solve the problem: Fill a 9-liter bucket with water; Fill the 4-liter bucket with water by filling the 9-liter bucket with water

Python Tensorflow neural network for stock prediction

Neural network (NN) is a distributed parallel information processing algorithm mathematical model that imitates the behavior characteristics of animal neural network. Depending on the complexity of the system, the network can process information by adjusting the relationship between a large number of internal nodes. If the amount of data provided is large enough, the neural network can fit any function relation between input and output. Tensorflow is a...

Tree Story -- B tree/B+ tree

This article elaborates the principle of multi-way search tree, suitable for beginners to read, as well as veteran review. The full text is 2000 words and the reading time is 10 minutes. If you have used MySQL, you must be familiar with the B+ tree, the MySQL index structure is B+ tree. The idea of a B+ tree is that it's above a B tree, and what is a B tree? B tree data (or Pointers to data) exists for every...

Search
About
mo4tech.com (Moment For Technology) is a global community with thousands techies from across the global hang out!Passionate technologists, be it gadget freaks, tech enthusiasts, coders, technopreneurs, or CIOs, you would find them all here.