首页 > 其他 > 详细

Geekforgeek week1

时间:2018-08-26 11:31:15      阅读:186      评论:0      收藏:0      [点我收藏+]

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

原文:https://www.cnblogs.com/stiles/p/geekforgeek1.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!