count apples and oranges
摘要:/** * count apples and oranges whether land on the inclusive [s,t] * a is apple tree's cordination, b is orange tree's corditation * apples is apple t
阅读全文
posted @
2025-03-15 18:19
coderlwz
阅读(2)
推荐(0) 编辑
获取不重复的字符串
摘要:/** * 获取不重复的字符串 * aabbc->abc * @param srcStr * @return */public static String getSingleCharStr(String srcStr){ if (srcStr==null){ return null; } if (s
阅读全文
posted @
2025-03-15 07:45
coderlwz
阅读(1)
推荐(0) 编辑
获取两个字符串的最长重复子串
摘要:/** * 获取两个字符串的最长重复子串 * @param srcStr1 * @param srcStr2 * @return */public static String getMaxLenRepeatedSubStr(String srcStr1,String srcStr2){ if (sr
阅读全文
posted @
2025-03-13 10:46
coderlwz
阅读(3)
推荐(0) 编辑
test round grades
摘要:/** * test round grades * grade lesss than 38 ->round to 38 * grade grate than 38 less than 40 ->round to 40 * if grade is 100 donot need be rounded *
阅读全文
posted @
2025-03-02 23:19
coderlwz
阅读(4)
推荐(0) 编辑