Geekforgeek week1

1. is palindrome

solution 1: check to reverse the digit, if they are the same number https://www.geeksforgeeks.org/write-a-c-program-to-reverse-digits-of-a-number/

solution 2: change int to String in java and compare it

check geekforgeek and leetcode for more solutions, recurseive

2. kth largest number

quick sort or priority queue

posted @ 2018-08-26 09:12  wz30  阅读(340)  评论(0编辑  收藏  举报