Geekforgeek week1

Posted stiles

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

以上是关于Geekforgeek week1的主要内容,如果未能解决你的问题,请参考以下文章