How to Set Initial Data For Inline Model Formset in Django

How to Set Initial Data For Inline Model Formset in Django

In Django, sometimes we may want to set some initial value for inline formset when creating new model.

Read More

Handle Django Api Authentication in Android Cordova App

Handle Django Api Authentication in Android Cordova App

One main consideration of an app is how to handle api authentication. For an android cordova app with django powered backend, you need to deal with two cases: native part and cordova part.

Read More

The Classic LIS Problem

The Classic LIS Problem

In computer science, the longest increasing subsequence problem is to find a subsequence of a given sequence in which the subsequence's elements are in sorted order, lowest to highest, and in which the subsequence is as long as possible. This subsequence is not necessarily contiguous, or unique. wiki

Read More

Three Reverse

Three Reverse

Three reverse is a trick when you want to rotate an array. For example, the original array is [1,2,3,4,5], rotate this array by k=2 will become [4,5,1,2,3]. This problem can be abstracted as: given an array of length n, rotate this array by k.

Read More

Patricia

Patricia

Patricia is a kind of prefix tree, enhanced based on Trie. In a trie, every bit(integer trie) or character(alphabetic trie) occupies a tree node. This behaviour may be unefficient when lots of node only have one child, as shown in figure 1.

Read More

ADDRESS

  • Email: jimmykobe1171@126.com
  • Website: www.catharinegeek.com