Open in app

Sign in

Write

Sign in

Jimmy (xiaoke) Shen
Jimmy (xiaoke) Shen

281 Followers

Home

About

2 days ago

Linux/unix split large file and concatenate

Split large file into small ones split -b 1024m "YourFile.iso" "YourFile.iso." Concatenate it back cat YourFile.iso.* > YourFile.iso It works on both linux and unix. Since MAC is based on unix so it works on MAC as well and between mac to linux. Reference [1]https://superuser.com/questions/362177/how-to-split-big-files-on-mac

1 min read

1 min read


Nov 28

Python hit the recursion limit in Competitive Programming.

By default the python has a default maximum recursion limitation, which is 1000. We can adjust it a little bit by using the following code: import sys sys.setrecursionlimit(10000) Recently, I encountered a problem in a problem from code forces, which by using Python’s recursion way, a recursion error will be…

Python

3 min read

Python hit the recursion limit in Competitive Programming.
Python hit the recursion limit in Competitive Programming.
Python

3 min read


Nov 22

BFS and think the problem reversely

AtCoder ABC 329 E — Stamp Last Saturday, there is a very nice problem from the AtCoder beginner contest. The problem can be solved by using BFS if we think the problem reversely. This is not a very standard BFS and it is quit interesting. Question See here. Basic idea We think the…

Bfs

2 min read

Bfs

2 min read


Nov 17

GPT-4V(ision) system

Abstract GPT-4 with vision (GPT-4V) enables users to instruct GPT-4 to analyze image inputs provided by the user, and is the latest capability we are making broadly available. Incorporating additional modalities (such as image inputs) into large language models (LLMs) is viewed by some as a key frontier in artificial intelligence…

Gpt 4

2 min read

GPT-4V(ision) system
GPT-4V(ision) system
Gpt 4

2 min read


Oct 30

Windows update the home folder under git bash

On git bash of windows, if you wanna update the home folder, do the following # check the old home folder echo $HOME # update the home folder to a new location export HOME={new_home_folder_path}

Windows

1 min read

Windows

1 min read


Oct 1

A nice backtracking problem

AtCoder: D — Polyomino — This is the question D of basic contest from AtCoder (ABC322). Question D — Polyomino Solution It can use backtracking to solve this problem. However, as we have to do some preparation job, the code is a bit long. #include<iostream>…

Backtracking

2 min read

Backtracking

2 min read


Aug 8

Can you solve a problem by using all those technologies: BFS, DFS, Binary Search?

A super nice problem needs several technologies to solve — This was the 3rd problem of the weekly LC contest 357 (August 5, 2023). This is a super nice problem. I like it as it covers several impotant topics: BFS DFS Backtracking Binary Search It is the first time, I found one problem can cover so many topics. If I…

Bfs

3 min read

Bfs

3 min read


Jul 13

Medium NewVis of Story Stats

The color is nice, however, it will be even better if we do not have the border color. Such as following:

1 min read

Medium NewVis of Story Stats
Medium NewVis of Story Stats

1 min read


Jul 3

Sliding windows again

2762. Continuous Subarrays 2762. Continuous Subarrays It was the 3rd question of the weekly 352 code competition of LC . The key trick is finding the min/max value in a sliding window. I had a previous post Sliding window min/max, priority queue & Monotonic Queue. Multiset This has the time complexity…

Sliding Windows

2 min read

Sliding Windows

2 min read


Jun 10

Digit DP

2719. Count of Integers This is the 4th hard question of the LC 348 weekly contest question. 2719. Count of Integers Explanation If we can change the problem to the following, it will be easier: _count(num, min_sum, max_sum) = number of numbers in [0, num] whose digit sum is in [min_sum…

Digit Dp

4 min read

Digit Dp

4 min read

Jimmy (xiaoke) Shen

Jimmy (xiaoke) Shen

281 Followers

Data Scientist/MLE/SWE @takemobi

Following
  • Hasnain A

    Hasnain A

  • Yogesh Haribhau Kulkarni (PhD)

    Yogesh Haribhau Kulkarni (PhD)

  • Dr.-Ing. Leon Eversberg

    Dr.-Ing. Leon Eversberg

  • Ryan Lingo

    Ryan Lingo

  • mobin shaterian

    mobin shaterian

See all (350)

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams